Section 1
//gradients (bitfade.presets.gradients)
package bitfade.presets {
public class gradients {
public static const mono:Array = [0, 2155905152, 4294967295];
public static const purple:Array = [0, 2153644161, 4294693375, 4294967295];
public static const fire2:Array = [0, 4294940928, 4294967295];
public static const red:Array = [0, 2155872256, 4294967295];
public static const green:Array = [0, 2147516416, 4294967295];
public static const lime:Array = [0, 2147516416, 4286696192, 4294899313];
public static const fire:Array = [0, 2157379607, 2701102080, 4294965293, 4294967295];
public static const blue:Array = [0, 2147483776, 4294967295];
public static const blanco:Array = [0, 2160905420, 4294967295];
public static const ocean:Array = [0, 2147483776, 2687020011, 4288863999, 4294967295];
}
}//package bitfade.presets
Section 2
//blurGlow (bitfade.text.blurGlow)
package bitfade.text {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
public class blurGlow extends effect {
protected var scale:Number;
protected var lPos:Number;
protected var cT:ColorTransform;
protected var bevF;
protected var dsF;
protected var refM:Matrix;
protected var bColor:BitmapData;
protected var bF;
protected var lIncr:Number;
protected var lP:Point;
protected var bMask:BitmapData;
protected var bBuffer2:BitmapData;
protected var countdown:uint;
protected var lRect:Rectangle;
protected var scaleIncr:Number;
public function blurGlow(_arg1){
super(_arg1);
}
public function updateEffect(_arg1=null){
var oldVal:*;
var e = _arg1;
if (!ready){
return;
};
bData.lock();
bData.colorTransform(box, cT);
if (scale >= 1){
refM.createBox(scale, scale, 0, int(((w * (1 - scale)) / 2)), int(((h * (1 - scale)) / 2)));
bBuffer.fillRect(box, 0);
var _local3 = cT;
with (_local3) {
oldVal = alphaMultiplier;
alphaMultiplier = ((3 - scale) / 4);
bBuffer.draw(bColor, refM, cT, null, box, false);
alphaMultiplier = oldVal;
};
_local3 = bF;
with (_local3) {
blurX = (uint((8 * scale)) * 2);
blurY = (uint((2 * scale)) * 2);
quality = 1;
};
bBuffer2.applyFilter(bBuffer, box, origin, bF);
bData.copyPixels(bBuffer2, box, origin, bMask, origin, true);
scale = (scale + scaleIncr);
if (scale < 1){
bBuffer.fillRect(box, 0);
};
} else {
if (countdown > 0){
bData.copyPixels(bColor, box, origin, null, null, true);
bBuffer.colorTransform(box, cT);
if (lPos < w){
lP.x = (lRect.x = ((lPos > 0)) ? uint((lPos + 0.5)) : 0);
lRect.width = uint((((lPos)<0) ? (lPos + lIncr) : lIncr + 0.5));
bBuffer.copyPixels(bColor, lRect, lP, null, null, true);
};
_local3 = dsF;
with (_local3) {
blurX = 32;
blurY = 2;
strength = 2;
quality = 1;
};
bBuffer2.applyFilter(bBuffer, box, origin, dsF);
bBuffer2.paletteMap(bBuffer2, box, origin, null, null, null, colorMap);
bBuffer2.copyPixels(bBuffer2, box, origin, bColor, origin);
bData.draw(bBuffer2, null, null, "add");
if (lPos < w){
lPos = (lPos + lIncr);
if (lPos >= w){
updateText();
};
} else {
countdown--;
};
} else {
cT.alphaMultiplier = 0.8;
};
};
bData.unlock();
}
override public function buildColorMap(_arg1="ocean"){
super.buildColorMap(_arg1);
if (ready){
renderColorItem();
};
}
override protected function textUpdated(){
scale = 3;
scaleIncr = (-2 / (currTransition.duration * 0.2));
lPos = -100;
lIncr = ((w + 100) / (currTransition.duration * 0.8));
countdown = Math.max(1, int((currTransition.delayFrames - 16)));
renderColorItem();
}
override protected function customInit(){
super.customInit();
bColor = bData.clone();
bBuffer2 = bData.clone();
bMask = bData.clone();
dsF = new DropShadowFilter(0, 0, 0, 1, 1, 1, 0.8, 3, false, false, true);
bF = new BlurFilter(24, 24, 3);
bevF = new BevelFilter(1, 45, 0xFFFFFF, 1, 0, 1, 1, 1, 1, 3, "inner", false);
var sh:Shape = new Shape();
var _local2 = sh.graphics;
with (_local2) {
beginFill(0, 1);
drawRect(40, 40, (w - 80), (h - 80));
};
bMask.draw(sh);
bMask.applyFilter(bMask, box, origin, bF);
bMap.blendMode = "add";
cT = new ColorTransform(1, 1, 1, 0.8, 0, 0, 0, 0);
refM = new Matrix();
lRect = new Rectangle(0, 0, 0, h);
lP = new Point();
addEventListener(Event.ENTER_FRAME, updateEffect);
}
override protected function transitionUpdated(){
cT.alphaMultiplier = (currTransition.persistence) ? (Math.min(95, currTransition.persistence) / 100) : 0.8;
}
public function renderColorItem(){
var ci:uint;
var target:BitmapData;
bColor.fillRect(box, 0);
var r:* = new Rectangle(0, 0, w, 1);
var h:uint = hitR.height;
var h2:uint = (h / 2);
var minI:uint = 64;
var maxI:uint = (0xFF - minI);
var yp:uint;
while (yp < h) {
r.y = yp;
ci = (uint(((yp)>h2) ? ((maxI * (h - yp)) / h2) : ((maxI * yp) / h2)) + minI);
bBuffer.fillRect(r, colorMap[ci]);
yp = (yp + 1);
};
bBuffer2.fillRect(box, 0);
bBuffer2.copyPixels(bBuffer, hitR, pt, bDraw, origin);
if (currTransition.glow){
var _local2 = dsF;
with (_local2) {
blurX = (blurY = 1);
strength = (currTransition.glow / 100);
quality = 3;
};
bColor.applyFilter(bBuffer2, box, origin, dsF);
_local2 = bF;
with (_local2) {
blurX = (blurY = 8);
quality = 3;
};
bColor.applyFilter(bColor, box, origin, bF);
bColor.paletteMap(bColor, box, origin, null, null, null, colorMap);
};
if (currTransition.size < 25){
target = bBuffer2;
} else {
bBuffer.applyFilter(bBuffer2, box, origin, bevF);
target = bBuffer;
};
bColor.draw(target, null, null, (currTransition.glow) ? "add" : "normal", box, true);
}
override protected function destroy(){
removeEventListener(Event.ENTER_FRAME, updateEffect);
super.destroy();
}
}
}//package bitfade.text
Section 3
//effect (bitfade.text.effect)
package bitfade.text {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import bitfade.utils.*;
import bitfade.presets.*;
public class effect extends Sprite {
protected var pt:Point;
protected var currTransitionIdx:uint;// = 0
protected var tim:Timer;
public var bMap:Bitmap;
protected var hitR:Rectangle;
protected var rL:resLoader;
protected var ready:Boolean;// = false
protected var conf:Object;
protected var origin:Point;
protected var currTransition:Object;
public var bData:BitmapData;
protected var inited:Boolean;// = false
protected var drawCT:ColorTransform;
protected var textF:TextFormat;
protected var clickArea:Sprite;
protected var currTextIdx:uint;// = 0
protected var bBuffer:BitmapData;
protected var textR:TextField;
protected var bDraw:BitmapData;
protected var box:Rectangle;
protected var wea:MovieClip;
protected var h:uint;
protected var w:uint;
protected var colorMap:Array;
protected var currText:Object;
public function effect(_arg1){
var conf = _arg1;
currText = {};
wea = new logo();
super();
textR = new TextField();
textF = new TextFormat("Arial", 100, 0);
var _local3 = textR;
with (_local3) {
border = false;
background = false;
condenseWhite = true;
multiline = true;
selectable = false;
defaultTextFormat = textF;
};
drawCT = new ColorTransform(0, 0, 0, 1, 0, 0, 0, 0);
colorMap = new Array(0x0100);
buildColorMap();
tim = new Timer(1000, 1);
tim.addEventListener(TimerEvent.TIMER, updateText);
if ((conf is XML)){
configure(conf);
} else {
rL = new resLoader(configure);
rL.add(conf);
};
}
public function updateTransition(){
tim.reset();
if (currTransitionIdx < conf.transition.length){
currTransitionIdx++;
} else {
if (conf.noloop){
return (destroy());
};
currTransitionIdx = 1;
};
currTransition = conf.transition[(currTransitionIdx - 1)];
setFont(currTransition.font, currTransition.size);
if (currTransition.color){
buildColorMap(currTransition.color);
};
currTextIdx = 0;
transitionUpdated();
updateText(true);
}
public function buildColorMap(_arg1="ocean"){
var _local5:Object;
var _local6:Object;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:uint;
var _local13:*;
if ((_arg1 is String)){
_arg1 = gradients[_arg1];
if (!_arg1){
_arg1 = gradients.ocean;
};
} else {
if ((_arg1 is uint)){
if (_arg1 < 16777216){
_arg1 = [0, (4278190080 | _arg1)];
} else {
_arg1 = [0, _arg1];
};
};
};
var _local2:* = 0;
var _local3:* = (_arg1.length - 1);
var _local4:* = (0x0100 / _local3);
var _local12:* = 0;
while (_local12 < _local3) {
_local5 = hex2rgb(_arg1[_local12]);
_local6 = hex2rgb(_arg1[(_local12 + 1)]);
_local7 = ((_local6.r - _local5.r) / _local4);
_local8 = ((_local6.g - _local5.g) / _local4);
_local9 = ((_local6.b - _local5.b) / _local4);
_local10 = ((_local6.a - _local5.a) / _local4);
_local13 = 0;
while (_local13 <= _local4) {
colorMap[_local2] = ((((_local5.a << 24) | (_local5.r << 16)) | (_local5.g << 8)) | _local5.b);
_local5.r = (_local5.r + _local7);
_local5.g = (_local5.g + _local8);
_local5.b = (_local5.b + _local9);
_local5.a = (_local5.a + _local10);
_local2++;
_local13++;
};
_local12++;
};
}
protected function init(_arg1:Event=null){
var t:Object;
var c:String;
var e = _arg1;
for each (t in conf.transition) {
t.duration = (((t.duration > 0)) ? t.duration : 3 * stage.frameRate);
if (t.delay){
t.delayFrames = (t.delay * stage.frameRate);
t.delay = (t.delay * 1000);
} else {
t.delay = 0;
};
if (t.color){
c = t.color;
if (c.charAt(0) == "#"){
t.color = parseInt(("0x" + c.substr(1)));
} else {
if (c.charAt(0) == "["){
t.color = c.substr(1, (c.length - 2)).split(",").map(function (_arg1){
return (parseInt(_arg1));
});
};
};
};
};
if (inited){
currTransitionIdx = 0;
return (updateTransition());
};
try {
removeEventListener(Event.ADDED, init);
} catch(e) {
};
if (!conf.width){
conf.width = stage.stageWidth;
};
if (!conf.height){
conf.height = stage.stageHeight;
};
textR.width = (w = conf.width);
textR.height = (h = conf.height);
bData = new BitmapData(w, h, true, 0);
bMap = new Bitmap(bData);
bDraw = bData.clone();
bBuffer = bData.clone();
if (conf.centered){
layout();
stage.addEventListener(Event.RESIZE, layout);
};
addChild(bMap);
clickArea = new Sprite();
clickArea.buttonMode = true;
clickArea.addEventListener(MouseEvent.CLICK, clickHandler);
addChild(clickArea);
pt = new Point();
origin = new Point();
box = new Rectangle(0, 0, w, h);
customInit();
inited = true;
updateTransition();
}
protected function clickHandler(_arg1){
resLoader.openUrl(currText.link, "_self");
}
public function updateText(_arg1=null){
if (((!(_arg1)) && ((currTransition.delay > 0)))){
if (!tim.running){
tim.delay = currTransition.delay;
tim.start();
};
return;
};
ready = false;
if (currTextIdx < currTransition.item.length){
currTextIdx++;
} else {
return (updateTransition());
};
currText = currTransition.item[(currTextIdx - 1)];
currText.pass = (currTransition.loop) ? currTransition.loop : 1;
textR.htmlText = currText.content;
draw();
setClickArea();
ready = true;
textUpdated();
}
protected function customInit(){
}
protected function layout(_arg1=null){
bMap.x = ((stage.stageWidth - w) / 2);
bMap.y = ((stage.stageHeight - h) / 2);
}
protected function hitBox(_arg1:BitmapData):Rectangle{
var bm = _arg1;
var xs:uint;
var xe:uint = w;
var ys:uint;
var ye:uint = h;
var hb:* = new Rectangle(0, 0, 1, h);
var _local3 = hb;
with (_local3) {
x = 0;
y = 0;
width = 1;
height = h;
};
while (!(bm.hitTest(origin, 1, hb))) {
if (++hb.x > (w - 1)){
break;
};
};
xs = hb.x;
hb.x = (w - 1);
while (!(bm.hitTest(origin, 1, hb))) {
if (--hb.x < 1){
break;
};
};
xe = hb.x;
_local3 = hb;
with (_local3) {
x = 0;
y = 0;
height = 1;
width = w;
};
while (!(bm.hitTest(origin, 1, hb))) {
if (++hb.y > (h - 1)){
break;
};
};
ys = hb.y;
hb.y = (h - 1);
while (!(bm.hitTest(origin, 1, hb))) {
if (--hb.y < 1){
break;
};
};
ye = hb.y;
_local3 = hb;
with (_local3) {
x = xs;
y = ys;
width = ((xe - xs) + 1);
height = ((ye - ys) + 1);
};
return (hb);
}
protected function draw(){
var rtClass:Class;
var rtObject:*;
bBuffer.fillRect(bBuffer.rect, 0);
if (currText.type == "class"){
rtClass = Class(getDefinitionByName(currText.content));
rtObject = new (rtClass);
bBuffer.draw(rtObject, null, drawCT, null, null, true);
} else {
bBuffer.draw(textR, null, null, null, null, true);
};
hitR = hitBox(bBuffer);
bDraw.fillRect(bDraw.rect, 0);
bDraw.copyPixels(bBuffer, hitR, origin);
var _local2 = hitR;
with (_local2) {
x = 0;
y = 0;
pt.x = ((w - width) / 2);
pt.y = ((h - height) / 2);
};
}
protected function setFont(_arg1, _arg2){
if (_arg1 == undefined){
_arg1 = "Arial";
};
if (_arg2 == undefined){
_arg2 = 100;
};
textF.font = _arg1;
textF.size = _arg2;
textR.embedFonts = false;
var _local3:Array = Font.enumerateFonts(false);
var _local4:uint;
while (_local4 < _local3.length) {
if (_local3[_local4].fontName == _arg1){
textR.embedFonts = true;
break;
};
_local4++;
};
textR.defaultTextFormat = textF;
}
protected function textUpdated(){
}
protected function transitionUpdated(){
}
public function configure(_arg1, _arg2=null, _arg3=null){
conf = xmlParser.toObject(_arg1);
if (stage){
init();
} else {
addEventListener(Event.ADDED, init);
};
}
protected function setClickArea(){
if (currText.link){
var _local2 = clickArea.graphics;
with (_local2) {
clear();
beginFill(0, 0);
drawRect(pt.x, pt.y, hitR.width, hitR.height);
};
clickArea.visible = true;
} else {
clickArea.visible = false;
};
}
private function hex2rgb(_arg1){
return ({a:(_arg1 >>> 24), r:((_arg1 >>> 16) & 0xFF), g:((_arg1 >>> 8) & 0xFF), b:(_arg1 & 0xFF)});
}
protected function destroy(){
tim.removeEventListener(TimerEvent.TIMER, updateText);
if (conf.centered){
stage.removeEventListener(Event.RESIZE, layout);
};
parent.removeChild(this);
}
}
}//package bitfade.text
Section 4
//resLoader (bitfade.utils.resLoader)
package bitfade.utils {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class resLoader {
private var cache:Array;
private var hash:Array;
private var currExt:String;
private var queue:Array;
private var lKey:uint;// = 0
private var key:uint;// = 0
private var textLoader:URLLoader;
private var rev:Array;
public var callBack:Function;
private var resUrl:URLRequest;
private var displayLoader:Loader;
private var loading:Boolean;// = false
public function resLoader(_arg1){
queue = [];
cache = [];
hash = [];
rev = [];
super();
resUrl = new URLRequest();
callBack = _arg1;
displayLoader = new Loader();
textLoader = new URLLoader();
displayLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, displayLoaderComplete);
textLoader.addEventListener(Event.COMPLETE, textLoaderComplete);
}
public function getContent(_arg1){
if ((_arg1 is uint)){
return (cache[_arg1]);
};
return (cache[hash[_arg1]]);
}
public function textLoaderComplete(_arg1:Event){
loading = false;
cache[lKey] = ((currExt)=="xml") ? new XML(textLoader.data) : textLoader.data;
callBack(cache[lKey], lKey, resUrl.url);
update();
}
public function done(){
return ((((loading == false)) && ((queue.length == 0))));
}
private function update(){
if (((loading) || ((queue.length == 0)))){
return;
};
var _local1:Object = queue.pop();
resUrl.url = _local1.url;
lKey = _local1.key;
loading = true;
currExt = _local1.url.substring((_local1.url.lastIndexOf(".") + 1)).toLowerCase();
if (currExt == "xml"){
textLoader.load(resUrl);
} else {
displayLoader.load(resUrl);
};
}
public function displayLoaderComplete(_arg1:Event){
loading = false;
cache[lKey] = displayLoader.content;
displayLoader.unload();
callBack(lKey, resUrl.url);
update();
}
public function add(_arg1){
var _local3:*;
if ((_arg1 is String)){
return (_add(_arg1));
};
var _local2:* = [];
for each (_local3 in _arg1) {
_local2.push(_add(_local3));
};
return (_local2);
}
private function _add(_arg1:String){
var _local2:* = hash[_arg1];
if ((((_local2 > 0)) && (cache[_local2]))){
callBack(cache[_local2], _local2, _arg1);
return (_local2);
};
key++;
queue.push({url:_arg1, key:key});
hash[_arg1] = key;
rev[key] = _arg1;
update();
return (key);
}
public function getKey(_arg1){
return (hash[_arg1]);
}
public function getUrl(_arg1){
return (rev[_arg1]);
}
public static function openUrl(_arg1, _arg2){
var url = _arg1;
var target = _arg2;
try {
navigateToURL(new URLRequest(url), target);
} catch(e) {
};
}
}
}//package bitfade.utils
Section 5
//xmlParser (bitfade.utils.xmlParser)
package bitfade.utils {
import flash.xml.*;
public class xmlParser {
public static function toObject(_arg1):Object{
var _local3:XML;
var _local4:String;
var _local5:Object;
var _local2:Object = {};
for each (_local3 in _arg1.@*) {
_local4 = _local3.localName();
_local2[_local4] = String(_arg1.attribute(_local4));
};
_local5 = _arg1.text();
if (_local5){
_local2.content = _local5;
};
if (_arg1.hasComplexContent()){
for each (_local3 in _arg1.*) {
_local4 = _local3.localName();
_local5 = xmlParser.toObject(_local3);
if ((_local2[_local4] is Array)){
_local2[_local4].push(_local5);
} else {
_local2[_local4] = [_local5];
};
};
};
return (_local2);
}
}
}//package bitfade.utils
Section 6
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function concatObjects(... _args):Object{
var _local3:Object;
var _local5:String;
var _local2:Object = {};
var _local4:int;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
}
}//package caurina.transitions
Section 7
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 8
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var valueComplete:Number;
public var modifierFunction:Function;
public var extra:Object;
public var valueStart:Number;
public var hasModifier:Boolean;
public var arrayIndex:Number;
public var originalValueComplete:Object;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function toString():String{
var _local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 9
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var getValue:Function;
public var preProcess:Function;
public var setValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 10
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 11
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 12
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
private static var _engineExists:Boolean = false;
private static var _specialPropertyModifierList:Object;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
if (!_inited){
init();
};
var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
if (!_inited){
init();
};
var _local6:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
var _local5:Object = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time;
var _local7:Number = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function pauseAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
if (_specialPropertySplitterList[_args[_local4]]){
_local5 = _specialPropertySplitterList[_args[_local4]];
_local6 = _local5.splitValues(_arg1, null);
_local7 = 0;
while (_local7 < _local6.length) {
_local3.push(_local6[_local7].name);
_local7++;
};
} else {
_local3.push(_args[_local4]);
};
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local5:uint;
var _local6:String;
var _local7:Boolean;
var _local3:TweenListObj = _tweenList[_arg1];
var _local4:TweenListObj = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
var _local3:Number = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.31.74");
}
public static function onEnterFrame(_arg1:Event):void{
updateTime();
updateFrame();
var _local2:Boolean;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
var isOver:Boolean;
var cTime:Number = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e2:Error) {
handleError(tTweening, e2, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e3:Error) {
handleError(tTweening, e3, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e4:Error) {
handleError(tTweening, e4, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
var _local7:Object = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time;
var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay;
var _local10:Array = new Array();
var _local11:Object = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
var _local12:Object = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local4:Boolean;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
if (!Boolean(_tweenList)){
return ([]);
};
var _local4:Array = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
if (!Boolean(_tweenList)){
return (0);
};
var _local3:Number = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removedLocally:Boolean;
var i:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
var removed:Boolean;
var tl:uint = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
if (!_inited){
init();
};
var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 13
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var hasStarted:Boolean;
public var onUpdate:Function;
public var useFrames:Boolean;
public var count:Number;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var isCaller:Boolean;
public var timePaused:Number;
public var transition:Function;
public var onCompleteParams:Array;
public var onError:Function;
public var timesCalled:Number;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local3:String;
var _local2:TweenListObj = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local3:String;
var _local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
var _local2:Boolean;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local2:Object = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 14
//AdLoader (com.cpmstar.AdLoader)
package com.cpmstar {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var cpmstarLoader:Loader;
private var contentspotid:String;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function addedHandler(_arg1:Event):void{
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
var _local2 = "http://server.cpmstar.com/adviewas3.swf";
var _local3:DisplayObjectContainer = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
}
}//package com.cpmstar
Section 15
//GameNodeAPI (com.gamenode.GameNodeAPI)
package com.gamenode {
import flash.display.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.external.*;
public class GameNodeAPI extends MovieClip {
private static var _cache:Array = new Array();
private static var _level:String;
private static var _hascache:Boolean = false;
private static var _allowedDomain:Boolean = false;
private static var _sid:String = undefined;
private static var _score:int;
private static var _initialized:Boolean = false;
private static var _callback:Function;
private static var _locked:Boolean = false;
private static var _gameID:int = 0;
private static var _url:String;
private static var _username:String = "";
private static var _member:Boolean = false;
private static var _userid:uint = 0;
private static var _debug:Boolean = false;
private static var _server:String = "http://api.gamenode.com/";
private static var _domain:String;
public static var Level:String;
private static var _domains:Array = new Array("www.gamenode.com", "cdn.gamenode.com", "www.gamezone.nl", "cdn.gamezone.nl", "www.nodojuegos.com", "cdn.nodojuegos.com", "static.gamenode.com", "beta.gamenode.com");
public static var Username:String;
public static var Score:Number;
private static var _stage:DisplayObject;
public function GameNodeAPI(_arg1:DisplayObject):void{
_url = _arg1.loaderInfo.url;
}
private static function createBinaryKey(_arg1:Array):String{
var _local2 = "";
var _local3:int;
while (_local3 < 16) {
_local2 = (_local2 + String.fromCharCode(_arg1[_local3]));
_local3++;
};
return (_local2);
}
public static function lockDomains(_arg1:Array):void{
var _local2:String = getDomain();
if (_arg1.indexOf(_local2) >= 0){
_locked = false;
} else {
_locked = true;
};
}
public static function set level(_arg1:String):void{
if (_debug){
trace(("[GameNodeAPI] Level set: " + _arg1));
};
_level = _arg1;
}
public static function get level():String{
return (_level);
}
public static function gotoURL(_arg1:int):void{
if (_debug){
trace("[GameNodeAPI] Opening external browser window.");
};
var _local2:Array = new Array(18, 2, 5, 19, 14, 6, 16, 10, 19, 8, 7, 16, 1, 13, 5, 15);
var _local3:String = ((((("id=" + _gameID) + "&url=") + _url) + "&target=") + _arg1);
var _local4 = "location";
openWindow(_local3, createBinaryKey(_local2), _local4);
}
public static function get score():int{
return (_score);
}
private static function setUserData(_arg1:Object):void{
if (_arg1.success == true){
if (_debug){
trace("[GameNodeAPI] Received user data.");
};
_username = _arg1.name;
_userid = _arg1.id;
_member = true;
};
}
public static function get locked():Boolean{
return (_locked);
}
public static function get allowedDomain():Boolean{
return (_allowedDomain);
}
public static function set gameID(_arg1:int):void{
var _local2:String;
_gameID = _arg1;
if (!_initialized){
trace((("[GameNodeAPI] Initialisation started. GameID = " + _arg1) + "."));
_local2 = getDomain();
if (_domains.indexOf(_local2) >= 0){
_allowedDomain = true;
trace("[GameNodeAPI] Private domain detected. All features are enabled.");
} else {
_allowedDomain = false;
trace("[GameNodeAPI] Running on unknown domain. Highscore submission is disabled.");
};
sendStats();
_initialized = true;
};
}
private static function dataKeyHash(_arg1:String, _arg2:String):String{
var _local7:int;
var _local8:int;
var _local9:int;
var _local3 = "";
var _local4:int = _arg2.length;
var _local5:int = _arg1.length;
var _local6:int;
var _local10 = "";
var _local11:int;
while (_local11 < _local5) {
_local7 = _arg1.charCodeAt(_local11);
_local8 = _arg2.substr(((_local11 % _local4) - 1), 1).charCodeAt(0);
_local9 = (_local7 + _local8);
_local6 = (_local6 + _local9);
_local3 = (_local3 + _local9.toString(16));
_local11++;
};
_local6 = (_local6 % 0xFFFF);
_local10 = _local6.toString(16);
_local11 = 0;
while ((4 - _local10.length)) {
_local10 = ("0" + _local10);
_local11++;
};
return ((_local3 + _local10));
}
public static function set score(_arg1:int):void{
if (_debug){
trace(("[GameNodeAPI] Score set: " + _arg1));
};
_score = _arg1;
}
public static function set debug(_arg1:Boolean){
if (_arg1){
_debug = true;
} else {
_debug = false;
};
}
public static function set selfLock(_arg1:Boolean):void{
var _local2:String = getDomain();
if (_arg1 == true){
if (_domains.indexOf(_local2) >= 0){
_locked = false;
} else {
_locked = true;
};
};
}
private static function Send(_arg1:String, _arg2:String, _arg3:String, _arg4:Function):void{
var _local5:Date = new Date();
var _local6:GameNodeSC = new GameNodeSC();
_local6.vars.command = _arg3;
_local6.vars.data = dataKeyHash(_arg1, _arg2);
_local6.vars.timestamp = _local5.getTime();
_local6.callback = _arg4;
_local6.execute();
}
private static function requestKeyResponse(_arg1:Object){
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:Number;
var _local6:String;
if (_arg1.key.length > 1){
_local2 = _arg1.key;
_local3 = "";
_local4 = _local2.length;
_local5 = 0;
while (_local5 < _local4) {
_local3 = (_local3 + String.fromCharCode(parseInt((_local2.charAt(_local5) + _local2.charAt((_local5 + 1))), 16)));
_local5 = (_local5 + 2);
};
_local6 = ((((((((("id=" + _gameID) + "&userid=") + _userid) + "&username=") + _username) + "&score=") + _score) + "&level=") + _level);
Send(_local6, _local3, "submithighscore", _callback);
};
}
public static function get member(){
return (_member);
}
private static function getDomain(){
var _local1:String;
var _local2:Number;
var _local3:String;
if (_url.substring(0, 7) == "http://"){
_local1 = _url.substring(7);
_local2 = _local1.indexOf("/");
_local3 = _local1.substring(0, _local2);
return (_local3);
};
return (false);
}
private static function getHighscoresResponse(_arg1:Object):void{
var _local6:String;
var _local7:Number;
_cache = new Array();
var _local2:XMLDocument = new XMLDocument(_arg1.data);
_local2.ignoreWhite = false;
_local2.parseXML(_arg1.data);
var _local3:Number = _local2.firstChild.childNodes.length;
var _local4:* = _local2.firstChild;
if (_debug){
trace(("[GameNodeAPI] Total highscores received: " + _local3));
};
var _local5:Number = 0;
while (_local5 < _local3) {
_local6 = _local4.childNodes[_local5].childNodes[2].firstChild.nodeValue;
if (_cache[_local6] == undefined){
_cache[_local6] = new Array(0);
_cache[_local6][0] = new Array(0);
};
_local7 = _cache[_local6].length;
_cache[_local6][_local7] = new Array(0);
_cache[_local6][_local7]["name"] = _local4.childNodes[_local5].childNodes[0].firstChild.nodeValue;
_cache[_local6][_local7]["score"] = _local4.childNodes[_local5].childNodes[1].firstChild.nodeValue;
_local5++;
};
_hascache = true;
_callback(true, _cache[_level]);
}
public static function getHighscores(_arg1:String, _arg2:Number, _arg3:Boolean, _arg4:Function):void{
_level = _arg1;
if (((((!(_allowedDomain)) && (_hascache))) && (_arg3))){
if (_debug){
trace((("[GameNodeAPI] Loading highscores of level " + _arg1) + " from cache"));
};
_arg4(true, _cache[_arg1]);
return;
};
if (_gameID == 0){
_arg4(false, undefined);
return;
};
if (!_arg2){
_arg2 = 0;
};
_callback = _arg4;
var _local5:GameNodeSC = new GameNodeSC();
_local5.vars.command = "requestallhighscores";
_local5.vars.id = _gameID;
_local5.vars.limit = _arg2;
_local5.callback = getHighscoresResponse;
_local5.execute();
}
private static function openWindow(_arg1:String, _arg2:String, _arg3:String):void{
var _local4:URLRequest = new URLRequest(_server);
_local4.method = URLRequestMethod.POST;
_local4.data = ((("command=" + _arg3) + "&data=") + dataKeyHash(_arg1, _arg2));
trace(_arg3);
navigateToURL(_local4, "_blank");
}
public static function set userName(_arg1:String):void{
if (_debug){
trace(("[GameNodeAPI] Username set: " + _arg1));
};
_username = _arg1;
}
public static function pollUserData():void{
var _local1:Object;
if (((_allowedDomain) && (ExternalInterface.available))){
if (_debug){
trace("[GameNodeAPI] ExternalInterface is available, getting user data.");
};
_local1 = ExternalInterface.call("API_getUserData");
setUserData(_local1);
} else {
if (_debug){
trace("[GameNodeAPI] ExternalInterface NOT available.");
};
};
}
private static function sendStats():void{
var _local1:Array = new Array(20, 15, 17, 16, 14, 9, 19, 2, 20, 19, 17, 6, 14, 13, 7, 18);
var _local2:String = ((((("id=" + _gameID) + "&url=") + _url) + "&") + unescape(Capabilities.serverString));
var _local3 = "statistics";
var _local4 = "";
var _local5:int;
while (_local5 < 16) {
_local4 = (_local4 + String.fromCharCode(_local1[_local5]));
_local5++;
};
Send(_local2, _local4, _local3, null);
}
public static function submitHighscore(_arg1:Function){
if ((_gameID == 0)){
return (false);
};
if (_arg1 != null){
_callback = _arg1;
};
var _local2:GameNodeSC = new GameNodeSC();
_local2.vars.command = "requestkey";
_local2.callback = requestKeyResponse;
_local2.execute();
}
public static function get userName(){
if (_username == ""){
return (false);
};
return (_username);
}
}
}//package com.gamenode
Section 16
//GameNodeSC (com.gamenode.GameNodeSC)
package com.gamenode {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class GameNodeSC {
public var callback:Function;
public var timeout:Timer;
public var vars:URLVariables;
public static var sid:String = "";
public static var URL:String = "http://api.gamenode.com/";
public function GameNodeSC(){
vars = new URLVariables();
timeout = new Timer(10000, 1);
super();
}
private function openHandler(_arg1:Event):void{
}
public function ServerConnection():void{
}
private function serverResponseHandler(_arg1:Event):void{
var loader:URLLoader;
var event = _arg1;
crapClean();
loader = URLLoader(event.target);
var vars:URLVariables = new URLVariables();
if (loader.data.length != 0){
try {
vars = new URLVariables(loader.data);
trace("[GameNodeAPI] Recieved some data");
} catch(error:Error) {
trace(("[GameNodeAPI] Error: " + loader.data));
};
};
if (vars.sid){
sid = vars.sid;
};
if (callback != null){
callback(vars);
};
}
private function securityErrorHandler(_arg1:SecurityErrorEvent):void{
crapClean();
trace(("[GameNodeAPI] Security Error: " + _arg1));
}
private function crapClean():void{
timeout.removeEventListener("timer", httpTimeoutHandler);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
crapClean();
trace(("[GameNodeAPI] IO Error: " + _arg1));
}
private function httpStatusHandler(_arg1:HTTPStatusEvent):void{
}
private function httpTimeoutHandler(_arg1:TimerEvent):void{
crapClean();
trace("[GameNodeAPI] Server Timeout.");
}
public function execute():void{
var _local1:URLRequest = new URLRequest(URL);
var _local2:URLLoader = new URLLoader();
_local2.addEventListener(Event.COMPLETE, serverResponseHandler);
_local2.addEventListener(Event.OPEN, openHandler);
_local2.addEventListener(ProgressEvent.PROGRESS, progressHandler);
_local2.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_local2.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
_local2.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
timeout.addEventListener("timer", httpTimeoutHandler);
timeout.start();
vars.sid = sid;
_local1.method = URLRequestMethod.POST;
_local1.data = vars;
_local2.load(_local1);
trace("[GameNodeAPI] Sending some data");
}
private function progressHandler(_arg1:ProgressEvent):void{
trace(((("[GameNodeAPI] Received: " + _arg1.bytesLoaded) + "/") + _arg1.bytesTotal));
}
}
}//package com.gamenode
Section 17
//MochiAd (com.mochiads.MochiAd)
package com.mochiads {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showClickAwayAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, 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 = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = 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{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
var sendHostProgress:Boolean;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
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 = _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 clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, 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 = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = 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{
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = 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{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.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 _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
var _local3:Object = {};
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 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);
};
var idx:Number = 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 clip:Object;
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;
var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.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 (!MochiAd._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."));
};
var depth:Number = options.depth;
delete options.depth;
var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth);
var wh:Array = MochiAd._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");
};
var lv:URLVariables = 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();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.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 = _arg2.split(".");
var _local5:Number = 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 = 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 _local6:Array;
var _local3:Object = _arg2.getBounds(_arg2.root);
var _local4:Number = 0;
var _local5:Number = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
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 = _arg2.split(".");
var _local4:Number = 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":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.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 = _arg2.split(".");
var _local5:Number = 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 clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var complete:Boolean;
var unloaded:Boolean;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:3000, 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 = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
if (options.skip){
ad_timeout = 0;
};
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
var fn:Function = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = 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);
var bar:MovieClip = 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);
};
var bar_w:Number = ((w - bar.x) - 10);
var bar_color:Number = options.color;
delete options.color;
var bar_background:Number = options.background;
delete options.background;
var bar_outline:Number = options.outline;
delete options.outline;
var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1);
var backing:Object = 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();
var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2);
var inside:Object = 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;
var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3);
var outline:Object = 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 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
var progress:Number = Math.min(1, options.progress_override(clip));
var f:Function = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.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){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = 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{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local12:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
var _local1:Object = this.parent.parent.root;
var _local2:Object = this.parent._mochiad_ctr;
var _local3:Number = (getTimer() - this.started);
var _local4:Boolean;
var _local5:Number = _local1.loaderInfo.bytesTotal;
var _local6:Number = _local1.loaderInfo.bytesLoaded;
var _local7:Number = Math.min(1, options.progress_override(_local1));
if (_local7 == 1){
complete = true;
};
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
var _local8:Number = ((100 * _local6) / _local5);
if (!isNaN(_local7)){
_local8 = (100 * _local7);
};
var _local9:Number = ((100 * _local3) / chk.ad_msec);
var _local10:Object = this._mochiad_bar._inside;
var _local11:Number = 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();
MochiAd.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){
MochiAd.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");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var mc = _arg1;
var f:Function = 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 com.mochiads
Section 18
//MochiCoins (com.mochiads.MochiCoins)
package com.mochiads {
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";
public static var _inventory:MochiInventory;
public static function triggerEvent(_arg1:String, _arg2:Object):void{
MochiSocial.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
MochiSocial.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
MochiSocial.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.bringToTop();
MochiServices.send("coins_showStore", {options:_arg1}, null, null);
}
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.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.bringToTop();
MochiServices.send("coins_showVideo", {options:_arg1}, null, null);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_inventory = new MochiInventory();
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_inventory = null;
});
}
}//package com.mochiads
Section 19
//MochiDigits (com.mochiads.MochiDigits)
package com.mochiads {
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 reencode():void{
var _local1:uint = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function toString():String{
var _local1:String = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String = _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 get value():Number{
return (Number(this.toString()));
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package com.mochiads
Section 20
//MochiEventDispatcher (com.mochiads.MochiEventDispatcher)
package com.mochiads {
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 com.mochiads
Section 21
//MochiEvents (com.mochiads.MochiEvents)
package com.mochiads {
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 addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
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 _local4:Object;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
_local3.clip = _arg1;
MochiServices.send("events_setNotifications", _local3, null, null);
}
public static function endGame():void{
var _local1:Number = (new Date().time - gameStart);
trigger("end_game", {time:_local1});
}
public static function startGame():void{
gameStart = new Date().time;
trigger("start_game");
}
public static function trigger(_arg1:String, _arg2:Object=null):void{
if (_arg2 == null){
_arg2 = {};
} else {
if (_arg2["kind"] != undefined){
trace("WARNING: optional arguments package contains key 'id', it will be overwritten");
_arg2["kind"] = _arg1;
};
};
MochiServices.send("events_triggerEvent", {eventObject:_arg2}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function startLevel():void{
levelStart = new Date().time;
trigger("start_level");
}
public static function endLevel():void{
var _local1:Number = (new Date().time - levelStart);
trigger("end_level", {time:_local1});
}
}
}//package com.mochiads
Section 22
//MochiInventory (com.mochiads.MochiInventory)
package com.mochiads {
import flash.events.*;
import flash.utils.*;
public dynamic class MochiInventory extends Proxy {
private var _timer:Timer;
private var _names:Array;
private var _syncID:Number;
private var _consumableProperties:Object;
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.consumable){
if (!this[_arg1.privateProperties.tag]){
this[_arg1.privateProperties.tag] = 0;
};
this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count));
};
}
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 getProperty(_arg1){
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (-1);
};
if (_consumableProperties[_arg1]){
return (MochiDigits(_consumableProperties[_arg1]).value);
};
return (undefined);
}
private function loggedIn(_arg1:Object=null):void{
MochiUserData.get(CONSUMER_KEY, getConsumableBag);
}
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));
}
private function putConsumableBag(_arg1:MochiUserData):void{
_syncPending = false;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
_outstandingID = -1;
};
triggerEvent(WRITTEN, {});
}
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 itemOwned(_arg1:Object):void{
_storeSync[_arg1.id] = {properties:_arg1.properties, count:_arg1.count};
}
private function sync(_arg1:Event=null):void{
var _local3:String;
if (((_syncPending) || ((_syncID == _outstandingID)))){
return;
};
_outstandingID = _syncID;
var _local2:Object = {};
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)]);
}
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 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]);
};
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 com.mochiads
Section 23
//MochiServices (com.mochiads.MochiServices)
package com.mochiads {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
private static var _preserved:Object;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
public static var servicesSync:MochiSync = new MochiSync();
private static var _clip:MovieClip;
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 _loader:Loader;
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 methodName:String;
var pkg = _arg1;
var cb:String = pkg.callbackID;
var cblst:Object = _clip._callbacks[cb];
if (!cblst){
return;
};
var method:* = cblst.callbackMethod;
methodName = "";
var obj:Object = 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 _clip._callbacks[cb];
}
public static function get childClip():Object{
return (_clip);
}
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:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1));
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._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 _local4:int;
var _local14:Loader;
var _local3:Array = [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];
var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
var _local6:Array = [0, 64, 0, 0, 0];
var _local7:MovieClip = new MovieClip();
var _local8:LocalConnection = new LocalConnection();
var _local9:String = ((("_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);
var _local10:ByteArray = new ByteArray();
var _local11:ByteArray = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
var _local12:uint = ((_local3.length + _local11.length) + 4);
var _local13:uint = (_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);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var avm1Click:DisplayObject;
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;
var vars:Object = 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);
var s = "?";
var i:Number = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://x.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
var _local2:Rectangle = 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 warnID(_arg1:String, _arg2:Boolean):void{
_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;
};
};
};
var _local3:Number = 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++;
};
}
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();
} 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.7 as3");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (((_clip) && (_clip._queue))){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._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 = _arg1.target;
var _local3:String = _arg1.event;
switch (_local2){
case "events":
MochiEvents.triggerEvent(_arg1.event, _arg1.args);
break;
case "coins":
MochiCoins.triggerEvent(_arg1.event, _arg1.args);
break;
case "sync":
servicesSync.triggerEvent(_arg1.event, _arg1.args);
break;
};
}
private static function urlOptions(_arg1:Object):Object{
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
var _local2:Object = {};
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 setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_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.");
MochiServices.disconnect();
MochiServices.onError("IOError");
}
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{
MochiServices.onError("IOError");
};
while (_clip._queue.length > 0) {
_mochiLocalConnection.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function loadLCBridge(_arg1:Object):void{
var loader:Loader;
var clip = _arg1;
loader = new Loader();
var mochiLCURL:String = (_servURL + _mochiLC);
var req:URLRequest = new URLRequest(mochiLCURL);
var complete:Function = function (_arg1:Object):void{
_mochiLocalConnection = MovieClip(loader.content);
listen();
};
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
loader.load(req);
clip.addChild(loader);
}
private static function listen():void{
_mochiLocalConnection.connect(_listenChannelName);
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
trace("Waiting for MochiAds services to connect...");
}
public static function get clip():Object{
return (_container);
}
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 = ("_mochiservices_com_" + _arg1);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(_arg2).servURL){
_servURL = urlOptions(_arg2).servURL;
};
var _local4:String = (_servURL + _services);
if (urlOptions(_arg2).servicesURL){
_local4 = urlOptions(_arg2).servicesURL;
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999))));
MochiServices.allowDomains(_local4);
_clip = createEmptyMovieClip(_arg2, _local3, 10336, false);
loadLCBridge(_clip);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
var _local5:URLRequest = new URLRequest(_local4);
var _local6:URLVariables = new URLVariables();
_local6.listenLC = _listenChannelName;
_local6.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options;
_local6.api_version = getVersion();
if (widget){
_local6.widget = true;
};
_local5.data = _local6;
_loader.load(_local5);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_clip._nextcallbackID = 0;
_clip._callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
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){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
var mc:MovieClip = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function bringToTop(_arg1:Event=null):void{
var e = _arg1;
if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
}
}//package com.mochiads
Section 24
//MochiSocial (com.mochiads.MochiSocial)
package com.mochiads {
public class MochiSocial {
public static const LOGGED_IN:String = "LoggedIn";
public static const PROFILE_HIDE:String = "ProfileHide";
public static const NO_USER:String = "NoUser";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
public static const IO_ERROR:String = "IOError";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const USER_INFO:String = "UserInfo";
public static const ERROR:String = "Error";
public static const LOGIN_SHOW:String = "LoginShow";
public static const LOGGED_OUT:String = "LoggedOut";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const LOGIN_SHOWN:String = "LoginShown";
public static const LOGIN_HIDE:String = "LoginHide";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static var _user_info:Object = null;
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function saveUserProperties(_arg1:Object):void{
MochiServices.send("coins_saveUserProperties", _arg1);
}
public static function get loggedIn():Boolean{
return (!((_user_info == null)));
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function getUserInfo():void{
MochiServices.send("coins_getUserInfo");
}
public static function showLoginWidget(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showLoginWidget", {options:_arg1});
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function requestLogin():void{
MochiServices.send("coins_requestLogin");
}
public static function getAPIURL():String{
if (!_user_info){
return (null);
};
return (_user_info.api_url);
}
public static function hideLoginWidget():void{
MochiServices.send("coins_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 com.mochiads
Section 25
//MochiSync (com.mochiads.MochiSync)
package com.mochiads {
import flash.utils.*;
public dynamic class MochiSync extends Proxy {
private var _syncContainer:Object;
public static var SYNC_PROPERTY:String = "UpdateProperty";
public static var SYNC_REQUEST:String = "SyncRequest";
public function MochiSync():void{
_syncContainer = {};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
if (_syncContainer[_arg1] == _arg2){
return;
};
var _local3:String = _arg1.toString();
_syncContainer[_local3] = _arg2;
MochiServices.send("sync_propUpdate", {name:_local3, value:_arg2});
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
return (_syncContainer[_arg1]);
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
switch (_arg1){
case SYNC_REQUEST:
MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY:
_syncContainer[_arg2.name] = _arg2.value;
break;
};
}
}
}//package com.mochiads
Section 26
//MochiUserData (com.mochiads.MochiUserData)
package com.mochiads {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class MochiUserData extends EventDispatcher {
public var callback:Function;// = null
public var operation:String;// = null
public var error:Event;// = null
public var data;// = null
public var _loader:URLLoader;
public var key:String;// = null
public function MochiUserData(_arg1:String="", _arg2:Function=null){
this.key = _arg1;
this.callback = _arg2;
}
public function serialize(_arg1):ByteArray{
var _local2:ByteArray = 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 putEvent(_arg1):void{
request("put", serialize(_arg1));
}
public function deserialize(_arg1:ByteArray){
_arg1.objectEncoding = ObjectEncoding.AMF3;
_arg1.uncompress();
return (_arg1.readObject());
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString())));
}
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 performCallback():void{
try {
callback(this);
} catch(e:Error) {
trace(("[MochiUserData] exception during callback: " + e));
};
}
public function request(_arg1:String, _arg2:ByteArray):void{
var _operation = _arg1;
var _data = _arg2;
operation = _operation;
var api_url:String = MochiSocial.getAPIURL();
var api_token:String = MochiSocial.getAPIToken();
if ((((api_url == null)) || ((api_token == null)))){
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in"));
return;
};
_loader = new URLLoader();
var args:URLVariables = new URLVariables();
args.op = _operation;
args.key = key;
var req:URLRequest = 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 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 static function get(_arg1:String, _arg2:Function):void{
var _local3:MochiUserData = new MochiUserData(_arg1, _arg2);
_local3.getEvent();
}
public static function put(_arg1:String, _arg2, _arg3:Function):void{
var _local4:MochiUserData = new MochiUserData(_arg1, _arg3);
_local4.putEvent(_arg2);
}
}
}//package com.mochiads
Section 27
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var cpmstarLoader:Loader;
private var contentspotid:String;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function addedHandler(_arg1:Event):void{
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
var _local2 = "http://server.cpmstar.com/adviewas3.swf";
var _local3:DisplayObjectContainer = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
}
}//package CPMStar
Section 28
//Snowflake (de.kismael.Snowflake)
package de.kismael {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class Snowflake extends Sprite {
private var speedOfSwinging:Number;
private var amplitude:Number;
private var maxSize:Number;
private var wind:Number;
private var pathToSnowGraphic:String;
private var yAcc:Number;
private var xVel:Number;// = 0
private var yVel:Number;// = 0
private var xAcc:Number;// = 0
private var deathTimer:Timer;
private var swing:Number;
public function Snowflake(_arg1:String=null){
deathTimer = new Timer(((1 + Math.random()) * 35000), 1);
maxSize = ((Math.random() * 3) + 1);
speedOfSwinging = ((Math.random() / 20) + 0.005);
yAcc = ((maxSize / 20) * ((Math.random() / 2) + 1));
amplitude = (((1.3 / maxSize) - ((Math.random() * 2) + 1.5)) / 5);
swing = (1 + (Math.random() / 20));
wind = ((0.5 / maxSize) + (0.1 * Math.random()));
super();
this.pathToSnowGraphic = _arg1;
drawFlake();
listenerControl();
deathTimer.start();
}
private function listenerControl():void{
addEventListener(Event.ENTER_FRAME, fallen);
deathTimer.addEventListener(TimerEvent.TIMER_COMPLETE, startFade);
}
private function fade(_arg1:Event):void{
alpha = (alpha - 0.05);
if (alpha <= -0.1){
kill();
};
}
private function startFade(_arg1:Event):void{
addEventListener(Event.ENTER_FRAME, fade);
}
private function drawFlake():void{
if (pathToSnowGraphic == null){
this.graphics.beginFill(0xFFFFFF, 1);
this.graphics.drawCircle(0, 0, maxSize);
this.graphics.endFill();
} else {
loadSnowGraphic();
};
}
private function kill():void{
deathTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, startFade);
removeEventListener(Event.ENTER_FRAME, fade);
removeEventListener(Event.ENTER_FRAME, fallen);
parent.removeChild(this);
}
private function loadSnowGraphic():void{
var _local1:Loader = new Loader();
_local1.load(new URLRequest(pathToSnowGraphic));
this.addChild(_local1);
_local1.scaleX = (_local1.scaleY = (maxSize / 2));
_local1.rotation = (Math.random() * 360);
}
private function fallen(_arg1:Event):void{
swing = (swing + speedOfSwinging);
xAcc = ((Math.sin(swing) * amplitude) + wind);
xVel = xAcc;
yAcc = (yAcc * 0.9);
yVel = (yVel + yAcc);
this.y = (this.y + yVel);
this.x = (this.x + xVel);
this.rotation = (this.rotation + wind);
}
}
}//package de.kismael
Section 29
//Snowing (de.kismael.Snowing)
package de.kismael {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Snowing extends Sprite {
private var pathToSnowGraphic:String;
private var myTimer:Timer;
public function Snowing(_arg1:Number, _arg2:String=null){
myTimer = new Timer(Math.round(_arg1), 0);
this.pathToSnowGraphic = _arg2;
addEventListener(Event.ADDED_TO_STAGE, listenerControl, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, killListener, false, 0, true);
}
private function listenerControl(_arg1:Event):void{
if (!myTimer.hasEventListener(TimerEvent.TIMER)){
myTimer.addEventListener(TimerEvent.TIMER, makeSnow);
};
}
private function makeSnow(_arg1:Event):void{
var _local2:Snowflake = new Snowflake(pathToSnowGraphic);
addChild(_local2);
_local2.x = Math.round((((stage.stageWidth * Math.random()) * 2) - stage.stageWidth));
_local2.y = -20;
}
public function startSnowing():void{
myTimer.start();
}
public function stopSnowing():void{
myTimer.stop();
}
private function killListener(_arg1:Event):void{
if (myTimer.hasEventListener(TimerEvent.TIMER)){
myTimer.removeEventListener(TimerEvent.TIMER, makeSnow);
};
}
}
}//package de.kismael
Section 30
//BaseScrollPane (fl.containers.BaseScrollPane)
package fl.containers {
import fl.core.*;
import fl.controls.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import fl.events.*;
public class BaseScrollPane extends UIComponent {
protected var defaultLineScrollSize:Number;// = 4
protected var _maxHorizontalScrollPosition:Number;// = 0
protected var vScrollBar:Boolean;
protected var disabledOverlay:Shape;
protected var hScrollBar:Boolean;
protected var availableWidth:Number;
protected var _verticalPageScrollSize:Number;// = 0
protected var vOffset:Number;// = 0
protected var _verticalScrollBar:ScrollBar;
protected var useFixedHorizontalScrolling:Boolean;// = false
protected var contentWidth:Number;// = 0
protected var contentHeight:Number;// = 0
protected var _horizontalPageScrollSize:Number;// = 0
protected var background:DisplayObject;
protected var _useBitmpScrolling:Boolean;// = false
protected var contentPadding:Number;// = 0
protected var availableHeight:Number;
protected var _horizontalScrollBar:ScrollBar;
protected var contentScrollRect:Rectangle;
protected var _horizontalScrollPolicy:String;
protected var _verticalScrollPolicy:String;
protected static const SCROLL_BAR_STYLES:Object = {upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {repeatDelay:500, repeatInterval:35, skin:"ScrollPane_upSkin", contentPadding:0, disabledAlpha:0.5};
public function BaseScrollPane(){
contentWidth = 0;
contentHeight = 0;
contentPadding = 0;
vOffset = 0;
_maxHorizontalScrollPosition = 0;
_horizontalPageScrollSize = 0;
_verticalPageScrollSize = 0;
defaultLineScrollSize = 4;
useFixedHorizontalScrolling = false;
_useBitmpScrolling = false;
super();
}
protected function handleWheel(_arg1:MouseEvent):void{
if (((((!(enabled)) || (!(_verticalScrollBar.visible)))) || ((contentHeight <= availableHeight)))){
return;
};
_verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * verticalLineScrollSize));
setVerticalScrollPosition(_verticalScrollBar.scrollPosition);
dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _arg1.delta, horizontalScrollPosition));
}
public function get verticalScrollPosition():Number{
return (_verticalScrollBar.scrollPosition);
}
protected function drawDisabledOverlay():void{
if (enabled){
if (contains(disabledOverlay)){
removeChild(disabledOverlay);
};
} else {
disabledOverlay.x = (disabledOverlay.y = contentPadding);
disabledOverlay.width = availableWidth;
disabledOverlay.height = availableHeight;
disabledOverlay.alpha = (getStyleValue("disabledAlpha") as Number);
addChild(disabledOverlay);
};
}
public function set verticalScrollPosition(_arg1:Number):void{
drawNow();
_verticalScrollBar.scrollPosition = _arg1;
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false);
}
protected function setContentSize(_arg1:Number, _arg2:Number):void{
if ((((((contentWidth == _arg1)) || (useFixedHorizontalScrolling))) && ((contentHeight == _arg2)))){
return;
};
contentWidth = _arg1;
contentHeight = _arg2;
invalidate(InvalidationType.SIZE);
}
public function get horizontalScrollPosition():Number{
return (_horizontalScrollBar.scrollPosition);
}
public function get horizontalScrollBar():ScrollBar{
return (_horizontalScrollBar);
}
override public function set enabled(_arg1:Boolean):void{
if (enabled == _arg1){
return;
};
_verticalScrollBar.enabled = _arg1;
_horizontalScrollBar.enabled = _arg1;
super.enabled = _arg1;
}
public function get verticalLineScrollSize():Number{
return (_verticalScrollBar.lineScrollSize);
}
public function get horizontalScrollPolicy():String{
return (_horizontalScrollPolicy);
}
protected function calculateAvailableSize():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local1 = ScrollBar.WIDTH;
_local2 = (contentPadding = Number(getStyleValue("contentPadding")));
_local3 = ((height - (2 * _local2)) - vOffset);
vScrollBar = (((_verticalScrollPolicy == ScrollPolicy.ON)) || ((((_verticalScrollPolicy == ScrollPolicy.AUTO)) && ((contentHeight > _local3)))));
_local4 = ((width - (vScrollBar) ? _local1 : 0) - (2 * _local2));
_local5 = (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - _local4);
hScrollBar = (((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_local5 > 0)))));
if (hScrollBar){
_local3 = (_local3 - _local1);
};
if (((((((hScrollBar) && (!(vScrollBar)))) && ((_verticalScrollPolicy == ScrollPolicy.AUTO)))) && ((contentHeight > _local3)))){
vScrollBar = true;
_local4 = (_local4 - _local1);
};
availableHeight = (_local3 + vOffset);
availableWidth = _local4;
}
public function get maxVerticalScrollPosition():Number{
drawNow();
return (Math.max(0, (contentHeight - availableHeight)));
}
public function set horizontalScrollPosition(_arg1:Number):void{
drawNow();
_horizontalScrollBar.scrollPosition = _arg1;
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false);
}
public function get horizontalLineScrollSize():Number{
return (_horizontalScrollBar.lineScrollSize);
}
public function set verticalPageScrollSize(_arg1:Number):void{
_verticalPageScrollSize = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get verticalScrollPolicy():String{
return (_verticalScrollPolicy);
}
protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
}
public function get useBitmapScrolling():Boolean{
return (_useBitmpScrolling);
}
protected function handleScroll(_arg1:ScrollEvent):void{
if (_arg1.target == _verticalScrollBar){
setVerticalScrollPosition(_arg1.position);
} else {
setHorizontalScrollPosition(_arg1.position);
};
}
public function set verticalLineScrollSize(_arg1:Number):void{
_verticalScrollBar.lineScrollSize = _arg1;
}
public function get verticalScrollBar():ScrollBar{
return (_verticalScrollBar);
}
protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
}
public function set horizontalPageScrollSize(_arg1:Number):void{
_horizontalPageScrollSize = _arg1;
invalidate(InvalidationType.SIZE);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES)){
setStyles();
drawBackground();
if (contentPadding != getStyleValue("contentPadding")){
invalidate(InvalidationType.SIZE, false);
};
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STATE)){
drawLayout();
};
updateChildren();
super.draw();
}
public function set horizontalScrollPolicy(_arg1:String):void{
_horizontalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
override protected function configUI():void{
var _local1:Graphics;
super.configUI();
contentScrollRect = new Rectangle(0, 0, 85, 85);
_verticalScrollBar = new ScrollBar();
_verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
_verticalScrollBar.visible = false;
_verticalScrollBar.lineScrollSize = defaultLineScrollSize;
addChild(_verticalScrollBar);
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
_horizontalScrollBar = new ScrollBar();
_horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL;
_horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
_horizontalScrollBar.visible = false;
_horizontalScrollBar.lineScrollSize = defaultLineScrollSize;
addChild(_horizontalScrollBar);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
disabledOverlay = new Shape();
_local1 = disabledOverlay.graphics;
_local1.beginFill(0xFFFFFF);
_local1.drawRect(0, 0, width, height);
_local1.endFill();
addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true);
}
protected function calculateContentWidth():void{
}
public function get verticalPageScrollSize():Number{
if (isNaN(availableHeight)){
drawNow();
};
return (((((_verticalPageScrollSize == 0)) && (!(isNaN(availableHeight))))) ? availableHeight : _verticalPageScrollSize);
}
protected function drawLayout():void{
calculateAvailableSize();
calculateContentWidth();
background.width = width;
background.height = height;
if (vScrollBar){
_verticalScrollBar.visible = true;
_verticalScrollBar.x = ((width - ScrollBar.WIDTH) - contentPadding);
_verticalScrollBar.y = contentPadding;
_verticalScrollBar.height = availableHeight;
} else {
_verticalScrollBar.visible = false;
};
_verticalScrollBar.setScrollProperties(availableHeight, 0, (contentHeight - availableHeight), verticalPageScrollSize);
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false);
if (hScrollBar){
_horizontalScrollBar.visible = true;
_horizontalScrollBar.x = contentPadding;
_horizontalScrollBar.y = ((height - ScrollBar.WIDTH) - contentPadding);
_horizontalScrollBar.width = availableWidth;
} else {
_horizontalScrollBar.visible = false;
};
_horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), horizontalPageScrollSize);
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false);
drawDisabledOverlay();
}
protected function drawBackground():void{
var _local1:DisplayObject;
_local1 = background;
background = getDisplayObjectInstance(getStyleValue("skin"));
background.width = width;
background.height = height;
addChildAt(background, 0);
if (((!((_local1 == null))) && (!((_local1 == background))))){
removeChild(_local1);
};
}
public function set horizontalLineScrollSize(_arg1:Number):void{
_horizontalScrollBar.lineScrollSize = _arg1;
}
public function get horizontalPageScrollSize():Number{
if (isNaN(availableWidth)){
drawNow();
};
return (((((_horizontalPageScrollSize == 0)) && (!(isNaN(availableWidth))))) ? availableWidth : _horizontalPageScrollSize);
}
public function get maxHorizontalScrollPosition():Number{
drawNow();
return (Math.max(0, (contentWidth - availableWidth)));
}
protected function setStyles():void{
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
}
protected function updateChildren():void{
_verticalScrollBar.enabled = (_horizontalScrollBar.enabled = enabled);
_verticalScrollBar.drawNow();
_horizontalScrollBar.drawNow();
}
public function set verticalScrollPolicy(_arg1:String):void{
_verticalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
public function set useBitmapScrolling(_arg1:Boolean):void{
_useBitmpScrolling = _arg1;
invalidate(InvalidationType.STATE);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, ScrollBar.getStyleDefinition()));
}
}
}//package fl.containers
Section 31
//CellRenderer (fl.controls.listClasses.CellRenderer)
package fl.controls.listClasses {
import fl.controls.*;
import flash.events.*;
public class CellRenderer extends LabelButton implements ICellRenderer {
protected var _data:Object;
protected var _listData:ListData;
private static var defaultStyles:Object = {upSkin:"CellRenderer_upSkin", downSkin:"CellRenderer_downSkin", overSkin:"CellRenderer_overSkin", disabledSkin:"CellRenderer_disabledSkin", selectedDisabledSkin:"CellRenderer_selectedDisabledSkin", selectedUpSkin:"CellRenderer_selectedUpSkin", selectedDownSkin:"CellRenderer_selectedDownSkin", selectedOverSkin:"CellRenderer_selectedOverSkin", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5};
public function CellRenderer():void{
toggle = true;
focusEnabled = false;
}
override protected function toggleSelected(_arg1:MouseEvent):void{
}
override public function get selected():Boolean{
return (super.selected);
}
public function set listData(_arg1:ListData):void{
_listData = _arg1;
label = _listData.label;
setStyle("icon", _listData.icon);
}
override public function set selected(_arg1:Boolean):void{
super.selected = _arg1;
}
public function set data(_arg1:Object):void{
_data = _arg1;
}
public function get listData():ListData{
return (_listData);
}
override public function setSize(_arg1:Number, _arg2:Number):void{
super.setSize(_arg1, _arg2);
}
override protected function drawLayout():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
_local1 = Number(getStyleValue("textPadding"));
_local2 = 0;
if (icon != null){
icon.x = _local1;
icon.y = Math.round(((height - icon.height) >> 1));
_local2 = (icon.width + _local1);
};
if (label.length > 0){
textField.visible = true;
_local3 = Math.max(0, ((width - _local2) - (_local1 * 2)));
textField.width = _local3;
textField.height = (textField.textHeight + 4);
textField.x = (_local2 + _local1);
textField.y = Math.round(((height - textField.height) >> 1));
} else {
textField.visible = false;
};
background.width = width;
background.height = height;
}
public function get data():Object{
return (_data);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls.listClasses
Section 32
//ICellRenderer (fl.controls.listClasses.ICellRenderer)
package fl.controls.listClasses {
public interface ICellRenderer {
function setSize(_arg1:Number, _arg2:Number):void;
function get listData():ListData;
function get data():Object;
function setMouseState(_arg1:String):void;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function set data(_arg1:Object):void;
function set selected(_arg1:Boolean):void;
function set listData(_arg1:ListData):void;
function get selected():Boolean;
}
}//package fl.controls.listClasses
Section 33
//ListData (fl.controls.listClasses.ListData)
package fl.controls.listClasses {
import fl.core.*;
public class ListData {
protected var _index:uint;
protected var _owner:UIComponent;
protected var _label:String;
protected var _icon:Object;// = null
protected var _row:uint;
protected var _column:uint;
public function ListData(_arg1:String, _arg2:Object, _arg3:UIComponent, _arg4:uint, _arg5:uint, _arg6:uint=0){
_icon = null;
super();
_label = _arg1;
_icon = _arg2;
_owner = _arg3;
_index = _arg4;
_row = _arg5;
_column = _arg6;
}
public function get owner():UIComponent{
return (_owner);
}
public function get label():String{
return (_label);
}
public function get row():uint{
return (_row);
}
public function get index():uint{
return (_index);
}
public function get icon():Object{
return (_icon);
}
public function get column():uint{
return (_column);
}
}
}//package fl.controls.listClasses
Section 34
//BaseButton (fl.controls.BaseButton)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import fl.events.*;
public class BaseButton extends UIComponent {
protected var _selected:Boolean;// = false
private var unlockedMouseState:String;
protected var pressTimer:Timer;
protected var mouseState:String;
protected var background:DisplayObject;
private var _mouseStateLocked:Boolean;// = false
protected var _autoRepeat:Boolean;// = false
private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35};
public function BaseButton(){
_selected = false;
_autoRepeat = false;
_mouseStateLocked = false;
super();
buttonMode = true;
mouseChildren = false;
useHandCursor = false;
setupMouseEvents();
setMouseState("up");
pressTimer = new Timer(1, 0);
pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true);
}
protected function endPress():void{
pressTimer.reset();
}
public function set mouseStateLocked(_arg1:Boolean):void{
_mouseStateLocked = _arg1;
if (_arg1 == false){
setMouseState(unlockedMouseState);
} else {
unlockedMouseState = mouseState;
};
}
public function get autoRepeat():Boolean{
return (_autoRepeat);
}
public function set autoRepeat(_arg1:Boolean):void{
_autoRepeat = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseEnabled = _arg1;
}
public function get selected():Boolean{
return (_selected);
}
protected function mouseEventHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_DOWN){
setMouseState("down");
startPress();
} else {
if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){
setMouseState("over");
endPress();
} else {
if (_arg1.type == MouseEvent.ROLL_OUT){
setMouseState("up");
endPress();
};
};
};
}
public function setMouseState(_arg1:String):void{
if (_mouseStateLocked){
unlockedMouseState = _arg1;
return;
};
if (mouseState == _arg1){
return;
};
mouseState = _arg1;
invalidate(InvalidationType.STATE);
}
protected function startPress():void{
if (_autoRepeat){
pressTimer.delay = Number(getStyleValue("repeatDelay"));
pressTimer.start();
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
protected function buttonDown(_arg1:TimerEvent):void{
if (!_autoRepeat){
endPress();
return;
};
if (pressTimer.currentCount == 1){
pressTimer.delay = Number(getStyleValue("repeatInterval"));
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
public function set selected(_arg1:Boolean):void{
if (_selected == _arg1){
return;
};
_selected = _arg1;
invalidate(InvalidationType.STATE);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function setupMouseEvents():void{
addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true);
}
protected function drawLayout():void{
background.width = width;
background.height = height;
}
protected function drawBackground():void{
var _local1:String;
var _local2:DisplayObject;
_local1 = (enabled) ? mouseState : "disabled";
if (selected){
_local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1));
};
_local1 = (_local1 + "Skin");
_local2 = background;
background = getDisplayObjectInstance(getStyleValue(_local1));
addChildAt(background, 0);
if (((!((_local2 == null))) && (!((_local2 == background))))){
removeChild(_local2);
};
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 35
//Button (fl.controls.Button)
package fl.controls {
import fl.core.*;
import flash.display.*;
import fl.managers.*;
public class Button extends LabelButton implements IFocusManagerComponent {
protected var emphasizedBorder:DisplayObject;
protected var _emphasized:Boolean;// = false
private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2};
public static var createAccessibilityImplementation:Function;
public function Button(){
_emphasized = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
var _local3:*;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("emphasizedPadding"));
if ((((_local2 < 0)) || (!(_emphasized)))){
_local2 = 0;
};
_local3 = getStyleValue("focusRectPadding");
_local3 = ((_local3)==null) ? 2 : _local3;
_local3 = (_local3 + _local2);
uiFocusRect.x = -(_local3);
uiFocusRect.y = -(_local3);
uiFocusRect.width = (width + (_local3 * 2));
uiFocusRect.height = (height + (_local3 * 2));
};
}
public function set emphasized(_arg1:Boolean):void{
_emphasized = _arg1;
invalidate(InvalidationType.STYLES);
}
override protected function draw():void{
if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){
drawEmphasized();
};
super.draw();
if (emphasizedBorder != null){
setChildIndex(emphasizedBorder, (numChildren - 1));
};
}
public function get emphasized():Boolean{
return (_emphasized);
}
override protected function initializeAccessibility():void{
if (Button.createAccessibilityImplementation != null){
Button.createAccessibilityImplementation(this);
};
}
protected function drawEmphasized():void{
var _local1:Object;
var _local2:Number;
if (emphasizedBorder != null){
removeChild(emphasizedBorder);
};
emphasizedBorder = null;
if (!_emphasized){
return;
};
_local1 = getStyleValue("emphasizedSkin");
if (_local1 != null){
emphasizedBorder = getDisplayObjectInstance(_local1);
};
if (emphasizedBorder != null){
addChildAt(emphasizedBorder, 0);
_local2 = Number(getStyleValue("emphasizedPadding"));
emphasizedBorder.x = (emphasizedBorder.y = -(_local2));
emphasizedBorder.width = (width + (_local2 * 2));
emphasizedBorder.height = (height + (_local2 * 2));
};
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles));
}
}
}//package fl.controls
Section 36
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement)
package fl.controls {
public class ButtonLabelPlacement {
public static const TOP:String = "top";
public static const LEFT:String = "left";
public static const BOTTOM:String = "bottom";
public static const RIGHT:String = "right";
}
}//package fl.controls
Section 37
//ComboBox (fl.controls.ComboBox)
package fl.controls {
import fl.controls.listClasses.*;
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.data.*;
import fl.managers.*;
import flash.geom.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class ComboBox extends UIComponent implements IFocusManagerComponent {
protected var _dropdownWidth:Number;
protected var highlightedCell:int;// = -1
protected var _prompt:String;
protected var isOpen:Boolean;// = false
protected var list:List;
protected var _rowCount:uint;// = 5
protected var currentIndex:int;
protected var isKeyDown:Boolean;// = false
protected var _labels:Array;
protected var background:BaseButton;
protected var inputField:TextInput;
protected var listOverIndex:uint;
protected var editableValue:String;
protected var _editable:Boolean;// = false
private var collectionItemImport:SimpleCollectionItem;
protected static const BACKGROUND_STYLES:Object = {overSkin:"overSkin", downSkin:"downSkin", upSkin:"upSkin", disabledSkin:"disabledSkin", repeatInterval:"repeatInterval"};
protected static const LIST_STYLES:Object = {upSkin:"comboListUpSkin", overSkin:"comboListOverSkin", downSkin:"comobListDownSkin", disabledSkin:"comboListDisabledSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval", textFormat:"textFormat", disabledAlpha:"disabledAlpha", skin:"listSkin"};
private static var defaultStyles:Object = {upSkin:"ComboBox_upSkin", downSkin:"ComboBox_downSkin", overSkin:"ComboBox_overSkin", disabledSkin:"ComboBox_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:3, buttonWidth:24, disabledAlpha:null, listSkin:null};
public static var createAccessibilityImplementation:Function;
public function ComboBox(){
_rowCount = 5;
_editable = false;
isOpen = false;
highlightedCell = -1;
isKeyDown = false;
super();
}
protected function drawList():void{
list.rowCount = Math.max(0, Math.min(_rowCount, list.dataProvider.length));
}
public function set imeMode(_arg1:String):void{
inputField.imeMode = _arg1;
}
public function get dropdown():List{
return (list);
}
public function get dropdownWidth():Number{
return (list.width);
}
public function sortItemsOn(_arg1:String, _arg2:Object=null){
return (list.sortItemsOn(_arg1, _arg2));
}
protected function onEnter(_arg1:ComponentEvent):void{
_arg1.stopPropagation();
}
public function removeItemAt(_arg1:uint):void{
list.removeItemAt(_arg1);
invalidate(InvalidationType.DATA);
}
public function open():void{
currentIndex = selectedIndex;
if (((isOpen) || ((length == 0)))){
return;
};
dispatchEvent(new Event(Event.OPEN));
isOpen = true;
addEventListener(Event.ENTER_FRAME, addCloseListener, false, 0, true);
positionList();
list.scrollToSelected();
stage.addChild(list);
}
public function get selectedItem():Object{
return (list.selectedItem);
}
public function set text(_arg1:String):void{
if (!editable){
return;
};
inputField.text = _arg1;
}
public function get labelField():String{
return (list.labelField);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
var _local2:int;
var _local3:uint;
var _local4:Number;
var _local5:int;
isKeyDown = true;
if (_arg1.ctrlKey){
switch (_arg1.keyCode){
case Keyboard.UP:
if (highlightedCell > -1){
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
close();
break;
case Keyboard.DOWN:
open();
break;
};
return;
};
_arg1.stopPropagation();
_local2 = Math.max(((calculateAvailableHeight() / list.rowHeight) << 0), 1);
_local3 = selectedIndex;
_local4 = ((highlightedCell)==-1) ? selectedIndex : highlightedCell;
_local5 = -1;
switch (_arg1.keyCode){
case Keyboard.SPACE:
if (isOpen){
close();
} else {
open();
};
return;
case Keyboard.ESCAPE:
if (isOpen){
if (highlightedCell > -1){
selectedIndex = selectedIndex;
};
close();
};
return;
case Keyboard.UP:
_local5 = Math.max(0, (_local4 - 1));
break;
case Keyboard.DOWN:
_local5 = Math.min((length - 1), (_local4 + 1));
break;
case Keyboard.PAGE_UP:
_local5 = Math.max((_local4 - _local2), 0);
break;
case Keyboard.PAGE_DOWN:
_local5 = Math.min((_local4 + _local2), (length - 1));
break;
case Keyboard.HOME:
_local5 = 0;
break;
case Keyboard.END:
_local5 = (length - 1);
break;
case Keyboard.ENTER:
if (((_editable) && ((highlightedCell == -1)))){
editableValue = inputField.text;
selectedIndex = -1;
} else {
if (((isOpen) && ((highlightedCell > -1)))){
editableValue = null;
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
};
dispatchEvent(new ComponentEvent(ComponentEvent.ENTER));
close();
return;
default:
if (editable){
break;
};
_local5 = list.getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), _local4);
break;
};
if (_local5 > -1){
if (isOpen){
highlightCell(_local5);
inputField.text = list.itemToLabel(getItemAt(_local5));
} else {
highlightCell();
selectedIndex = _local5;
dispatchEvent(new Event(Event.CHANGE));
};
};
}
public function set dropdownWidth(_arg1:Number):void{
_dropdownWidth = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get editable():Boolean{
return (_editable);
}
override protected function focusInHandler(_arg1:FocusEvent):void{
super.focusInHandler(_arg1);
if (editable){
stage.focus = inputField.textField;
};
}
protected function onStageClick(_arg1:MouseEvent):void{
if (!isOpen){
return;
};
if (((!(contains((_arg1.target as DisplayObject)))) && (!(list.contains((_arg1.target as DisplayObject)))))){
if (highlightedCell != -1){
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
close();
};
}
protected function handleDataChange(_arg1:DataChangeEvent):void{
invalidate(InvalidationType.DATA);
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
isKeyDown = false;
}
protected function onListItemUp(_arg1:MouseEvent):void{
var _local2:*;
stage.removeEventListener(MouseEvent.MOUSE_UP, onListItemUp);
if (((!((_arg1.target is ICellRenderer))) || (!(list.contains((_arg1.target as DisplayObject)))))){
return;
};
editableValue = null;
_local2 = selectedIndex;
selectedIndex = _arg1.target.listData.index;
if (_local2 != selectedIndex){
dispatchEvent(new Event(Event.CHANGE));
};
close();
}
public function removeAll():void{
list.removeAll();
inputField.text = "";
invalidate(InvalidationType.DATA);
}
public function set selectedItem(_arg1:Object):void{
list.selectedItem = _arg1;
invalidate(InvalidationType.SELECTED);
}
protected function highlightCell(_arg1:int=-1):void{
var _local2:ICellRenderer;
if (highlightedCell > -1){
_local2 = list.itemToCellRenderer(getItemAt(highlightedCell));
if (_local2 != null){
_local2.setMouseState("up");
};
};
if (_arg1 == -1){
return;
};
list.scrollToIndex(_arg1);
list.drawNow();
_local2 = list.itemToCellRenderer(getItemAt(_arg1));
if (_local2 != null){
_local2.setMouseState("over");
highlightedCell = _arg1;
};
}
public function itemToLabel(_arg1:Object):String{
if (_arg1 == null){
return ("");
};
return (list.itemToLabel(_arg1));
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
list.addItemAt(_arg1, _arg2);
invalidate(InvalidationType.DATA);
}
public function replaceItemAt(_arg1:Object, _arg2:uint):Object{
return (list.replaceItemAt(_arg1, _arg2));
}
protected function showPrompt():void{
inputField.text = _prompt;
}
public function set rowCount(_arg1:uint):void{
_rowCount = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get restrict():String{
return (inputField.restrict);
}
protected function setEmbedFonts():void{
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
inputField.textField.embedFonts = _local1;
};
}
public function sortItems(... _args){
return (list.sortItems.apply(list, _args));
}
public function set labelField(_arg1:String):void{
list.labelField = _arg1;
invalidate(InvalidationType.DATA);
}
public function set editable(_arg1:Boolean):void{
_editable = _arg1;
drawTextField();
}
public function set prompt(_arg1:String):void{
if (_arg1 == ""){
_prompt = null;
} else {
_prompt = _arg1;
};
invalidate(InvalidationType.STATE);
}
public function get length():int{
return (list.length);
}
protected function drawTextField():void{
inputField.setStyle("upSkin", "");
inputField.setStyle("disabledSkin", "");
inputField.enabled = enabled;
inputField.editable = _editable;
inputField.textField.selectable = ((enabled) && (_editable));
inputField.mouseEnabled = (inputField.mouseChildren = ((enabled) && (_editable)));
inputField.focusEnabled = false;
if (_editable){
inputField.addEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus, false, 0, true);
inputField.addEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut, false, 0, true);
} else {
inputField.removeEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus);
inputField.removeEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut);
};
}
protected function onInputFieldFocusOut(_arg1:FocusEvent):void{
inputField.removeEventListener(ComponentEvent.ENTER, onEnter);
selectedIndex = selectedIndex;
}
protected function passEvent(_arg1:Event):void{
dispatchEvent(_arg1);
}
public function get imeMode():String{
return (inputField.imeMode);
}
public function get labelFunction():Function{
return (list.labelFunction);
}
protected function calculateAvailableHeight():Number{
var _local1:Number;
_local1 = Number(getStyleValue("contentPadding"));
return ((list.height - (_local1 * 2)));
}
public function get selectedIndex():int{
return (list.selectedIndex);
}
override protected function focusOutHandler(_arg1:FocusEvent):void{
isKeyDown = false;
if (isOpen){
if (((!(_arg1.relatedObject)) || (!(list.contains(_arg1.relatedObject))))){
if (((!((highlightedCell == -1))) && (!((highlightedCell == selectedIndex))))){
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
close();
};
};
super.focusOutHandler(_arg1);
}
public function get selectedLabel():String{
if (editableValue != null){
return (editableValue);
};
if (selectedIndex == -1){
return (null);
};
return (itemToLabel(selectedItem));
}
public function get text():String{
return (inputField.text);
}
protected function onListChange(_arg1:Event):void{
editableValue = null;
dispatchEvent(_arg1);
invalidate(InvalidationType.SELECTED);
if (isKeyDown){
return;
};
close();
}
protected function onToggleListVisibility(_arg1:MouseEvent):void{
_arg1.stopPropagation();
dispatchEvent(_arg1);
if (isOpen){
close();
} else {
open();
stage.addEventListener(MouseEvent.MOUSE_UP, onListItemUp, false, 0, true);
};
}
override protected function draw():void{
var _local1:*;
_local1 = selectedIndex;
if ((((_local1 == -1)) && (((((!((prompt == null))) || (editable))) || ((length == 0)))))){
_local1 = Math.max(-1, Math.min(_local1, (length - 1)));
} else {
editableValue = null;
_local1 = Math.max(0, Math.min(_local1, (length - 1)));
};
if (list.selectedIndex != _local1){
list.selectedIndex = _local1;
invalidate(InvalidationType.SELECTED, false);
};
if (isInvalid(InvalidationType.STYLES)){
setStyles();
setEmbedFonts();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.STATE)){
drawTextFormat();
drawLayout();
invalidate(InvalidationType.DATA);
};
if (isInvalid(InvalidationType.DATA)){
drawList();
invalidate(InvalidationType.SELECTED, true);
};
if (isInvalid(InvalidationType.SELECTED)){
if ((((_local1 == -1)) && (!((editableValue == null))))){
inputField.text = editableValue;
} else {
if (_local1 > -1){
if (length > 0){
inputField.horizontalScrollPosition = 0;
inputField.text = itemToLabel(list.selectedItem);
};
} else {
if ((((_local1 == -1)) && (!((_prompt == null))))){
showPrompt();
} else {
inputField.text = "";
};
};
};
if (((((editable) && ((selectedIndex > -1)))) && ((stage.focus == inputField.textField)))){
inputField.setSelection(0, inputField.length);
};
};
drawTextField();
super.draw();
}
public function addItem(_arg1:Object):void{
list.addItem(_arg1);
invalidate(InvalidationType.DATA);
}
public function get rowCount():uint{
return (_rowCount);
}
override protected function configUI():void{
super.configUI();
background = new BaseButton();
background.focusEnabled = false;
copyStylesToChild(background, BACKGROUND_STYLES);
background.addEventListener(MouseEvent.MOUSE_DOWN, onToggleListVisibility, false, 0, true);
addChild(background);
inputField = new TextInput();
inputField.focusTarget = (this as IFocusManagerComponent);
inputField.focusEnabled = false;
inputField.addEventListener(Event.CHANGE, onTextInput, false, 0, true);
addChild(inputField);
list = new List();
list.focusEnabled = false;
copyStylesToChild(list, LIST_STYLES);
list.addEventListener(Event.CHANGE, onListChange, false, 0, true);
list.addEventListener(ListEvent.ITEM_CLICK, onListChange, false, 0, true);
list.addEventListener(ListEvent.ITEM_ROLL_OUT, passEvent, false, 0, true);
list.addEventListener(ListEvent.ITEM_ROLL_OVER, passEvent, false, 0, true);
list.verticalScrollBar.addEventListener(Event.SCROLL, passEvent, false, 0, true);
}
protected function positionList():void{
var _local1:Point;
_local1 = localToGlobal(new Point(0, 0));
list.x = _local1.x;
if (((_local1.y + height) + list.height) > stage.stageHeight){
list.y = (_local1.y - list.height);
} else {
list.y = (_local1.y + height);
};
}
public function get value():String{
var _local1:Object;
if (editableValue != null){
return (editableValue);
};
_local1 = selectedItem;
if (((!(_editable)) && (!((_local1.data == null))))){
return (_local1.data);
};
return (itemToLabel(_local1));
}
public function get prompt():String{
return (_prompt);
}
public function set dataProvider(_arg1:DataProvider):void{
_arg1.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true);
list.dataProvider = _arg1;
invalidate(InvalidationType.DATA);
}
public function set restrict(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
_arg1 = null;
};
if (!_editable){
return;
};
inputField.restrict = _arg1;
}
protected function onTextInput(_arg1:Event):void{
_arg1.stopPropagation();
if (!_editable){
return;
};
editableValue = inputField.text;
selectedIndex = -1;
dispatchEvent(new Event(Event.CHANGE));
}
protected function onInputFieldFocus(_arg1:FocusEvent):void{
inputField.addEventListener(ComponentEvent.ENTER, onEnter, false, 0, true);
close();
}
public function getItemAt(_arg1:uint):Object{
return (list.getItemAt(_arg1));
}
override protected function initializeAccessibility():void{
if (ComboBox.createAccessibilityImplementation != null){
ComboBox.createAccessibilityImplementation(this);
};
}
protected function drawLayout():void{
var _local1:Number;
var _local2:Number;
_local1 = (getStyleValue("buttonWidth") as Number);
_local2 = (getStyleValue("textPadding") as Number);
background.setSize(width, height);
inputField.x = (inputField.y = _local2);
inputField.setSize(((width - _local1) - _local2), (height - _local2));
list.width = (isNaN(_dropdownWidth)) ? width : _dropdownWidth;
background.enabled = enabled;
background.drawNow();
}
public function removeItem(_arg1:Object):Object{
return (list.removeItem(_arg1));
}
private function addCloseListener(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, addCloseListener);
if (!isOpen){
return;
};
stage.addEventListener(MouseEvent.MOUSE_DOWN, onStageClick, false, 0, true);
}
public function get dataProvider():DataProvider{
return (list.dataProvider);
}
public function get textField():TextInput{
return (inputField);
}
protected function setStyles():void{
copyStylesToChild(background, BACKGROUND_STYLES);
copyStylesToChild(list, LIST_STYLES);
}
public function set labelFunction(_arg1:Function):void{
list.labelFunction = _arg1;
invalidate(InvalidationType.DATA);
}
protected function drawTextFormat():void{
var _local1:TextFormat;
_local1 = (getStyleValue((_enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local1 == null){
_local1 = new TextFormat();
};
inputField.textField.defaultTextFormat = _local1;
inputField.textField.setTextFormat(_local1);
setEmbedFonts();
}
public function set selectedIndex(_arg1:int):void{
list.selectedIndex = _arg1;
highlightCell();
invalidate(InvalidationType.SELECTED);
}
public function close():void{
highlightCell();
highlightedCell = -1;
if (!isOpen){
return;
};
dispatchEvent(new Event(Event.CLOSE));
stage.removeEventListener(MouseEvent.MOUSE_DOWN, onStageClick);
isOpen = false;
stage.removeChild(list);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, List.getStyleDefinition()));
}
}
}//package fl.controls
Section 38
//LabelButton (fl.controls.LabelButton)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class LabelButton extends BaseButton implements IFocusManagerComponent {
protected var _labelPlacement:String;// = "right"
protected var _toggle:Boolean;// = false
protected var icon:DisplayObject;
protected var oldMouseState:String;
protected var mode:String;// = "center"
public var textField:TextField;
protected var _label:String;// = "Label"
private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function LabelButton(){
_labelPlacement = ButtonLabelPlacement.RIGHT;
_toggle = false;
_label = "Label";
mode = "center";
super();
}
protected function toggleSelected(_arg1:MouseEvent):void{
selected = !(selected);
dispatchEvent(new Event(Event.CHANGE, true));
}
public function get labelPlacement():String{
return (_labelPlacement);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (oldMouseState == null){
oldMouseState = mouseState;
};
setMouseState("down");
startPress();
};
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
setMouseState(oldMouseState);
oldMouseState = null;
endPress();
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
override public function get selected():Boolean{
return ((_toggle) ? _selected : false);
}
public function set labelPlacement(_arg1:String):void{
_labelPlacement = _arg1;
invalidate(InvalidationType.SIZE);
}
public function set toggle(_arg1:Boolean):void{
if (((!(_arg1)) && (super.selected))){
selected = false;
};
_toggle = _arg1;
if (_toggle){
addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true);
} else {
removeEventListener(MouseEvent.CLICK, toggleSelected);
};
invalidate(InvalidationType.STATE);
}
public function get label():String{
return (_label);
}
override public function set selected(_arg1:Boolean):void{
_selected = _arg1;
if (_toggle){
invalidate(InvalidationType.STATE);
};
}
override protected function draw():void{
if (textField.text != _label){
label = _label;
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
drawIcon();
drawTextFormat();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
public function get toggle():Boolean{
return (_toggle);
}
override protected function configUI():void{
super.configUI();
textField = new TextField();
textField.type = TextFieldType.DYNAMIC;
textField.selectable = false;
addChild(textField);
}
override protected function drawLayout():void{
var _local1:Number;
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local1 = Number(getStyleValue("textPadding"));
_local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement;
textField.height = (textField.textHeight + 4);
_local3 = (textField.textWidth + 4);
_local4 = (textField.textHeight + 4);
_local5 = ((icon)==null) ? 0 : (icon.width + _local1);
_local6 = ((icon)==null) ? 0 : (icon.height + _local1);
textField.visible = (label.length > 0);
if (icon != null){
icon.x = Math.round(((width - icon.width) / 2));
icon.y = Math.round(((height - icon.height) / 2));
};
if (textField.visible == false){
textField.width = 0;
textField.height = 0;
} else {
if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){
_local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1))));
if ((height - 2) > _local4){
_local8 = _local4;
} else {
_local8 = (height - 2);
};
_local3 = _local7;
textField.width = _local3;
_local4 = _local8;
textField.height = _local4;
textField.x = Math.round(((width - _local3) / 2));
textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0));
if (icon != null){
icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1));
};
} else {
_local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1))));
_local3 = _local7;
textField.width = _local3;
textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0));
textField.y = Math.round(((height - textField.height) / 2));
if (icon != null){
icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1));
};
};
};
super.drawLayout();
}
override protected function initializeAccessibility():void{
if (LabelButton.createAccessibilityImplementation != null){
LabelButton.createAccessibilityImplementation(this);
};
}
protected function drawIcon():void{
var _local1:DisplayObject;
var _local2:String;
var _local3:Object;
_local1 = icon;
_local2 = (enabled) ? mouseState : "disabled";
if (selected){
_local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1));
};
_local2 = (_local2 + "Icon");
_local3 = getStyleValue(_local2);
if (_local3 == null){
_local3 = getStyleValue("icon");
};
if (_local3 != null){
icon = getDisplayObjectInstance(_local3);
};
if (icon != null){
addChildAt(icon, 1);
};
if (((!((_local1 == null))) && (!((_local1 == icon))))){
removeChild(_local1);
};
}
public function set label(_arg1:String):void{
_label = _arg1;
if (textField.text != _label){
textField.text = _label;
dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE));
};
invalidate(InvalidationType.SIZE);
invalidate(InvalidationType.STYLES);
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition()));
}
}
}//package fl.controls
Section 39
//List (fl.controls.List)
package fl.controls {
import fl.controls.listClasses.*;
import fl.core.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import fl.managers.*;
import flash.geom.*;
import flash.ui.*;
public class List extends SelectableList implements IFocusManagerComponent {
protected var _labelField:String;// = "label"
protected var _rowHeight:Number;// = 20
protected var _cellRenderer:Object;
protected var _iconField:String;// = "icon"
protected var _labelFunction:Function;
protected var _iconFunction:Function;
private static var defaultStyles:Object = {focusRectSkin:null, focusRectPadding:null};
public static var createAccessibilityImplementation:Function;
public function List(){
_rowHeight = 20;
_labelField = "label";
_iconField = "icon";
super();
}
public function get iconField():String{
return (_iconField);
}
protected function doKeySelection(_arg1:int, _arg2:Boolean, _arg3:Boolean):void{
var _local4:Boolean;
var _local5:int;
var _local6:Array;
var _local7:int;
var _local8:int;
_local4 = false;
if (_arg2){
_local6 = [];
_local7 = lastCaretIndex;
_local8 = _arg1;
if (_local7 == -1){
_local7 = ((caretIndex)!=-1) ? caretIndex : _arg1;
};
if (_local7 > _local8){
_local8 = _local7;
_local7 = _arg1;
};
_local5 = _local7;
while (_local5 <= _local8) {
_local6.push(_local5);
_local5++;
};
selectedIndices = _local6;
caretIndex = _arg1;
_local4 = true;
} else {
selectedIndex = _arg1;
caretIndex = (lastCaretIndex = _arg1);
_local4 = true;
};
if (_local4){
dispatchEvent(new Event(Event.CHANGE));
};
invalidate(InvalidationType.DATA);
}
override protected function drawList():void{
var _local1:Rectangle;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:Object;
var _local6:ICellRenderer;
var _local7:Dictionary;
var _local8:Dictionary;
var _local9:Boolean;
var _local10:String;
var _local11:Object;
var _local12:Sprite;
var _local13:String;
listHolder.x = (listHolder.y = contentPadding);
_local1 = listHolder.scrollRect;
_local1.x = _horizontalScrollPosition;
_local1.y = (Math.floor(_verticalScrollPosition) % rowHeight);
listHolder.scrollRect = _local1;
listHolder.cacheAsBitmap = useBitmapScrolling;
_local2 = Math.floor((_verticalScrollPosition / rowHeight));
_local3 = Math.min(length, ((_local2 + rowCount) + 1));
_local7 = (renderedItems = new Dictionary(true));
_local4 = _local2;
while (_local4 < _local3) {
_local7[_dataProvider.getItemAt(_local4)] = true;
_local4++;
};
_local8 = new Dictionary(true);
while (activeCellRenderers.length > 0) {
_local6 = (activeCellRenderers.pop() as ICellRenderer);
_local5 = _local6.data;
if ((((_local7[_local5] == null)) || ((invalidItems[_local5] == true)))){
availableCellRenderers.push(_local6);
} else {
_local8[_local5] = _local6;
invalidItems[_local5] = true;
};
list.removeChild((_local6 as DisplayObject));
};
invalidItems = new Dictionary(true);
_local4 = _local2;
while (_local4 < _local3) {
_local9 = false;
_local5 = _dataProvider.getItemAt(_local4);
if (_local8[_local5] != null){
_local9 = true;
_local6 = _local8[_local5];
delete _local8[_local5];
} else {
if (availableCellRenderers.length > 0){
_local6 = (availableCellRenderers.pop() as ICellRenderer);
} else {
_local6 = (getDisplayObjectInstance(getStyleValue("cellRenderer")) as ICellRenderer);
_local12 = (_local6 as Sprite);
if (_local12 != null){
_local12.addEventListener(MouseEvent.CLICK, handleCellRendererClick, false, 0, true);
_local12.addEventListener(MouseEvent.ROLL_OVER, handleCellRendererMouseEvent, false, 0, true);
_local12.addEventListener(MouseEvent.ROLL_OUT, handleCellRendererMouseEvent, false, 0, true);
_local12.addEventListener(Event.CHANGE, handleCellRendererChange, false, 0, true);
_local12.doubleClickEnabled = true;
_local12.addEventListener(MouseEvent.DOUBLE_CLICK, handleCellRendererDoubleClick, false, 0, true);
if (_local12["setStyle"] != null){
for (_local13 in rendererStyles) {
var _local16 = _local12;
_local16["setStyle"](_local13, rendererStyles[_local13]);
};
};
};
};
};
list.addChild((_local6 as Sprite));
activeCellRenderers.push(_local6);
_local6.y = (rowHeight * (_local4 - _local2));
_local6.setSize((availableWidth + _maxHorizontalScrollPosition), rowHeight);
_local10 = itemToLabel(_local5);
_local11 = null;
if (_iconFunction != null){
_local11 = _iconFunction(_local5);
} else {
if (_iconField != null){
_local11 = _local5[_iconField];
};
};
if (!_local9){
_local6.data = _local5;
};
_local6.listData = new ListData(_local10, _local11, this, _local4, _local4, 0);
_local6.selected = !((_selectedIndices.indexOf(_local4) == -1));
if ((_local6 is UIComponent)){
(_local6 as UIComponent).drawNow();
};
_local4++;
};
}
public function get iconFunction():Function{
return (_iconFunction);
}
public function set iconField(_arg1:String):void{
if (_arg1 == _iconField){
return;
};
_iconField = _arg1;
invalidate(InvalidationType.DATA);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
var _local2:int;
if (!selectable){
return;
};
switch (_arg1.keyCode){
case Keyboard.UP:
case Keyboard.DOWN:
case Keyboard.END:
case Keyboard.HOME:
case Keyboard.PAGE_UP:
case Keyboard.PAGE_DOWN:
moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
break;
case Keyboard.LEFT:
case Keyboard.RIGHT:
moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
break;
case Keyboard.SPACE:
if (caretIndex == -1){
caretIndex = 0;
};
doKeySelection(caretIndex, _arg1.shiftKey, _arg1.ctrlKey);
scrollToSelected();
break;
default:
_local2 = getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), selectedIndex);
if (_local2 > -1){
selectedIndex = _local2;
scrollToSelected();
};
break;
};
_arg1.stopPropagation();
}
override public function itemToLabel(_arg1:Object):String{
if (_labelFunction != null){
return (String(_labelFunction(_arg1)));
};
return (((_arg1[_labelField])!=null) ? String(_arg1[_labelField]) : "");
}
public function get labelField():String{
return (_labelField);
}
override protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
var _local4:int;
var _local5:int;
var _local6:int;
_local4 = Math.max(Math.floor((calculateAvailableHeight() / rowHeight)), 1);
_local5 = -1;
_local6 = 0;
switch (_arg1){
case Keyboard.UP:
if (caretIndex > 0){
_local5 = (caretIndex - 1);
};
break;
case Keyboard.DOWN:
if (caretIndex < (length - 1)){
_local5 = (caretIndex + 1);
};
break;
case Keyboard.PAGE_UP:
if (caretIndex > 0){
_local5 = Math.max((caretIndex - _local4), 0);
};
break;
case Keyboard.PAGE_DOWN:
if (caretIndex < (length - 1)){
_local5 = Math.min((caretIndex + _local4), (length - 1));
};
break;
case Keyboard.HOME:
if (caretIndex > 0){
_local5 = 0;
};
break;
case Keyboard.END:
if (caretIndex < (length - 1)){
_local5 = (length - 1);
};
break;
};
if (_local5 >= 0){
doKeySelection(_local5, _arg2, _arg3);
scrollToSelected();
};
}
public function set labelField(_arg1:String):void{
if (_arg1 == _labelField){
return;
};
_labelField = _arg1;
invalidate(InvalidationType.DATA);
}
public function set rowCount(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
_local2 = Number(getStyleValue("contentPadding"));
_local3 = ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0;
height = (((rowHeight * _arg1) + (2 * _local2)) + _local3);
}
override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
list.x = -(_arg1);
super.setHorizontalScrollPosition(_arg1, true);
}
public function set iconFunction(_arg1:Function):void{
if (_iconFunction == _arg1){
return;
};
_iconFunction = _arg1;
invalidate(InvalidationType.DATA);
}
public function get labelFunction():Function{
return (_labelFunction);
}
override protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
}
override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
invalidate(InvalidationType.SCROLL);
super.setVerticalScrollPosition(_arg1, true);
}
protected function calculateAvailableHeight():Number{
var _local1:Number;
_local1 = Number(getStyleValue("contentPadding"));
return (((height - (_local1 * 2)) - ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0));
}
override protected function draw():void{
var _local1:Boolean;
_local1 = !((contentHeight == (rowHeight * length)));
contentHeight = (rowHeight * length);
if (isInvalid(InvalidationType.STYLES)){
setStyles();
drawBackground();
if (contentPadding != getStyleValue("contentPadding")){
invalidate(InvalidationType.SIZE, false);
};
if (_cellRenderer != getStyleValue("cellRenderer")){
_invalidateList();
_cellRenderer = getStyleValue("cellRenderer");
};
};
if (((isInvalid(InvalidationType.SIZE, InvalidationType.STATE)) || (_local1))){
drawLayout();
};
if (isInvalid(InvalidationType.RENDERER_STYLES)){
updateRendererStyles();
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.SCROLL, InvalidationType.SELECTED)){
drawList();
};
updateChildren();
validate();
}
override protected function configUI():void{
useFixedHorizontalScrolling = true;
_horizontalScrollPolicy = ScrollPolicy.AUTO;
_verticalScrollPolicy = ScrollPolicy.AUTO;
super.configUI();
}
override public function get rowCount():uint{
return (Math.ceil((calculateAvailableHeight() / rowHeight)));
}
override protected function initializeAccessibility():void{
if (List.createAccessibilityImplementation != null){
List.createAccessibilityImplementation(this);
};
}
override public function scrollToIndex(_arg1:int):void{
var _local2:uint;
var _local3:uint;
drawNow();
_local2 = (Math.floor(((_verticalScrollPosition + availableHeight) / rowHeight)) - 1);
_local3 = Math.ceil((_verticalScrollPosition / rowHeight));
if (_arg1 < _local3){
verticalScrollPosition = (_arg1 * rowHeight);
} else {
if (_arg1 > _local2){
verticalScrollPosition = (((_arg1 + 1) * rowHeight) - availableHeight);
};
};
}
public function get rowHeight():Number{
return (_rowHeight);
}
public function set labelFunction(_arg1:Function):void{
if (_labelFunction == _arg1){
return;
};
_labelFunction = _arg1;
invalidate(InvalidationType.DATA);
}
public function set rowHeight(_arg1:Number):void{
_rowHeight = _arg1;
invalidate(InvalidationType.SIZE);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, SelectableList.getStyleDefinition()));
}
}
}//package fl.controls
Section 40
//ScrollBar (fl.controls.ScrollBar)
package fl.controls {
import fl.core.*;
import flash.events.*;
import fl.events.*;
public class ScrollBar extends UIComponent {
private var _direction:String;// = "vertical"
protected var inDrag:Boolean;// = false
protected var upArrow:BaseButton;
private var _pageScrollSize:Number;// = 0
protected var downArrow:BaseButton;
private var _pageSize:Number;// = 10
private var thumbScrollOffset:Number;
private var _maxScrollPosition:Number;// = 0
private var _scrollPosition:Number;// = 0
protected var track:BaseButton;
private var _minScrollPosition:Number;// = 0
private var _lineScrollSize:Number;// = 1
protected var thumb:LabelButton;
protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0};
public static const WIDTH:Number = 15;
protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35};
public function ScrollBar(){
_pageSize = 10;
_pageScrollSize = 0;
_lineScrollSize = 1;
_minScrollPosition = 0;
_maxScrollPosition = 0;
_scrollPosition = 0;
_direction = ScrollBarDirection.VERTICAL;
inDrag = false;
super();
setStyles();
focusEnabled = false;
}
public function get minScrollPosition():Number{
return (_minScrollPosition);
}
public function set minScrollPosition(_arg1:Number):void{
setScrollProperties(_pageSize, _arg1, _maxScrollPosition);
}
public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{
var _local3:Number;
_local3 = scrollPosition;
_scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1));
if (_local3 == _scrollPosition){
return;
};
if (_arg2){
dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition));
};
updateThumb();
}
public function set scrollPosition(_arg1:Number):void{
setScrollPosition(_arg1, true);
}
public function get pageScrollSize():Number{
return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize);
}
public function set pageSize(_arg1:Number):void{
if (_arg1 > 0){
_pageSize = _arg1;
};
}
public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{
this.pageSize = _arg1;
_minScrollPosition = _arg2;
_maxScrollPosition = _arg3;
if (_arg4 >= 0){
_pageScrollSize = _arg4;
};
enabled = (_maxScrollPosition > _minScrollPosition);
setScrollPosition(_scrollPosition, false);
updateThumb();
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition))))));
updateThumb();
}
protected function updateThumb():void{
var _local1:Number;
_local1 = ((_maxScrollPosition - _minScrollPosition) + _pageSize);
if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){
thumb.height = 12;
thumb.visible = false;
} else {
thumb.height = Math.max(13, ((_pageSize / _local1) * track.height));
thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition))));
thumb.visible = enabled;
};
}
protected function thumbPressHandler(_arg1:MouseEvent):void{
inDrag = true;
thumbScrollOffset = (mouseY - thumb.y);
thumb.mouseStateLocked = true;
mouseChildren = false;
stage.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true);
}
protected function thumbReleaseHandler(_arg1:MouseEvent):void{
inDrag = false;
mouseChildren = true;
thumb.mouseStateLocked = false;
stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag);
stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler);
}
public function set pageScrollSize(_arg1:Number):void{
if (_arg1 >= 0){
_pageScrollSize = _arg1;
};
}
protected function handleThumbDrag(_arg1:MouseEvent):void{
var _local2:Number;
_local2 = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset)));
setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition));
}
public function set direction(_arg1:String):void{
var _local2:Boolean;
if (_direction == _arg1){
return;
};
_direction = _arg1;
if (isLivePreview){
return;
};
setScaleY(1);
_local2 = (_direction == ScrollBarDirection.HORIZONTAL);
if (((_local2) && (componentInspectorSetting))){
if (rotation == 90){
return;
};
setScaleX(-1);
rotation = -90;
};
if (!componentInspectorSetting){
if (((_local2) && ((rotation == 0)))){
rotation = -90;
setScaleX(-1);
} else {
if (((!(_local2)) && ((rotation == -90)))){
rotation = 0;
setScaleX(1);
};
};
};
invalidate(InvalidationType.SIZE);
}
public function set lineScrollSize(_arg1:Number):void{
if (_arg1 > 0){
_lineScrollSize = _arg1;
};
}
override public function get height():Number{
return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height);
}
protected function scrollPressHandler(_arg1:ComponentEvent):void{
var _local2:Number;
var _local3:Number;
_arg1.stopImmediatePropagation();
if (_arg1.currentTarget == upArrow){
setScrollPosition((_scrollPosition - _lineScrollSize));
} else {
if (_arg1.currentTarget == downArrow){
setScrollPosition((_scrollPosition + _lineScrollSize));
} else {
_local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition);
_local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize;
if (_scrollPosition < _local2){
setScrollPosition(Math.min(_local2, (_scrollPosition + _local3)));
} else {
if (_scrollPosition > _local2){
setScrollPosition(Math.max(_local2, (_scrollPosition - _local3)));
};
};
};
};
}
public function get pageSize():Number{
return (_pageSize);
}
public function set maxScrollPosition(_arg1:Number):void{
setScrollProperties(_pageSize, _minScrollPosition, _arg1);
}
public function get scrollPosition():Number{
return (_scrollPosition);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
var _local1:Number;
if (isInvalid(InvalidationType.SIZE)){
_local1 = super.height;
downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height)));
track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height))));
updateThumb();
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
setStyles();
};
downArrow.drawNow();
upArrow.drawNow();
track.drawNow();
thumb.drawNow();
validate();
}
override protected function configUI():void{
super.configUI();
track = new BaseButton();
track.move(0, 14);
track.useHandCursor = false;
track.autoRepeat = true;
track.focusEnabled = false;
addChild(track);
thumb = new LabelButton();
thumb.label = "";
thumb.setSize(WIDTH, 15);
thumb.move(0, 15);
thumb.focusEnabled = false;
addChild(thumb);
downArrow = new BaseButton();
downArrow.setSize(WIDTH, 14);
downArrow.autoRepeat = true;
downArrow.focusEnabled = false;
addChild(downArrow);
upArrow = new BaseButton();
upArrow.setSize(WIDTH, 14);
upArrow.move(0, 0);
upArrow.autoRepeat = true;
upArrow.focusEnabled = false;
addChild(upArrow);
upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true);
enabled = false;
}
public function get direction():String{
return (_direction);
}
public function get lineScrollSize():Number{
return (_lineScrollSize);
}
override public function setSize(_arg1:Number, _arg2:Number):void{
if (_direction == ScrollBarDirection.HORIZONTAL){
super.setSize(_arg2, _arg1);
} else {
super.setSize(_arg1, _arg2);
};
}
public function get maxScrollPosition():Number{
return (_maxScrollPosition);
}
override public function get width():Number{
return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width);
}
protected function setStyles():void{
copyStylesToChild(downArrow, DOWN_ARROW_STYLES);
copyStylesToChild(thumb, THUMB_STYLES);
copyStylesToChild(track, TRACK_STYLES);
copyStylesToChild(upArrow, UP_ARROW_STYLES);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 41
//ScrollBarDirection (fl.controls.ScrollBarDirection)
package fl.controls {
public class ScrollBarDirection {
public static const HORIZONTAL:String = "horizontal";
public static const VERTICAL:String = "vertical";
}
}//package fl.controls
Section 42
//ScrollPolicy (fl.controls.ScrollPolicy)
package fl.controls {
public class ScrollPolicy {
public static const OFF:String = "off";
public static const ON:String = "on";
public static const AUTO:String = "auto";
}
}//package fl.controls
Section 43
//SelectableList (fl.controls.SelectableList)
package fl.controls {
import fl.controls.listClasses.*;
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.data.*;
import flash.utils.*;
import fl.managers.*;
import fl.events.*;
import fl.containers.*;
import flash.ui.*;
public class SelectableList extends BaseScrollPane implements IFocusManagerComponent {
protected var invalidItems:Dictionary;
protected var renderedItems:Dictionary;
protected var listHolder:Sprite;
protected var _allowMultipleSelection:Boolean;// = false
protected var lastCaretIndex:int;// = -1
protected var _selectedIndices:Array;
protected var availableCellRenderers:Array;
protected var list:Sprite;
protected var caretIndex:int;// = -1
protected var updatedRendererStyles:Object;
protected var preChangeItems:Array;
protected var activeCellRenderers:Array;
protected var rendererStyles:Object;
protected var _verticalScrollPosition:Number;
protected var _dataProvider:DataProvider;
protected var _horizontalScrollPosition:Number;
private var collectionItemImport:SimpleCollectionItem;
protected var _selectable:Boolean;// = true
private static var defaultStyles:Object = {skin:"List_skin", cellRenderer:CellRenderer, contentPadding:null, disabledAlpha:null};
public static var createAccessibilityImplementation:Function;
public function SelectableList(){
_allowMultipleSelection = false;
_selectable = true;
caretIndex = -1;
lastCaretIndex = -1;
super();
activeCellRenderers = [];
availableCellRenderers = [];
invalidItems = new Dictionary(true);
renderedItems = new Dictionary(true);
_selectedIndices = [];
if (dataProvider == null){
dataProvider = new DataProvider();
};
verticalScrollPolicy = ScrollPolicy.AUTO;
rendererStyles = {};
updatedRendererStyles = {};
}
protected function drawList():void{
}
public function set allowMultipleSelection(_arg1:Boolean):void{
if (_arg1 == _allowMultipleSelection){
return;
};
_allowMultipleSelection = _arg1;
if (((!(_arg1)) && ((_selectedIndices.length > 1)))){
_selectedIndices = [_selectedIndices.pop()];
invalidate(InvalidationType.DATA);
};
}
public function sortItemsOn(_arg1:String, _arg2:Object=null){
return (_dataProvider.sortOn(_arg1, _arg2));
}
public function removeItemAt(_arg1:uint):Object{
return (_dataProvider.removeItemAt(_arg1));
}
public function get selectedItem():Object{
return (((_selectedIndices.length)==0) ? null : _dataProvider.getItemAt(selectedIndex));
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!selectable){
return;
};
switch (_arg1.keyCode){
case Keyboard.UP:
case Keyboard.DOWN:
case Keyboard.END:
case Keyboard.HOME:
case Keyboard.PAGE_UP:
case Keyboard.PAGE_DOWN:
moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
_arg1.stopPropagation();
break;
case Keyboard.LEFT:
case Keyboard.RIGHT:
moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
_arg1.stopPropagation();
break;
};
}
public function get selectable():Boolean{
return (_selectable);
}
public function itemToCellRenderer(_arg1:Object):ICellRenderer{
var _local2:*;
var _local3:ICellRenderer;
if (_arg1 != null){
for (_local2 in activeCellRenderers) {
_local3 = (activeCellRenderers[_local2] as ICellRenderer);
if (_local3.data == _arg1){
return (_local3);
};
};
};
return (null);
}
public function getNextIndexAtLetter(_arg1:String, _arg2:int=-1):int{
var _local3:int;
var _local4:Number;
var _local5:Number;
var _local6:Object;
var _local7:String;
if (length == 0){
return (-1);
};
_arg1 = _arg1.toUpperCase();
_local3 = (length - 1);
_local4 = 0;
while (_local4 < _local3) {
_local5 = ((_arg2 + 1) + _local4);
if (_local5 > (length - 1)){
_local5 = (_local5 - length);
};
_local6 = getItemAt(_local5);
if (_local6 == null){
break;
};
_local7 = itemToLabel(_local6);
if (_local7 == null){
} else {
if (_local7.charAt(0).toUpperCase() == _arg1){
return (_local5);
};
};
_local4++;
};
return (-1);
}
public function invalidateList():void{
_invalidateList();
invalidate(InvalidationType.DATA);
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
list.mouseChildren = _enabled;
}
public function get selectedIndices():Array{
return (_selectedIndices.concat());
}
public function set selectable(_arg1:Boolean):void{
if (_arg1 == _selectable){
return;
};
if (!_arg1){
selectedIndices = [];
};
_selectable = _arg1;
}
public function itemToLabel(_arg1:Object):String{
return (_arg1["label"]);
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
_dataProvider.addItemAt(_arg1, _arg2);
invalidateList();
}
public function replaceItemAt(_arg1:Object, _arg2:uint):Object{
return (_dataProvider.replaceItemAt(_arg1, _arg2));
}
protected function handleDataChange(_arg1:DataChangeEvent):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:uint;
_local2 = _arg1.startIndex;
_local3 = _arg1.endIndex;
_local4 = _arg1.changeType;
if (_local4 == DataChangeType.INVALIDATE_ALL){
clearSelection();
invalidateList();
} else {
if (_local4 == DataChangeType.INVALIDATE){
_local5 = 0;
while (_local5 < _arg1.items.length) {
invalidateItem(_arg1.items[_local5]);
_local5++;
};
} else {
if (_local4 == DataChangeType.ADD){
_local5 = 0;
while (_local5 < _selectedIndices.length) {
if (_selectedIndices[_local5] >= _local2){
_selectedIndices[_local5] = (_selectedIndices[_local5] + (_local2 - _local3));
};
_local5++;
};
} else {
if (_local4 == DataChangeType.REMOVE){
_local5 = 0;
while (_local5 < _selectedIndices.length) {
if (_selectedIndices[_local5] >= _local2){
if (_selectedIndices[_local5] <= _local3){
delete _selectedIndices[_local5];
} else {
_selectedIndices[_local5] = (_selectedIndices[_local5] - ((_local2 - _local3) + 1));
};
};
_local5++;
};
} else {
if (_local4 == DataChangeType.REMOVE_ALL){
clearSelection();
} else {
if (_local4 == DataChangeType.REPLACE){
} else {
selectedItems = preChangeItems;
preChangeItems = null;
};
};
};
};
};
};
invalidate(InvalidationType.DATA);
}
protected function _invalidateList():void{
availableCellRenderers = [];
while (activeCellRenderers.length > 0) {
list.removeChild((activeCellRenderers.pop() as DisplayObject));
};
}
protected function updateRendererStyles():void{
var _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:String;
_local1 = availableCellRenderers.concat(activeCellRenderers);
_local2 = _local1.length;
_local3 = 0;
while (_local3 < _local2) {
if (_local1[_local3].setStyle == null){
} else {
for (_local4 in updatedRendererStyles) {
_local1[_local3].setStyle(_local4, updatedRendererStyles[_local4]);
};
_local1[_local3].drawNow();
};
_local3++;
};
updatedRendererStyles = {};
}
public function set selectedItem(_arg1:Object):void{
var _local2:int;
_local2 = _dataProvider.getItemIndex(_arg1);
selectedIndex = _local2;
}
public function sortItems(... _args){
return (_dataProvider.sort.apply(_dataProvider, _args));
}
public function removeAll():void{
_dataProvider.removeAll();
}
protected function handleCellRendererChange(_arg1:Event):void{
var _local2:ICellRenderer;
var _local3:uint;
_local2 = (_arg1.currentTarget as ICellRenderer);
_local3 = _local2.listData.index;
_dataProvider.invalidateItemAt(_local3);
}
protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
}
override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
if (_arg1 == _horizontalScrollPosition){
return;
};
_local3 = (_arg1 - _horizontalScrollPosition);
_horizontalScrollPosition = _arg1;
if (_arg2){
dispatchEvent(new ScrollEvent(ScrollBarDirection.HORIZONTAL, _local3, _arg1));
};
}
public function scrollToSelected():void{
scrollToIndex(selectedIndex);
}
public function invalidateItem(_arg1:Object):void{
if (renderedItems[_arg1] == null){
return;
};
invalidItems[_arg1] = true;
invalidate(InvalidationType.DATA);
}
protected function handleCellRendererClick(_arg1:MouseEvent):void{
var _local2:ICellRenderer;
var _local3:uint;
var _local4:int;
var _local5:int;
var _local6:uint;
if (!_enabled){
return;
};
_local2 = (_arg1.currentTarget as ICellRenderer);
_local3 = _local2.listData.index;
if (((!(dispatchEvent(new ListEvent(ListEvent.ITEM_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)))) || (!(_selectable)))){
return;
};
_local4 = selectedIndices.indexOf(_local3);
if (!_allowMultipleSelection){
if (_local4 != -1){
return;
};
_local2.selected = true;
_selectedIndices = [_local3];
lastCaretIndex = (caretIndex = _local3);
} else {
if (_arg1.shiftKey){
_local6 = ((_selectedIndices.length)>0) ? _selectedIndices[0] : _local3;
_selectedIndices = [];
if (_local6 > _local3){
_local5 = _local6;
while (_local5 >= _local3) {
_selectedIndices.push(_local5);
_local5--;
};
} else {
_local5 = _local6;
while (_local5 <= _local3) {
_selectedIndices.push(_local5);
_local5++;
};
};
caretIndex = _local3;
} else {
if (_arg1.ctrlKey){
if (_local4 != -1){
_local2.selected = false;
_selectedIndices.splice(_local4, 1);
} else {
_local2.selected = true;
_selectedIndices.push(_local3);
};
caretIndex = _local3;
} else {
_selectedIndices = [_local3];
lastCaretIndex = (caretIndex = _local3);
};
};
};
dispatchEvent(new Event(Event.CHANGE));
invalidate(InvalidationType.DATA);
}
public function get length():uint{
return (_dataProvider.length);
}
public function get allowMultipleSelection():Boolean{
return (_allowMultipleSelection);
}
protected function onPreChange(_arg1:DataChangeEvent):void{
switch (_arg1.changeType){
case DataChangeType.REMOVE:
case DataChangeType.ADD:
case DataChangeType.INVALIDATE:
case DataChangeType.REMOVE_ALL:
case DataChangeType.REPLACE:
case DataChangeType.INVALIDATE_ALL:
break;
default:
preChangeItems = selectedItems;
break;
};
}
public function getRendererStyle(_arg1:String, _arg2:int=-1):Object{
return (rendererStyles[_arg1]);
}
override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
if (_arg1 == _verticalScrollPosition){
return;
};
_local3 = (_arg1 - _verticalScrollPosition);
_verticalScrollPosition = _arg1;
if (_arg2){
dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _local3, _arg1));
};
}
protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
}
public function set selectedIndices(_arg1:Array):void{
if (!_selectable){
return;
};
_selectedIndices = ((_arg1)==null) ? [] : _arg1.concat();
invalidate(InvalidationType.SELECTED);
}
public function get selectedIndex():int{
return (((_selectedIndices.length)==0) ? -1 : _selectedIndices[(_selectedIndices.length - 1)]);
}
override protected function draw():void{
super.draw();
}
override protected function configUI():void{
super.configUI();
listHolder = new Sprite();
addChild(listHolder);
listHolder.scrollRect = contentScrollRect;
list = new Sprite();
listHolder.addChild(list);
}
public function addItem(_arg1:Object):void{
_dataProvider.addItem(_arg1);
invalidateList();
}
protected function handleCellRendererMouseEvent(_arg1:MouseEvent):void{
var _local2:ICellRenderer;
var _local3:String;
_local2 = (_arg1.target as ICellRenderer);
_local3 = ((_arg1.type)==MouseEvent.ROLL_OVER) ? ListEvent.ITEM_ROLL_OVER : ListEvent.ITEM_ROLL_OUT;
dispatchEvent(new ListEvent(_local3, false, false, _local2.listData.column, _local2.listData.row, _local2.listData.index, _local2.data));
}
public function clearRendererStyle(_arg1:String, _arg2:int=-1):void{
delete rendererStyles[_arg1];
updatedRendererStyles[_arg1] = null;
invalidate(InvalidationType.RENDERER_STYLES);
}
protected function handleCellRendererDoubleClick(_arg1:MouseEvent):void{
var _local2:ICellRenderer;
var _local3:uint;
if (!_enabled){
return;
};
_local2 = (_arg1.currentTarget as ICellRenderer);
_local3 = _local2.listData.index;
dispatchEvent(new ListEvent(ListEvent.ITEM_DOUBLE_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data));
}
public function get rowCount():uint{
return (0);
}
public function isItemSelected(_arg1:Object):Boolean{
return ((selectedItems.indexOf(_arg1) > -1));
}
public function set dataProvider(_arg1:DataProvider):void{
if (_dataProvider != null){
_dataProvider.removeEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange);
_dataProvider.removeEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange);
};
_dataProvider = _arg1;
_dataProvider.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true);
_dataProvider.addEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange, false, 0, true);
clearSelection();
invalidateList();
}
override protected function drawLayout():void{
super.drawLayout();
contentScrollRect = listHolder.scrollRect;
contentScrollRect.width = availableWidth;
contentScrollRect.height = availableHeight;
listHolder.scrollRect = contentScrollRect;
}
public function getItemAt(_arg1:uint):Object{
return (_dataProvider.getItemAt(_arg1));
}
override protected function initializeAccessibility():void{
if (SelectableList.createAccessibilityImplementation != null){
SelectableList.createAccessibilityImplementation(this);
};
}
public function scrollToIndex(_arg1:int):void{
}
public function removeItem(_arg1:Object):Object{
return (_dataProvider.removeItem(_arg1));
}
public function get dataProvider():DataProvider{
return (_dataProvider);
}
public function set maxHorizontalScrollPosition(_arg1:Number):void{
_maxHorizontalScrollPosition = _arg1;
invalidate(InvalidationType.SIZE);
}
public function setRendererStyle(_arg1:String, _arg2:Object, _arg3:uint=0):void{
if (rendererStyles[_arg1] == _arg2){
return;
};
updatedRendererStyles[_arg1] = _arg2;
rendererStyles[_arg1] = _arg2;
invalidate(InvalidationType.RENDERER_STYLES);
}
public function invalidateItemAt(_arg1:uint):void{
var _local2:Object;
_local2 = _dataProvider.getItemAt(_arg1);
if (_local2 != null){
invalidateItem(_local2);
};
}
public function set selectedItems(_arg1:Array):void{
var _local2:Array;
var _local3:uint;
var _local4:int;
if (_arg1 == null){
selectedIndices = null;
return;
};
_local2 = [];
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _dataProvider.getItemIndex(_arg1[_local3]);
if (_local4 != -1){
_local2.push(_local4);
};
_local3++;
};
selectedIndices = _local2;
}
public function clearSelection():void{
selectedIndex = -1;
}
override public function get maxHorizontalScrollPosition():Number{
return (_maxHorizontalScrollPosition);
}
public function get selectedItems():Array{
var _local1:Array;
var _local2:uint;
_local1 = [];
_local2 = 0;
while (_local2 < _selectedIndices.length) {
_local1.push(_dataProvider.getItemAt(_selectedIndices[_local2]));
_local2++;
};
return (_local1);
}
public function set selectedIndex(_arg1:int):void{
selectedIndices = ((_arg1)==-1) ? null : [_arg1];
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition()));
}
}
}//package fl.controls
Section 44
//TextArea (fl.controls.TextArea)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.system.*;
import flash.ui.*;
public class TextArea extends UIComponent implements IFocusManagerComponent {
protected var _html:Boolean;// = false
protected var _verticalScrollBar:UIScrollBar;
protected var _savedHTML:String;
protected var background:DisplayObject;
protected var _horizontalScrollBar:UIScrollBar;
protected var _horizontalScrollPolicy:String;// = "auto"
protected var _editable:Boolean;// = true
protected var textHasChanged:Boolean;// = false
public var textField:TextField;
protected var _wordWrap:Boolean;// = true
protected var _verticalScrollPolicy:String;// = "auto"
protected static const SCROLL_BAR_STYLES:Object = {downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {upSkin:"TextArea_upSkin", disabledSkin:"TextArea_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:3, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function TextArea(){
_editable = true;
_wordWrap = true;
_horizontalScrollPolicy = ScrollPolicy.AUTO;
_verticalScrollPolicy = ScrollPolicy.AUTO;
_html = false;
textHasChanged = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
if (focusTarget != null){
focusTarget.drawFocus(_arg1);
return;
};
super.drawFocus(_arg1);
}
public function set imeMode(_arg1:String):void{
_imeMode = _arg1;
}
protected function handleWheel(_arg1:MouseEvent):void{
if (((!(enabled)) || (!(_verticalScrollBar.visible)))){
return;
};
_verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * _verticalScrollBar.lineScrollSize));
dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, (_arg1.delta * _verticalScrollBar.lineScrollSize), _verticalScrollBar.scrollPosition));
}
public function get verticalScrollPosition():Number{
return (textField.scrollV);
}
override protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((((_arg1 == textField)) || (super.isOurFocus(_arg1))));
}
public function set verticalScrollPosition(_arg1:Number):void{
drawNow();
textField.scrollV = _arg1;
}
protected function handleKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ENTER){
dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true));
};
}
public function set text(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
return;
};
textField.text = _arg1;
_html = false;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
textHasChanged = true;
}
protected function updateTextFieldType():void{
textField.type = (((enabled) && (_editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC;
textField.selectable = enabled;
textField.wordWrap = _wordWrap;
textField.multiline = true;
}
public function get selectionEndIndex():int{
return (textField.selectionEndIndex);
}
public function get editable():Boolean{
return (_editable);
}
override protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
setIMEMode(true);
if (_arg1.target == this){
stage.focus = textField;
};
_local2 = focusManager;
if (_local2){
if (editable){
_local2.showFocusIndicator = true;
};
_local2.defaultButtonEnabled = false;
};
super.focusInHandler(_arg1);
if (editable){
setIMEMode(true);
};
}
public function get wordWrap():Boolean{
return (_wordWrap);
}
public function get selectionBeginIndex():int{
return (textField.selectionBeginIndex);
}
public function get horizontalScrollBar():UIScrollBar{
return (_horizontalScrollBar);
}
public function set alwaysShowSelection(_arg1:Boolean):void{
textField.alwaysShowSelection = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseChildren = enabled;
invalidate(InvalidationType.STATE);
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
public function get horizontalScrollPosition():Number{
return (textField.scrollH);
}
public function set condenseWhite(_arg1:Boolean):void{
textField.condenseWhite = _arg1;
invalidate(InvalidationType.DATA);
}
public function get horizontalScrollPolicy():String{
return (_horizontalScrollPolicy);
}
public function set displayAsPassword(_arg1:Boolean):void{
textField.displayAsPassword = _arg1;
}
public function get maxVerticalScrollPosition():int{
return (textField.maxScrollV);
}
public function set horizontalScrollPosition(_arg1:Number):void{
drawNow();
textField.scrollH = _arg1;
}
public function get textHeight():Number{
drawNow();
return (textField.textHeight);
}
public function get textWidth():Number{
drawNow();
return (textField.textWidth);
}
public function get restrict():String{
return (textField.restrict);
}
public function set editable(_arg1:Boolean):void{
_editable = _arg1;
invalidate(InvalidationType.STATE);
}
protected function updateScrollBars(){
_horizontalScrollBar.update();
_verticalScrollBar.update();
_verticalScrollBar.enabled = enabled;
_horizontalScrollBar.enabled = enabled;
_horizontalScrollBar.drawNow();
_verticalScrollBar.drawNow();
}
public function get maxChars():int{
return (textField.maxChars);
}
public function get length():Number{
return (textField.text.length);
}
public function set wordWrap(_arg1:Boolean):void{
_wordWrap = _arg1;
invalidate(InvalidationType.STATE);
}
public function get verticalScrollPolicy():String{
return (_verticalScrollPolicy);
}
public function getLineMetrics(_arg1:int):TextLineMetrics{
return (textField.getLineMetrics(_arg1));
}
public function get imeMode():String{
return (IME.conversionMode);
}
protected function handleScroll(_arg1:ScrollEvent):void{
dispatchEvent(_arg1);
}
override protected function focusOutHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
_local2 = focusManager;
if (_local2){
_local2.defaultButtonEnabled = true;
};
setSelection(0, 0);
super.focusOutHandler(_arg1);
if (editable){
setIMEMode(false);
};
}
protected function delayedLayoutUpdate(_arg1:Event):void{
if (textHasChanged){
textHasChanged = false;
drawLayout();
return;
};
removeEventListener(Event.ENTER_FRAME, delayedLayoutUpdate);
}
public function set htmlText(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
return;
};
if (_arg1 == ""){
text = "";
return;
};
_html = true;
_savedHTML = _arg1;
textField.htmlText = _arg1;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
textHasChanged = true;
}
public function get text():String{
return (textField.text);
}
public function get verticalScrollBar():UIScrollBar{
return (_verticalScrollBar);
}
override public function get enabled():Boolean{
return (super.enabled);
}
public function get condenseWhite():Boolean{
return (textField.condenseWhite);
}
public function set horizontalScrollPolicy(_arg1:String):void{
_horizontalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get displayAsPassword():Boolean{
return (textField.displayAsPassword);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STATE)){
updateTextFieldType();
};
if (isInvalid(InvalidationType.STYLES)){
setStyles();
setEmbedFont();
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawTextFormat();
drawBackground();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.DATA)){
drawLayout();
};
super.draw();
}
protected function handleTextInput(_arg1:TextEvent):void{
_arg1.stopPropagation();
dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text));
}
override protected function configUI():void{
super.configUI();
tabChildren = true;
textField = new TextField();
addChild(textField);
updateTextFieldType();
_verticalScrollBar = new UIScrollBar();
_verticalScrollBar.name = "V";
_verticalScrollBar.visible = false;
_verticalScrollBar.focusEnabled = false;
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
_verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
addChild(_verticalScrollBar);
_horizontalScrollBar = new UIScrollBar();
_horizontalScrollBar.name = "H";
_horizontalScrollBar.visible = false;
_horizontalScrollBar.focusEnabled = false;
_horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL;
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
_horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
addChild(_horizontalScrollBar);
textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true);
textField.addEventListener(Event.CHANGE, handleChange, false, 0, true);
textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true);
_horizontalScrollBar.scrollTarget = textField;
_verticalScrollBar.scrollTarget = textField;
addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true);
}
protected function setTextSize(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:Number;
var _local5:Number;
_local4 = (_arg1 - (_arg3 * 2));
_local5 = (_arg2 - (_arg3 * 2));
if (_local4 != textField.width){
textField.width = _local4;
};
if (_local5 != textField.height){
textField.height = _local5;
};
}
public function appendText(_arg1:String):void{
textField.appendText(_arg1);
invalidate(InvalidationType.DATA);
}
protected function needVScroll():Boolean{
if (_verticalScrollPolicy == ScrollPolicy.OFF){
return (false);
};
if (_verticalScrollPolicy == ScrollPolicy.ON){
return (true);
};
return ((textField.maxScrollV > 1));
}
public function setSelection(_arg1:int, _arg2:int):void{
textField.setSelection(_arg1, _arg2);
}
public function get alwaysShowSelection():Boolean{
return (textField.alwaysShowSelection);
}
public function get htmlText():String{
return (textField.htmlText);
}
public function set restrict(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
_arg1 = null;
};
textField.restrict = _arg1;
}
protected function drawBackground():void{
var _local1:DisplayObject;
var _local2:String;
_local1 = background;
_local2 = (enabled) ? "upSkin" : "disabledSkin";
background = getDisplayObjectInstance(getStyleValue(_local2));
if (background != null){
addChildAt(background, 0);
};
if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){
removeChild(_local1);
};
}
public function set maxChars(_arg1:int):void{
textField.maxChars = _arg1;
}
public function get maxHorizontalScrollPosition():int{
return (textField.maxScrollH);
}
protected function drawLayout():void{
var _local1:Number;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
var _local5:Boolean;
_local1 = Number(getStyleValue("textPadding"));
textField.x = (textField.y = _local1);
background.width = width;
background.height = height;
_local2 = height;
_local3 = needVScroll();
_local4 = (width - (_local3) ? _verticalScrollBar.width : 0);
_local5 = needHScroll();
if (_local5){
_local2 = (_local2 - _horizontalScrollBar.height);
};
setTextSize(_local4, _local2, _local1);
if (((((_local5) && (!(_local3)))) && (needVScroll()))){
_local3 = true;
_local4 = (_local4 - _verticalScrollBar.width);
setTextSize(_local4, _local2, _local1);
};
if (_local3){
_verticalScrollBar.visible = true;
_verticalScrollBar.x = (width - _verticalScrollBar.width);
_verticalScrollBar.height = _local2;
_verticalScrollBar.visible = true;
_verticalScrollBar.enabled = enabled;
} else {
_verticalScrollBar.visible = false;
};
if (_local5){
_horizontalScrollBar.visible = true;
_horizontalScrollBar.y = (height - _horizontalScrollBar.height);
_horizontalScrollBar.width = _local4;
_horizontalScrollBar.visible = true;
_horizontalScrollBar.enabled = enabled;
} else {
_horizontalScrollBar.visible = false;
};
updateScrollBars();
addEventListener(Event.ENTER_FRAME, delayedLayoutUpdate, false, 0, true);
}
protected function setStyles():void{
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
}
protected function needHScroll():Boolean{
if (_horizontalScrollPolicy == ScrollPolicy.OFF){
return (false);
};
if (_horizontalScrollPolicy == ScrollPolicy.ON){
return (true);
};
return ((textField.maxScrollH > 0));
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
if (_html){
textField.htmlText = _savedHTML;
};
}
public function set verticalScrollPolicy(_arg1:String):void{
_verticalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
protected function handleChange(_arg1:Event):void{
_arg1.stopPropagation();
dispatchEvent(new Event(Event.CHANGE, true));
invalidate(InvalidationType.DATA);
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(defaultStyles, ScrollBar.getStyleDefinition()));
}
}
}//package fl.controls
Section 45
//TextInput (fl.controls.TextInput)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class TextInput extends UIComponent implements IFocusManagerComponent {
protected var _html:Boolean;// = false
protected var _savedHTML:String;
protected var background:DisplayObject;
protected var _editable:Boolean;// = true
public var textField:TextField;
private static var defaultStyles:Object = {upSkin:"TextInput_upSkin", disabledSkin:"TextInput_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:0, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function TextInput(){
_editable = true;
_html = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
if (focusTarget != null){
focusTarget.drawFocus(_arg1);
return;
};
super.drawFocus(_arg1);
}
public function set imeMode(_arg1:String):void{
_imeMode = _arg1;
}
override protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((((_arg1 == textField)) || (super.isOurFocus(_arg1))));
}
protected function handleKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ENTER){
dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true));
};
}
public function set text(_arg1:String):void{
textField.text = _arg1;
_html = false;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
}
protected function updateTextFieldType():void{
textField.type = (((enabled) && (editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC;
textField.selectable = enabled;
}
public function get selectionEndIndex():int{
return (textField.selectionEndIndex);
}
public function get editable():Boolean{
return (_editable);
}
override protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (_arg1.target == this){
stage.focus = textField;
};
_local2 = focusManager;
if (((editable) && (_local2))){
_local2.showFocusIndicator = true;
if (((textField.selectable) && ((textField.selectionBeginIndex == textField.selectionBeginIndex)))){
setSelection(0, textField.length);
};
};
super.focusInHandler(_arg1);
if (editable){
setIMEMode(true);
};
}
public function get selectionBeginIndex():int{
return (textField.selectionBeginIndex);
}
public function set alwaysShowSelection(_arg1:Boolean):void{
textField.alwaysShowSelection = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
updateTextFieldType();
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
public function get horizontalScrollPosition():int{
return (textField.scrollH);
}
public function set condenseWhite(_arg1:Boolean):void{
textField.condenseWhite = _arg1;
}
public function set displayAsPassword(_arg1:Boolean):void{
textField.displayAsPassword = _arg1;
}
public function set horizontalScrollPosition(_arg1:int):void{
textField.scrollH = _arg1;
}
public function get restrict():String{
return (textField.restrict);
}
public function get textWidth():Number{
return (textField.textWidth);
}
public function get textHeight():Number{
return (textField.textHeight);
}
public function set editable(_arg1:Boolean):void{
_editable = _arg1;
updateTextFieldType();
}
public function get maxChars():int{
return (textField.maxChars);
}
public function get length():int{
return (textField.length);
}
public function getLineMetrics(_arg1:int):TextLineMetrics{
return (textField.getLineMetrics(_arg1));
}
public function get imeMode():String{
return (_imeMode);
}
override protected function focusOutHandler(_arg1:FocusEvent):void{
super.focusOutHandler(_arg1);
if (editable){
setIMEMode(false);
};
}
public function set htmlText(_arg1:String):void{
if (_arg1 == ""){
text = "";
return;
};
_html = true;
_savedHTML = _arg1;
textField.htmlText = _arg1;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
}
public function get text():String{
return (textField.text);
}
override public function get enabled():Boolean{
return (super.enabled);
}
public function get condenseWhite():Boolean{
return (textField.condenseWhite);
}
public function get alwaysShowSelection():Boolean{
return (textField.alwaysShowSelection);
}
override protected function draw():void{
var _local1:Object;
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawTextFormat();
drawBackground();
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function handleTextInput(_arg1:TextEvent):void{
_arg1.stopPropagation();
dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text));
}
override protected function configUI():void{
super.configUI();
tabChildren = true;
textField = new TextField();
addChild(textField);
updateTextFieldType();
textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true);
textField.addEventListener(Event.CHANGE, handleChange, false, 0, true);
textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true);
}
public function setSelection(_arg1:int, _arg2:int):void{
textField.setSelection(_arg1, _arg2);
}
public function get displayAsPassword():Boolean{
return (textField.displayAsPassword);
}
public function appendText(_arg1:String):void{
textField.appendText(_arg1);
}
public function set restrict(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
_arg1 = null;
};
textField.restrict = _arg1;
}
public function get htmlText():String{
return (textField.htmlText);
}
protected function drawBackground():void{
var _local1:DisplayObject;
var _local2:String;
_local1 = background;
_local2 = (enabled) ? "upSkin" : "disabledSkin";
background = getDisplayObjectInstance(getStyleValue(_local2));
if (background == null){
return;
};
addChildAt(background, 0);
if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){
removeChild(_local1);
};
}
override public function setFocus():void{
stage.focus = textField;
}
protected function drawLayout():void{
var _local1:Number;
_local1 = Number(getStyleValue("textPadding"));
if (background != null){
background.width = width;
background.height = height;
};
textField.width = (width - (2 * _local1));
textField.height = (height - (2 * _local1));
textField.x = (textField.y = _local1);
}
public function set maxChars(_arg1:int):void{
textField.maxChars = _arg1;
}
public function get maxHorizontalScrollPosition():int{
return (textField.maxScrollH);
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
if (_html){
textField.htmlText = _savedHTML;
};
}
protected function handleChange(_arg1:Event):void{
_arg1.stopPropagation();
dispatchEvent(new Event(Event.CHANGE, true));
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 46
//UIScrollBar (fl.controls.UIScrollBar)
package fl.controls {
import fl.core.*;
import flash.events.*;
import fl.events.*;
import flash.text.*;
public class UIScrollBar extends ScrollBar {
protected var inScroll:Boolean;// = false
protected var _scrollTarget:TextField;
protected var inEdit:Boolean;// = false
private static var defaultStyles:Object = {};
public function UIScrollBar(){
inEdit = false;
inScroll = false;
super();
}
protected function handleTargetScroll(_arg1:Event):void{
if (inDrag){
return;
};
if (!enabled){
return;
};
inEdit = true;
updateScrollTargetProperties();
scrollPosition = ((direction)==ScrollBarDirection.HORIZONTAL) ? _scrollTarget.scrollH : _scrollTarget.scrollV;
inEdit = false;
}
override public function set minScrollPosition(_arg1:Number):void{
super.minScrollPosition = ((_arg1)<0) ? 0 : _arg1;
}
override public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{
super.setScrollPosition(_arg1, _arg2);
if (!_scrollTarget){
inScroll = false;
return;
};
updateTargetScroll();
}
override public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{
var _local5:Number;
var _local6:Number;
_local5 = _arg3;
_local6 = ((_arg2)<0) ? 0 : _arg2;
if (_scrollTarget != null){
if (direction == ScrollBarDirection.HORIZONTAL){
_local5 = ((_arg3)>_scrollTarget.maxScrollH) ? _scrollTarget.maxScrollH : _local5;
} else {
_local5 = ((_arg3)>_scrollTarget.maxScrollV) ? _scrollTarget.maxScrollV : _local5;
};
};
super.setScrollProperties(_arg1, _local6, _local5, _arg4);
}
public function get scrollTargetName():String{
return (_scrollTarget.name);
}
public function get scrollTarget():TextField{
return (_scrollTarget);
}
protected function updateScrollTargetProperties():void{
var _local1:Boolean;
var _local2:Number;
if (_scrollTarget == null){
setScrollProperties(pageSize, minScrollPosition, maxScrollPosition, pageScrollSize);
scrollPosition = 0;
} else {
_local1 = (direction == ScrollBarDirection.HORIZONTAL);
_local2 = (_local1) ? _scrollTarget.width : 10;
setScrollProperties(_local2, (_local1) ? 0 : 1, (_local1) ? _scrollTarget.maxScrollH : _scrollTarget.maxScrollV, pageScrollSize);
scrollPosition = (_local1) ? _scrollTarget.scrollH : _scrollTarget.scrollV;
};
}
public function update():void{
inEdit = true;
updateScrollTargetProperties();
inEdit = false;
}
public function set scrollTargetName(_arg1:String):void{
var target = _arg1;
try {
scrollTarget = (parent.getChildByName(target) as TextField);
} catch(error:Error) {
throw (new Error("ScrollTarget not found, or is not a TextField"));
};
}
override public function set direction(_arg1:String):void{
if (isLivePreview){
return;
};
super.direction = _arg1;
updateScrollTargetProperties();
}
protected function handleTargetChange(_arg1:Event):void{
inEdit = true;
setScrollPosition(((direction)==ScrollBarDirection.HORIZONTAL) ? _scrollTarget.scrollH : _scrollTarget.scrollV, true);
updateScrollTargetProperties();
inEdit = false;
}
override public function set maxScrollPosition(_arg1:Number):void{
var _local2:Number;
_local2 = _arg1;
if (_scrollTarget != null){
if (direction == ScrollBarDirection.HORIZONTAL){
_local2 = ((_local2)>_scrollTarget.maxScrollH) ? _scrollTarget.maxScrollH : _local2;
} else {
_local2 = ((_local2)>_scrollTarget.maxScrollV) ? _scrollTarget.maxScrollV : _local2;
};
};
super.maxScrollPosition = _local2;
}
protected function updateTargetScroll(_arg1:ScrollEvent=null):void{
if (inEdit){
return;
};
if (direction == ScrollBarDirection.HORIZONTAL){
_scrollTarget.scrollH = scrollPosition;
} else {
_scrollTarget.scrollV = scrollPosition;
};
}
override protected function draw():void{
if (isInvalid(InvalidationType.DATA)){
updateScrollTargetProperties();
};
super.draw();
}
public function set scrollTarget(_arg1:TextField):void{
if (_scrollTarget != null){
_scrollTarget.removeEventListener(Event.CHANGE, handleTargetChange, false);
_scrollTarget.removeEventListener(TextEvent.TEXT_INPUT, handleTargetChange, false);
_scrollTarget.removeEventListener(Event.SCROLL, handleTargetScroll, false);
removeEventListener(ScrollEvent.SCROLL, updateTargetScroll, false);
};
_scrollTarget = _arg1;
if (_scrollTarget != null){
_scrollTarget.addEventListener(Event.CHANGE, handleTargetChange, false, 0, true);
_scrollTarget.addEventListener(TextEvent.TEXT_INPUT, handleTargetChange, false, 0, true);
_scrollTarget.addEventListener(Event.SCROLL, handleTargetScroll, false, 0, true);
addEventListener(ScrollEvent.SCROLL, updateTargetScroll, false, 0, true);
};
invalidate(InvalidationType.DATA);
}
override public function get direction():String{
return (super.direction);
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(defaultStyles, ScrollBar.getStyleDefinition()));
}
}
}//package fl.controls
Section 47
//ComponentShim (fl.core.ComponentShim)
package fl.core {
import flash.display.*;
public dynamic class ComponentShim extends MovieClip {
}
}//package fl.core
Section 48
//InvalidationType (fl.core.InvalidationType)
package fl.core {
public class InvalidationType {
public static const SIZE:String = "size";
public static const ALL:String = "all";
public static const DATA:String = "data";
public static const SCROLL:String = "scroll";
public static const STATE:String = "state";
public static const STYLES:String = "styles";
public static const SELECTED:String = "selected";
public static const RENDERER_STYLES:String = "rendererStyles";
}
}//package fl.core
Section 49
//UIComponent (fl.core.UIComponent)
package fl.core {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.system.*;
public class UIComponent extends Sprite {
protected var _enabled:Boolean;// = true
private var _mouseFocusEnabled:Boolean;// = true
protected var startHeight:Number;
protected var _height:Number;
protected var _oldIMEMode:String;// = null
protected var startWidth:Number;
public var focusTarget:IFocusManagerComponent;
protected var errorCaught:Boolean;// = false
protected var uiFocusRect:DisplayObject;
protected var _width:Number;
public var version:String;// = "3.0.0.15"
protected var isFocused:Boolean;// = false
protected var callLaterMethods:Dictionary;
private var _focusEnabled:Boolean;// = true
private var tempText:TextField;
protected var invalidateFlag:Boolean;// = false
protected var _inspector:Boolean;// = false
protected var sharedStyles:Object;
protected var invalidHash:Object;
protected var isLivePreview:Boolean;// = false
protected var _imeMode:String;// = null
protected var instanceStyles:Object;
protected var _x:Number;
protected var _y:Number;
public static var inCallLaterPhase:Boolean = false;
private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)};
public static var createAccessibilityImplementation:Function;
private static var focusManagers:Dictionary = new Dictionary(false);
public function UIComponent(){
version = "3.0.0.15";
isLivePreview = false;
invalidateFlag = false;
_enabled = true;
isFocused = false;
_focusEnabled = true;
_mouseFocusEnabled = true;
_imeMode = null;
_oldIMEMode = null;
errorCaught = false;
_inspector = false;
super();
instanceStyles = {};
sharedStyles = {};
invalidHash = {};
callLaterMethods = new Dictionary();
StyleManager.registerInstance(this);
configUI();
invalidate(InvalidationType.ALL);
tabEnabled = (this is IFocusManagerComponent);
focusRect = false;
if (tabEnabled){
addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
initializeFocusManager();
addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true);
}
public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
isFocused = _arg1;
if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){
removeChild(uiFocusRect);
uiFocusRect = null;
};
if (_arg1){
uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite);
if (uiFocusRect == null){
return;
};
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = -(_local2);
uiFocusRect.y = -(_local2);
uiFocusRect.width = (width + (_local2 * 2));
uiFocusRect.height = (height + (_local2 * 2));
addChildAt(uiFocusRect, 0);
};
}
private function callLaterDispatcher(_arg1:Event):void{
var _local2:Dictionary;
var _local3:Object;
if (_arg1.type == Event.ADDED_TO_STAGE){
removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher);
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
return;
};
_arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher);
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
return;
};
inCallLaterPhase = true;
_local2 = callLaterMethods;
for (_local3 in _local2) {
_local3();
delete _local2[_local3];
};
inCallLaterPhase = false;
}
private function addedHandler(_arg1:Event):void{
removeEventListener("addedToStage", addedHandler);
initializeFocusManager();
}
protected function getStyleValue(_arg1:String):Object{
return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]);
}
protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
override public function get scaleX():Number{
return ((width / startWidth));
}
override public function get scaleY():Number{
return ((height / startHeight));
}
override public function set height(_arg1:Number):void{
if (_height == _arg1){
return;
};
setSize(width, _arg1);
}
protected function keyDownHandler(_arg1:KeyboardEvent):void{
}
protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (isOurFocus((_arg1.target as DisplayObject))){
_local2 = focusManager;
if (((_local2) && (_local2.showFocusIndicator))){
drawFocus(true);
isFocused = true;
};
};
}
public function setStyle(_arg1:String, _arg2:Object):void{
if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
instanceStyles[_arg1] = _arg2;
invalidate(InvalidationType.STYLES);
}
override public function get visible():Boolean{
return (super.visible);
}
public function get componentInspectorSetting():Boolean{
return (_inspector);
}
override public function get x():Number{
return ((isNaN(_x)) ? super.x : _x);
}
override public function get y():Number{
return ((isNaN(_y)) ? super.y : _y);
}
protected function setIMEMode(_arg1:Boolean){
var enabled = _arg1;
if (_imeMode != null){
if (enabled){
IME.enabled = true;
_oldIMEMode = IME.conversionMode;
try {
if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _imeMode;
};
errorCaught = false;
} catch(e:Error) {
errorCaught = true;
throw (new Error(("IME mode not supported: " + _imeMode)));
};
} else {
if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _oldIMEMode;
};
IME.enabled = false;
};
};
}
public function set enabled(_arg1:Boolean):void{
if (_arg1 == _enabled){
return;
};
_enabled = _arg1;
invalidate(InvalidationType.STATE);
}
public function setSharedStyle(_arg1:String, _arg2:Object):void{
if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
sharedStyles[_arg1] = _arg2;
if (instanceStyles[_arg1] == null){
invalidate(InvalidationType.STYLES);
};
}
protected function keyUpHandler(_arg1:KeyboardEvent):void{
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
override public function set scaleX(_arg1:Number):void{
setSize((startWidth * _arg1), height);
}
public function get mouseFocusEnabled():Boolean{
return (_mouseFocusEnabled);
}
override public function set scaleY(_arg1:Number):void{
setSize(width, (startHeight * _arg1));
}
protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{
var classDef:Object;
var skin = _arg1;
classDef = null;
if ((skin is Class)){
return ((new (skin) as DisplayObject));
};
if ((skin is DisplayObject)){
(skin as DisplayObject).x = 0;
(skin as DisplayObject).y = 0;
return ((skin as DisplayObject));
};
try {
classDef = getDefinitionByName(skin.toString());
} catch(e:Error) {
try {
classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object);
} catch(e:Error) {
};
};
if (classDef == null){
return (null);
};
return ((new (classDef) as DisplayObject));
}
protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{
var _local3:String;
for (_local3 in _arg2) {
_arg1.setStyle(_local3, getStyleValue(_arg2[_local3]));
};
}
protected function beforeComponentParameters():void{
}
protected function callLater(_arg1:Function):void{
if (inCallLaterPhase){
return;
};
callLaterMethods[_arg1] = true;
if (stage != null){
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
} else {
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
};
}
protected function createFocusManager():void{
if (focusManagers[stage] == null){
focusManagers[stage] = new FocusManager(stage);
};
}
override public function set visible(_arg1:Boolean):void{
var _local2:String;
if (super.visible == _arg1){
return;
};
super.visible = _arg1;
_local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE;
dispatchEvent(new ComponentEvent(_local2, true));
}
protected function hookAccessibility(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, hookAccessibility);
initializeAccessibility();
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_inspector = _arg1;
if (_inspector){
beforeComponentParameters();
} else {
afterComponentParameters();
};
}
override public function set x(_arg1:Number):void{
move(_arg1, _y);
}
public function drawNow():void{
draw();
}
override public function set y(_arg1:Number):void{
move(_x, _arg1);
}
protected function checkLivePreview():Boolean{
var className:String;
if (parent == null){
return (false);
};
try {
className = getQualifiedClassName(parent);
} catch(e:Error) {
};
return ((className == "fl.livepreview::LivePreviewParent"));
}
protected function focusOutHandler(_arg1:FocusEvent):void{
if (isOurFocus((_arg1.target as DisplayObject))){
drawFocus(false);
isFocused = false;
};
}
public function set mouseFocusEnabled(_arg1:Boolean):void{
_mouseFocusEnabled = _arg1;
}
public function getFocus():InteractiveObject{
if (stage){
return (stage.focus);
};
return (null);
}
protected function validate():void{
invalidHash = {};
}
override public function get height():Number{
return (_height);
}
public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{
invalidHash[_arg1] = true;
if (_arg2){
this.callLater(draw);
};
}
public function get enabled():Boolean{
return (_enabled);
}
protected function getScaleX():Number{
return (super.scaleX);
}
protected function getScaleY():Number{
return (super.scaleY);
}
public function get focusEnabled():Boolean{
return (_focusEnabled);
}
protected function afterComponentParameters():void{
}
protected function draw():void{
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
protected function configUI():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
isLivePreview = checkLivePreview();
_local1 = rotation;
rotation = 0;
_local2 = super.width;
_local3 = super.height;
var _local4 = 1;
super.scaleY = _local4;
super.scaleX = _local4;
setSize(_local2, _local3);
move(super.x, super.y);
rotation = _local1;
startWidth = _local2;
startHeight = _local3;
if (numChildren > 0){
removeChildAt(0);
};
}
protected function setScaleX(_arg1:Number):void{
super.scaleX = _arg1;
}
protected function setScaleY(_arg1:Number):void{
super.scaleY = _arg1;
}
private function initializeFocusManager():void{
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true);
} else {
createFocusManager();
};
}
public function set focusManager(_arg1:IFocusManager):void{
UIComponent.focusManagers[this] = _arg1;
}
public function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
protected function isInvalid(_arg1:String, ... _args):Boolean{
if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){
return (true);
};
while (_args.length > 0) {
if (invalidHash[_args.pop()]){
return (true);
};
};
return (false);
}
public function setSize(_arg1:Number, _arg2:Number):void{
_width = _arg1;
_height = _arg2;
invalidate(InvalidationType.SIZE);
dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false));
}
override public function set width(_arg1:Number):void{
if (_width == _arg1){
return;
};
setSize(_arg1, height);
}
public function setFocus():void{
if (stage){
stage.focus = this;
};
}
protected function initializeAccessibility():void{
if (UIComponent.createAccessibilityImplementation != null){
UIComponent.createAccessibilityImplementation(this);
};
}
public function get focusManager():IFocusManager{
var _local1:DisplayObject;
_local1 = this;
while (_local1) {
if (UIComponent.focusManagers[_local1] != null){
return (IFocusManager(UIComponent.focusManagers[_local1]));
};
_local1 = _local1.parent;
};
return (null);
}
override public function get width():Number{
return (_width);
}
public function move(_arg1:Number, _arg2:Number):void{
_x = _arg1;
_y = _arg2;
super.x = Math.round(_arg1);
super.y = Math.round(_arg2);
dispatchEvent(new ComponentEvent(ComponentEvent.MOVE));
}
public function validateNow():void{
invalidate(InvalidationType.ALL, false);
draw();
}
public function getStyle(_arg1:String):Object{
return (instanceStyles[_arg1]);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
public static function mergeStyles(... _args):Object{
var _local2:Object;
var _local3:uint;
var _local4:uint;
var _local5:Object;
var _local6:String;
_local2 = {};
_local3 = _args.length;
_local4 = 0;
while (_local4 < _local3) {
_local5 = _args[_local4];
for (_local6 in _local5) {
if (_local2[_local6] != null){
} else {
_local2[_local6] = _args[_local4][_local6];
};
};
_local4++;
};
return (_local2);
}
}
}//package fl.core
Section 50
//DataProvider (fl.data.DataProvider)
package fl.data {
import flash.events.*;
import fl.events.*;
public class DataProvider extends EventDispatcher {
protected var data:Array;
public function DataProvider(_arg1:Object=null){
if (_arg1 == null){
data = [];
} else {
data = getDataFromObject(_arg1);
};
}
protected function dispatchPreChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{
dispatchEvent(new DataChangeEvent(DataChangeEvent.PRE_DATA_CHANGE, _arg1, _arg2, _arg3, _arg4));
}
public function invalidateItemAt(_arg1:int):void{
checkIndex(_arg1, (data.length - 1));
dispatchChangeEvent(DataChangeType.INVALIDATE, [data[_arg1]], _arg1, _arg1);
}
public function getItemIndex(_arg1:Object):int{
return (data.indexOf(_arg1));
}
protected function getDataFromObject(_arg1:Object):Array{
var _local2:Array;
var _local3:Array;
var _local4:uint;
var _local5:Object;
var _local6:XML;
var _local7:XMLList;
var _local8:XML;
var _local9:XMLList;
var _local10:XML;
var _local11:XMLList;
var _local12:XML;
if ((_arg1 is Array)){
_local3 = (_arg1 as Array);
if (_local3.length > 0){
if ((((_local3[0] is String)) || ((_local3[0] is Number)))){
_local2 = [];
_local4 = 0;
while (_local4 < _local3.length) {
_local5 = {label:String(_local3[_local4]), data:_local3[_local4]};
_local2.push(_local5);
_local4++;
};
return (_local2);
};
};
return (_arg1.concat());
//unresolved jump
};
if ((_arg1 is DataProvider)){
return (_arg1.toArray());
};
if ((_arg1 is XML)){
_local6 = (_arg1 as XML);
_local2 = [];
_local7 = _local6.*;
for each (_local8 in _local7) {
_arg1 = {};
_local9 = _local8.attributes();
for each (_local10 in _local9) {
_arg1[_local10.localName()] = _local10.toString();
};
_local11 = _local8.*;
for each (_local12 in _local11) {
if (_local12.hasSimpleContent()){
_arg1[_local12.localName()] = _local12.toString();
};
};
_local2.push(_arg1);
};
return (_local2);
//unresolved jump
};
throw (new TypeError((("Error: Type Coercion failed: cannot convert " + _arg1) + " to Array or DataProvider.")));
}
public function removeItemAt(_arg1:uint):Object{
var _local2:Array;
checkIndex(_arg1, (data.length - 1));
dispatchPreChangeEvent(DataChangeType.REMOVE, data.slice(_arg1, (_arg1 + 1)), _arg1, _arg1);
_local2 = data.splice(_arg1, 1);
dispatchChangeEvent(DataChangeType.REMOVE, _local2, _arg1, _arg1);
return (_local2[0]);
}
public function addItem(_arg1:Object):void{
dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1));
data.push(_arg1);
dispatchChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1));
}
public function sortOn(_arg1:Object, _arg2:Object=null){
var _local3:Array;
dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
_local3 = data.sortOn(_arg1, _arg2);
dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
return (_local3);
}
public function sort(... _args){
var _local2:Array;
dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
_local2 = data.sort.apply(data, _args);
dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
return (_local2);
}
public function addItems(_arg1:Object):void{
addItemsAt(_arg1, data.length);
}
public function concat(_arg1:Object):void{
addItems(_arg1);
}
public function clone():DataProvider{
return (new DataProvider(data));
}
public function toArray():Array{
return (data.concat());
}
public function get length():uint{
return (data.length);
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
checkIndex(_arg2, data.length);
dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2);
data.splice(_arg2, 0, _arg1);
dispatchChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2);
}
public function getItemAt(_arg1:uint):Object{
checkIndex(_arg1, (data.length - 1));
return (data[_arg1]);
}
override public function toString():String{
return ((("DataProvider [" + data.join(" , ")) + "]"));
}
public function invalidateItem(_arg1:Object):void{
var _local2:uint;
_local2 = getItemIndex(_arg1);
if (_local2 == -1){
return;
};
invalidateItemAt(_local2);
}
protected function dispatchChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{
dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, _arg1, _arg2, _arg3, _arg4));
}
protected function checkIndex(_arg1:int, _arg2:int):void{
if ((((_arg1 > _arg2)) || ((_arg1 < 0)))){
throw (new RangeError((((("DataProvider index (" + _arg1) + ") is not in acceptable range (0 - ") + _arg2) + ")")));
};
}
public function addItemsAt(_arg1:Object, _arg2:uint):void{
var _local3:Array;
checkIndex(_arg2, data.length);
_local3 = getDataFromObject(_arg1);
dispatchPreChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1));
data.splice.apply(data, [_arg2, 0].concat(_local3));
dispatchChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1));
}
public function replaceItem(_arg1:Object, _arg2:Object):Object{
var _local3:int;
_local3 = getItemIndex(_arg2);
if (_local3 != -1){
return (replaceItemAt(_arg1, _local3));
};
return (null);
}
public function removeItem(_arg1:Object):Object{
var _local2:int;
_local2 = getItemIndex(_arg1);
if (_local2 != -1){
return (removeItemAt(_local2));
};
return (null);
}
public function merge(_arg1:Object):void{
var _local2:Array;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:Object;
_local2 = getDataFromObject(_arg1);
_local3 = _local2.length;
_local4 = data.length;
dispatchPreChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1));
_local5 = 0;
while (_local5 < _local3) {
_local6 = _local2[_local5];
if (getItemIndex(_local6) == -1){
data.push(_local6);
};
_local5++;
};
if (data.length > _local4){
dispatchChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1));
} else {
dispatchChangeEvent(DataChangeType.ADD, [], -1, -1);
};
}
public function replaceItemAt(_arg1:Object, _arg2:uint):Object{
var _local3:Array;
checkIndex(_arg2, (data.length - 1));
_local3 = [data[_arg2]];
dispatchPreChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2);
data[_arg2] = _arg1;
dispatchChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2);
return (_local3[0]);
}
public function invalidate():void{
dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, DataChangeType.INVALIDATE_ALL, data.concat(), 0, data.length));
}
public function removeAll():void{
var _local1:Array;
_local1 = data.concat();
dispatchPreChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length);
data = [];
dispatchChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length);
}
}
}//package fl.data
Section 51
//SimpleCollectionItem (fl.data.SimpleCollectionItem)
package fl.data {
public dynamic class SimpleCollectionItem {
public var label:String;
public var data:String;
public function toString():String{
return ((((("[SimpleCollectionItem: " + label) + ",") + data) + "]"));
}
}
}//package fl.data
Section 52
//ComponentEvent (fl.events.ComponentEvent)
package fl.events {
import flash.events.*;
public class ComponentEvent extends Event {
public static const HIDE:String = "hide";
public static const BUTTON_DOWN:String = "buttonDown";
public static const MOVE:String = "move";
public static const RESIZE:String = "resize";
public static const ENTER:String = "enter";
public static const LABEL_CHANGE:String = "labelChange";
public static const SHOW:String = "show";
public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("ComponentEvent", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new ComponentEvent(type, bubbles, cancelable));
}
}
}//package fl.events
Section 53
//DataChangeEvent (fl.events.DataChangeEvent)
package fl.events {
import flash.events.*;
public class DataChangeEvent extends Event {
protected var _items:Array;
protected var _endIndex:uint;
protected var _changeType:String;
protected var _startIndex:uint;
public static const PRE_DATA_CHANGE:String = "preDataChange";
public static const DATA_CHANGE:String = "dataChange";
public function DataChangeEvent(_arg1:String, _arg2:String, _arg3:Array, _arg4:int=-1, _arg5:int=-1):void{
super(_arg1);
_changeType = _arg2;
_startIndex = _arg4;
_items = _arg3;
_endIndex = ((_arg5)==-1) ? _startIndex : _arg5;
}
public function get changeType():String{
return (_changeType);
}
public function get startIndex():uint{
return (_startIndex);
}
public function get items():Array{
return (_items);
}
override public function clone():Event{
return (new DataChangeEvent(type, _changeType, _items, _startIndex, _endIndex));
}
override public function toString():String{
return (formatToString("DataChangeEvent", "type", "changeType", "startIndex", "endIndex", "bubbles", "cancelable"));
}
public function get endIndex():uint{
return (_endIndex);
}
}
}//package fl.events
Section 54
//DataChangeType (fl.events.DataChangeType)
package fl.events {
public class DataChangeType {
public static const ADD:String = "add";
public static const REMOVE:String = "remove";
public static const REMOVE_ALL:String = "removeAll";
public static const CHANGE:String = "change";
public static const REPLACE:String = "replace";
public static const INVALIDATE:String = "invalidate";
public static const INVALIDATE_ALL:String = "invalidateAll";
public static const SORT:String = "sort";
}
}//package fl.events
Section 55
//ListEvent (fl.events.ListEvent)
package fl.events {
import flash.events.*;
public class ListEvent extends Event {
protected var _index:int;
protected var _item:Object;
protected var _columnIndex:int;
protected var _rowIndex:int;
public static const ITEM_DOUBLE_CLICK:String = "itemDoubleClick";
public static const ITEM_ROLL_OUT:String = "itemRollOut";
public static const ITEM_ROLL_OVER:String = "itemRollOver";
public static const ITEM_CLICK:String = "itemClick";
public function ListEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:Object=null){
super(_arg1, _arg2, _arg3);
_rowIndex = _arg5;
_columnIndex = _arg4;
_index = _arg6;
_item = _arg7;
}
public function get rowIndex():Object{
return (_rowIndex);
}
public function get index():int{
return (_index);
}
public function get item():Object{
return (_item);
}
public function get columnIndex():int{
return (_columnIndex);
}
override public function clone():Event{
return (new ListEvent(type, bubbles, cancelable, _columnIndex, _rowIndex));
}
override public function toString():String{
return (formatToString("ListEvent", "type", "bubbles", "cancelable", "columnIndex", "rowIndex", "index", "item"));
}
}
}//package fl.events
Section 56
//ScrollEvent (fl.events.ScrollEvent)
package fl.events {
import flash.events.*;
public class ScrollEvent extends Event {
private var _position:Number;
private var _direction:String;
private var _delta:Number;
public static const SCROLL:String = "scroll";
public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){
super(ScrollEvent.SCROLL, false, false);
_direction = _arg1;
_delta = _arg2;
_position = _arg3;
}
override public function clone():Event{
return (new ScrollEvent(_direction, _delta, _position));
}
public function get position():Number{
return (_position);
}
override public function toString():String{
return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position"));
}
public function get delta():Number{
return (_delta);
}
public function get direction():String{
return (_direction);
}
}
}//package fl.events
Section 57
//FocusManager (fl.managers.FocusManager)
package fl.managers {
import fl.core.*;
import fl.controls.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.ui.*;
public class FocusManager implements IFocusManager {
private var focusableObjects:Dictionary;
private var _showFocusIndicator:Boolean;// = true
private var defButton:Button;
private var focusableCandidates:Array;
private var _form:DisplayObjectContainer;
private var _defaultButtonEnabled:Boolean;// = true
private var activated:Boolean;// = false
private var _defaultButton:Button;
private var calculateCandidates:Boolean;// = true
private var lastFocus:InteractiveObject;
private var lastAction:String;
public function FocusManager(_arg1:DisplayObjectContainer){
activated = false;
calculateCandidates = true;
_showFocusIndicator = true;
_defaultButtonEnabled = true;
super();
focusableObjects = new Dictionary(true);
if (_arg1 != null){
_form = _arg1;
addFocusables(DisplayObject(_arg1));
_arg1.addEventListener(Event.ADDED, addedHandler);
_arg1.addEventListener(Event.REMOVED, removedHandler);
activate();
};
}
public function get showFocusIndicator():Boolean{
return (_showFocusIndicator);
}
private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{
var _local5:int;
var _local6:int;
var _local7:DisplayObject;
var _local8:IFocusManagerGroup;
var _local9:int;
var _local10:DisplayObject;
var _local11:IFocusManagerGroup;
_local5 = focusableCandidates.length;
_local6 = _arg1;
while (true) {
if (_arg2){
_arg1--;
} else {
_arg1++;
};
if (_arg3){
if (((_arg2) && ((_arg1 < 0)))){
break;
};
if (((!(_arg2)) && ((_arg1 == _local5)))){
break;
};
} else {
_arg1 = ((_arg1 + _local5) % _local5);
if (_local6 == _arg1){
break;
};
};
if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){
_local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1]));
if ((_local7 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local7);
_local9 = 0;
while (_local9 < focusableCandidates.length) {
_local10 = focusableCandidates[_local9];
if ((_local10 is IFocusManagerGroup)){
_local11 = IFocusManagerGroup(_local10);
if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){
_arg1 = _local9;
break;
};
};
_local9++;
};
};
return (_arg1);
};
};
return (_arg1);
}
public function set form(_arg1:DisplayObjectContainer):void{
_form = _arg1;
}
private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{
var focusable:IFocusManagerComponent;
var io:InteractiveObject;
var doc:DisplayObjectContainer;
var i:int;
var child:DisplayObject;
var o = _arg1;
var skipTopLevel = _arg2;
if (!skipTopLevel){
if ((o is IFocusManagerComponent)){
focusable = IFocusManagerComponent(o);
if (focusable.focusEnabled){
if (((focusable.tabEnabled) && (isTabVisible(o)))){
focusableObjects[o] = true;
calculateCandidates = true;
};
o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
} else {
if ((o is InteractiveObject)){
io = (o as InteractiveObject);
if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){
focusableObjects[io] = true;
calculateCandidates = true;
};
io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
};
};
if ((o is DisplayObjectContainer)){
doc = DisplayObjectContainer(o);
o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){
i = 0;
while (i < doc.numChildren) {
try {
child = doc.getChildAt(i);
if (child != null){
addFocusables(doc.getChildAt(i));
};
} catch(error:SecurityError) {
};
i = (i + 1);
};
};
};
}
private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{
return (_arg1.getChildIndex(_arg2));
}
private function mouseFocusChangeHandler(_arg1:FocusEvent):void{
if ((_arg1.relatedObject is TextField)){
return;
};
_arg1.preventDefault();
}
private function focusOutHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
_local2 = (_arg1.target as InteractiveObject);
}
private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{
var _local3:IFocusManagerGroup;
if (!isEnabledAndVisible(_arg1)){
return (false);
};
if ((_arg1 is IFocusManagerGroup)){
_local3 = IFocusManagerGroup(_arg1);
if (_arg2 == _local3.groupName){
return (false);
};
};
return (true);
}
public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{
var _local2:InteractiveObject;
_local2 = _arg1;
while (_arg1) {
if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
};
return (_local2);
}
private function sortFocusableObjectsTabIndex():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){
focusableCandidates.push(_local2);
};
};
focusableCandidates.sort(sortByTabIndex);
}
private function removeFocusables(_arg1:DisplayObject):void{
var _local2:Object;
var _local3:DisplayObject;
if ((_arg1 is DisplayObjectContainer)){
_arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
_arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
for (_local2 in focusableObjects) {
_local3 = DisplayObject(_local2);
if (DisplayObjectContainer(_arg1).contains(_local3)){
if (_local3 == lastFocus){
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local2];
calculateCandidates = true;
};
};
};
}
private function addedHandler(_arg1:Event):void{
var _local2:DisplayObject;
_local2 = DisplayObject(_arg1.target);
if (_local2.stage){
addFocusables(DisplayObject(_arg1.target));
};
}
private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{
while (_arg1 != InteractiveObject(form)) {
if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
if (_arg1 == null){
break;
};
};
return (null);
}
private function tabChildrenChangeHandler(_arg1:Event):void{
var _local2:DisplayObjectContainer;
if (_arg1.target != _arg1.currentTarget){
return;
};
calculateCandidates = true;
_local2 = DisplayObjectContainer(_arg1.target);
if (_local2.tabChildren){
addFocusables(_local2, true);
} else {
removeFocusables(_local2);
};
}
public function sendDefaultButtonEvent():void{
defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
public function getFocus():InteractiveObject{
var _local1:InteractiveObject;
_local1 = form.stage.focus;
return (findFocusManagerComponent(_local1));
}
private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
var _local3:TextField;
var _local4:SimpleButton;
_local2 = DisplayObject(form).parent;
while (_arg1 != _local2) {
if ((_arg1 is UIComponent)){
if (!UIComponent(_arg1).enabled){
return (false);
};
} else {
if ((_arg1 is TextField)){
_local3 = TextField(_arg1);
if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){
return (false);
};
} else {
if ((_arg1 is SimpleButton)){
_local4 = SimpleButton(_arg1);
if (!_local4.enabled){
return (false);
};
};
};
};
if (!_arg1.visible){
return (false);
};
_arg1 = _arg1.parent;
};
return (true);
}
public function set defaultButton(_arg1:Button):void{
var _local2:Button;
_local2 = (_arg1) ? Button(_arg1) : null;
if (_local2 != _defaultButton){
if (_defaultButton){
_defaultButton.emphasized = false;
};
if (defButton){
defButton.emphasized = false;
};
_defaultButton = _local2;
defButton = _local2;
if (_local2){
_local2.emphasized = true;
};
};
}
private function deactivateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
}
public function setFocus(_arg1:InteractiveObject):void{
if ((_arg1 is IFocusManagerComponent)){
IFocusManagerComponent(_arg1).setFocus();
} else {
form.stage.focus = _arg1;
};
}
private function setFocusToNextObject(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
if (!hasFocusableObjects()){
return;
};
_local2 = getNextFocusManagerComponent(_arg1.shiftKey);
if (_local2){
setFocus(_local2);
};
}
private function hasFocusableObjects():Boolean{
var _local1:Object;
for (_local1 in focusableObjects) {
return (true);
};
return (false);
}
private function tabIndexChangeHandler(_arg1:Event):void{
calculateCandidates = true;
}
private function sortFocusableObjects():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){
sortFocusableObjectsTabIndex();
return;
};
focusableCandidates.push(_local2);
};
focusableCandidates.sort(sortByDepth);
}
private function keyFocusChangeHandler(_arg1:FocusEvent):void{
showFocusIndicator = true;
if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){
setFocusToNextObject(_arg1);
_arg1.preventDefault();
};
}
private function getIndexOfFocusedObject(_arg1:DisplayObject):int{
var _local2:int;
var _local3:int;
_local2 = focusableCandidates.length;
_local3 = 0;
_local3 = 0;
while (_local3 < _local2) {
if (focusableCandidates[_local3] == _arg1){
return (_local3);
};
_local3++;
};
return (-1);
}
public function hideFocus():void{
}
private function removedHandler(_arg1:Event):void{
var _local2:int;
var _local3:DisplayObject;
var _local4:InteractiveObject;
_local3 = DisplayObject(_arg1.target);
if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){
if (_local3 == lastFocus){
IFocusManagerComponent(lastFocus).drawFocus(false);
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local3];
calculateCandidates = true;
} else {
if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){
_local4 = (_local3 as InteractiveObject);
if (_local4){
if (_local4 == lastFocus){
lastFocus = null;
};
delete focusableObjects[_local4];
calculateCandidates = true;
};
_local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
};
};
removeFocusables(_local3);
}
private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:String;
var _local7:String;
var _local8:String;
var _local9:DisplayObject;
var _local10:DisplayObject;
_local3 = "";
_local4 = "";
_local8 = "0000";
_local9 = DisplayObject(_arg1);
_local10 = DisplayObject(_arg2);
while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) {
_local5 = getChildIndex(_local9.parent, _local9);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local3 = (_local7 + _local3);
_local9 = _local9.parent;
};
while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) {
_local5 = getChildIndex(_local10.parent, _local10);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local4 = (_local7 + _local4);
_local10 = _local10.parent;
};
return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0);
}
public function get defaultButton():Button{
return (_defaultButton);
}
private function activateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
if (lastFocus){
if ((lastFocus is IFocusManagerComponent)){
IFocusManagerComponent(lastFocus).setFocus();
} else {
form.stage.focus = lastFocus;
};
};
lastAction = "ACTIVATE";
}
public function showFocus():void{
}
public function set defaultButtonEnabled(_arg1:Boolean):void{
_defaultButtonEnabled = _arg1;
}
public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{
var _local2:DisplayObject;
var _local3:String;
var _local4:int;
var _local5:Boolean;
var _local6:int;
var _local7:int;
var _local8:IFocusManagerGroup;
if (!hasFocusableObjects()){
return (null);
};
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
_local2 = form.stage.focus;
_local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2)));
_local3 = "";
if ((_local2 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local2);
_local3 = _local8.groupName;
};
_local4 = getIndexOfFocusedObject(_local2);
_local5 = false;
_local6 = _local4;
if (_local4 == -1){
if (_arg1){
_local4 = focusableCandidates.length;
};
_local5 = true;
};
_local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3);
return (findFocusManagerComponent(focusableCandidates[_local7]));
}
private function mouseDownHandler(_arg1:MouseEvent):void{
var _local2:InteractiveObject;
if (_arg1.isDefaultPrevented()){
return;
};
_local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target));
if (!_local2){
return;
};
showFocusIndicator = false;
if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){
setFocus(_local2);
};
lastAction = "MOUSEDOWN";
}
private function isTabVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
_local2 = _arg1.parent;
while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) {
if (!_local2.tabChildren){
return (false);
};
_local2 = _local2.parent;
};
return (true);
}
public function get nextTabIndex():int{
return (0);
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.TAB){
lastAction = "KEY";
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
};
if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){
sendDefaultButtonEvent();
};
}
private function focusInHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
var _local3:Button;
_local2 = InteractiveObject(_arg1.target);
if (form.contains(_local2)){
lastFocus = findFocusManagerComponent(InteractiveObject(_local2));
if ((lastFocus is Button)){
_local3 = Button(lastFocus);
if (defButton){
defButton.emphasized = false;
defButton = _local3;
_local3.emphasized = true;
};
} else {
if (((defButton) && (!((defButton == _defaultButton))))){
defButton.emphasized = false;
defButton = _defaultButton;
_defaultButton.emphasized = true;
};
};
};
}
private function tabEnabledChangeHandler(_arg1:Event):void{
var _local2:InteractiveObject;
var _local3:Boolean;
calculateCandidates = true;
_local2 = InteractiveObject(_arg1.target);
_local3 = (focusableObjects[_local2] == true);
if (_local2.tabEnabled){
if (((!(_local3)) && (isTabVisible(_local2)))){
if (!(_local2 is IFocusManagerComponent)){
_local2.focusRect = false;
};
focusableObjects[_local2] = true;
};
} else {
if (_local3){
delete focusableObjects[_local2];
};
};
}
public function set showFocusIndicator(_arg1:Boolean):void{
_showFocusIndicator = _arg1;
}
public function get form():DisplayObjectContainer{
return (_form);
}
private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{
return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2));
}
public function activate():void{
if (activated){
return;
};
form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true);
form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true);
form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true);
form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = true;
if (lastFocus){
setFocus(lastFocus);
};
}
public function deactivate():void{
form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler);
form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.removeEventListener(Event.ACTIVATE, activateHandler);
form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler);
form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = false;
}
public function get defaultButtonEnabled():Boolean{
return (_defaultButtonEnabled);
}
}
}//package fl.managers
Section 58
//IFocusManager (fl.managers.IFocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
public interface IFocusManager {
function getFocus():InteractiveObject;
function deactivate():void;
function set defaultButton(_arg1:Button):void;
function set showFocusIndicator(_arg1:Boolean):void;
function get defaultButtonEnabled():Boolean;
function get nextTabIndex():int;
function get defaultButton():Button;
function get showFocusIndicator():Boolean;
function setFocus(_arg1:InteractiveObject):void;
function activate():void;
function showFocus():void;
function set defaultButtonEnabled(_arg1:Boolean):void;
function hideFocus():void;
function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject;
function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject;
}
}//package fl.managers
Section 59
//IFocusManagerComponent (fl.managers.IFocusManagerComponent)
package fl.managers {
public interface IFocusManagerComponent {
function set focusEnabled(_arg1:Boolean):void;
function drawFocus(_arg1:Boolean):void;
function setFocus():void;
function get focusEnabled():Boolean;
function get tabEnabled():Boolean;
function get tabIndex():int;
function get mouseFocusEnabled():Boolean;
}
}//package fl.managers
Section 60
//IFocusManagerGroup (fl.managers.IFocusManagerGroup)
package fl.managers {
public interface IFocusManagerGroup {
function set groupName(_arg1:String):void;
function set selected(_arg1:Boolean):void;
function get groupName():String;
function get selected():Boolean;
}
}//package fl.managers
Section 61
//StyleManager (fl.managers.StyleManager)
package fl.managers {
import fl.core.*;
import flash.utils.*;
import flash.text.*;
public class StyleManager {
private var globalStyles:Object;
private var classToDefaultStylesDict:Dictionary;
private var styleToClassesHash:Object;
private var classToStylesDict:Dictionary;
private var classToInstancesDict:Dictionary;
private static var _instance:StyleManager;
public function StyleManager(){
styleToClassesHash = {};
classToInstancesDict = new Dictionary(true);
classToStylesDict = new Dictionary(true);
classToDefaultStylesDict = new Dictionary(true);
globalStyles = UIComponent.getStyleDefinition();
}
public static function clearComponentStyle(_arg1:Object, _arg2:String):void{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){
delete _local4[_arg2];
invalidateComponentStyle(_local3, _arg2);
};
}
private static function getClassDef(_arg1:Object):Class{
var component = _arg1;
if ((component is Class)){
return ((component as Class));
};
try {
return ((getDefinitionByName(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
if ((component is UIComponent)){
try {
return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
};
};
};
return (null);
}
public static function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Class;
var _local5:Object;
_local4 = getClassDef(_arg1);
_local5 = getInstance().classToStylesDict[_local4];
if (_local5 == null){
_local5 = (getInstance().classToStylesDict[_local4] = {});
};
if (_local5 == _arg3){
return;
};
_local5[_arg2] = _arg3;
invalidateComponentStyle(_local4, _arg2);
}
private static function setSharedStyles(_arg1:UIComponent):void{
var _local2:StyleManager;
var _local3:Class;
var _local4:Object;
var _local5:String;
_local2 = getInstance();
_local3 = getClassDef(_arg1);
_local4 = _local2.classToDefaultStylesDict[_local3];
for (_local5 in _local4) {
_arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5));
};
}
public static function getComponentStyle(_arg1:Object, _arg2:String):Object{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
return (((_local4)==null) ? null : _local4[_arg2]);
}
private static function getInstance(){
if (_instance == null){
_instance = new (StyleManager);
};
return (_instance);
}
private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{
var _local3:Dictionary;
var _local4:Object;
var _local5:UIComponent;
_local3 = getInstance().classToInstancesDict[_arg1];
if (_local3 == null){
return;
};
for (_local4 in _local3) {
_local5 = (_local4 as UIComponent);
if (_local5 == null){
} else {
_local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2));
};
};
}
private static function invalidateStyle(_arg1:String):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = getInstance().styleToClassesHash[_arg1];
if (_local2 == null){
return;
};
for (_local3 in _local2) {
invalidateComponentStyle(Class(_local3), _arg1);
};
}
public static function registerInstance(_arg1:UIComponent):void{
var inst:StyleManager;
var classDef:Class;
var target:Class;
var defaultStyles:Object;
var styleToClasses:Object;
var n:String;
var instance = _arg1;
inst = getInstance();
classDef = getClassDef(instance);
if (classDef == null){
return;
};
if (inst.classToInstancesDict[classDef] == null){
inst.classToInstancesDict[classDef] = new Dictionary(true);
target = classDef;
while (defaultStyles == null) {
if (target["getStyleDefinition"] != null){
defaultStyles = target["getStyleDefinition"]();
break;
};
try {
target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class);
} catch(err:Error) {
try {
target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class);
} catch(e:Error) {
defaultStyles = UIComponent.getStyleDefinition();
break;
};
};
};
styleToClasses = inst.styleToClassesHash;
for (n in defaultStyles) {
if (styleToClasses[n] == null){
styleToClasses[n] = new Dictionary(true);
};
styleToClasses[n][classDef] = true;
};
inst.classToDefaultStylesDict[classDef] = defaultStyles;
inst.classToStylesDict[classDef] = {};
};
inst.classToInstancesDict[classDef][instance] = true;
setSharedStyles(instance);
}
public static function getStyle(_arg1:String):Object{
return (getInstance().globalStyles[_arg1]);
}
private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{
var _local3:Class;
var _local4:StyleManager;
var _local5:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance();
_local5 = _local4.classToStylesDict[_local3][_arg2];
if (_local5 != null){
return (_local5);
};
_local5 = _local4.globalStyles[_arg2];
if (_local5 != null){
return (_local5);
};
return (_local4.classToDefaultStylesDict[_local3][_arg2]);
}
public static function setStyle(_arg1:String, _arg2:Object):void{
var _local3:Object;
_local3 = getInstance().globalStyles;
if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
_local3[_arg1] = _arg2;
invalidateStyle(_arg1);
}
}
}//package fl.managers
Section 62
//Back (fl.transitions.easing.Back)
package fl.transitions.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 63
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var begin:Number;// = NAN
private var _finish:Number;// = NAN
public var change:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 64
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var position:Number;// = NAN
public var time:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 65
//TweenFilterLite (gs2.TweenFilterLite)
package gs2 {
import flash.filters.*;
import flash.utils.*;
public class TweenFilterLite extends TweenLite {
protected var _matrix:Array;
protected var _hf:Boolean;// = false
protected var _roundProps:Boolean;
protected var _cmf:ColorMatrixFilter;
protected var _filters:Array;
protected var _endMatrix:Array;
protected var _timeScale:Number;
protected var _clrsa:Array;
public static var removeTween:Function = TweenLite.removeTween;
private static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
private static var _lumB:Number = 0.072169;
public static var delayedCall:Function = TweenLite.delayedCall;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var version:Number = 9.29;
private static var _lumG:Number = 0.71516;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _lumR:Number = 0.212671;
protected static var _globalTimeScale:Number = 1;
public function TweenFilterLite(_arg1:Object, _arg2:Number, _arg3:Object){
_filters = [];
super(_arg1, _arg2, _arg3);
if (((!((this.combinedTimeScale == 1))) && ((this.target is TweenFilterLite)))){
_timeScale = 1;
this.combinedTimeScale = _globalTimeScale;
} else {
_timeScale = this.combinedTimeScale;
this.combinedTimeScale = (this.combinedTimeScale * _globalTimeScale);
};
if (((!((this.combinedTimeScale == 1))) && (!((this.delay == 0))))){
this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale)));
};
if (TweenLite.version < 9.29){
trace("TweenFilterLite error! Please update your TweenLite class or try deleting your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
};
}
override public function killVars(_arg1:Object):void{
if (TweenLite.overwriteManager.enabled){
TweenLite.overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, ((_filters) || ([])));
};
}
override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:int;
var _local4:Object;
var _local5:Object;
var _local6:Object;
var _local7:int;
var _local8:String;
if (((!(_arg1)) && (TweenLite.overwriteManager.enabled))){
TweenLite.overwriteManager.manageOverwrites(this, masterList[this.target]);
};
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
_arg2 = (_arg2 + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter roundProps ");
_roundProps = Boolean((this.vars.roundProps is Array));
if (_isDisplayObject){
if (this.vars.blurFilter != null){
_local4 = this.vars.blurFilter;
addFilter("blurFilter", _local4, BlurFilter, ["blurX", "blurY", "quality"], new BlurFilter(0, 0, ((_local4.quality) || (2))));
};
if (this.vars.glowFilter != null){
_local4 = this.vars.glowFilter;
addFilter("glowFilter", _local4, GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new GlowFilter(0xFFFFFF, 0, 0, 0, ((_local4.strength) || (1)), ((_local4.quality) || (2)), _local4.inner, _local4.knockout));
};
if (this.vars.colorMatrixFilter != null){
_local4 = this.vars.colorMatrixFilter;
_local5 = addFilter("colorMatrixFilter", _local4, ColorMatrixFilter, [], new ColorMatrixFilter(_matrix));
_cmf = _local5.filter;
_matrix = ColorMatrixFilter(_cmf).matrix;
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_endMatrix = _local4.matrix;
} else {
if (_local4.relative == true){
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
};
_endMatrix = setBrightness(_endMatrix, _local4.brightness);
_endMatrix = setContrast(_endMatrix, _local4.contrast);
_endMatrix = setHue(_endMatrix, _local4.hue);
_endMatrix = setSaturation(_endMatrix, _local4.saturation);
_endMatrix = setThreshold(_endMatrix, _local4.threshold);
if (!isNaN(_local4.colorize)){
_endMatrix = colorize(_endMatrix, _local4.colorize, _local4.amount);
} else {
if (!isNaN(_local4.color)){
_endMatrix = colorize(_endMatrix, _local4.color, _local4.amount);
};
};
};
_local3 = 0;
while (_local3 < _endMatrix.length) {
if (((!((_matrix[_local3] == _endMatrix[_local3]))) && (!((_matrix[_local3] == undefined))))){
this.tweens[this.tweens.length] = [_matrix, _local3.toString(), _matrix[_local3], (_endMatrix[_local3] - _matrix[_local3]), "colorMatrixFilter"];
};
_local3++;
};
};
if (this.vars.dropShadowFilter != null){
_local4 = this.vars.dropShadowFilter;
addFilter("dropShadowFilter", _local4, DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_local4.quality) || (2)), _local4.inner, _local4.knockout, _local4.hideObject));
};
if (this.vars.bevelFilter != null){
_local4 = this.vars.bevelFilter;
addFilter("bevelFilter", _local4, BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_local4.quality) || (2))));
};
if (this.vars.runBackwards == true){
_local3 = (_clrsa.length - 1);
while (_local3 > -1) {
_local6 = _clrsa[_local3];
_clrsa[_local3].sr = (_local6.sr + _local6.cr);
_local6.cr = (_local6.cr * -1);
_local6.sg = (_local6.sg + _local6.cg);
_local6.cg = (_local6.cg * -1);
_local6.sb = (_local6.sb + _local6.cb);
_local6.cb = (_local6.cb * -1);
_local6.f[_local6.p] = (((_local6.sr << 16) | (_local6.sg << 8)) | _local6.sb);
_local3--;
};
};
super.initTweenVals(true, _arg2);
} else {
super.initTweenVals(_arg1, _arg2);
};
if (_roundProps){
_local3 = (this.vars.roundProps.length - 1);
while (_local3 > -1) {
_local8 = this.vars.roundProps[_local3];
_local7 = (this.tweens.length - 1);
while (_local7 > -1) {
if ((((this.tweens[_local7][1] == _local8)) && ((this.tweens[_local7][0] == this.target)))){
this.tweens[_local7][5] = true;
break;
};
_local7--;
};
_local3--;
};
};
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
if (_arg1){
this.combinedTimeScale = (_timeScale * _globalTimeScale);
};
}
public function set timeScale(_arg1:Number):void{
if (_arg1 < 1E-5){
_arg1 = (_timeScale = 1E-5);
} else {
_timeScale = _arg1;
_arg1 = (_arg1 * _globalTimeScale);
};
this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1)));
if (this.startTime != 999999999999999){
this.startTime = (this.initTime + (this.delay * (1000 / _arg1)));
};
this.combinedTimeScale = _arg1;
}
public function get timeScale():Number{
return (_timeScale);
}
override public function render(_arg1:uint):void{
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local6:Number;
var _local7:int;
var _local8:Array;
var _local9:int;
var _local2:Number = (((_arg1 - this.startTime) * 0.001) * this.combinedTimeScale);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
if (!_roundProps){
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3]));
_local5--;
};
} else {
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
if (_local4[5]){
_local6 = (_local4[2] + (_local3 * _local4[3]));
_local7 = ((_local6)<0) ? -1 : 1;
_local4[0][_local4[1]] = ((((_local6 % 1) * _local7))>0.5) ? (int(_local6) + _local7) : int(_local6);
} else {
_local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3]));
};
_local5--;
};
};
if (_hf){
_local5 = (_clrsa.length - 1);
while (_local5 > -1) {
_local4 = _clrsa[_local5];
_local4.f[_local4.p] = ((((_local4.sr + (_local3 * _local4.cr)) << 16) | ((_local4.sg + (_local3 * _local4.cg)) << 8)) | (_local4.sb + (_local3 * _local4.cb)));
_local5--;
};
if (_cmf != null){
ColorMatrixFilter(_cmf).matrix = _matrix;
};
_local8 = this.target.filters;
_local5 = 0;
while (_local5 < _filters.length) {
_local9 = (_local8.length - 1);
while (_local9 > -1) {
if ((_local8[_local9] is _filters[_local5].type)){
_local8.splice(_local9, 1, _filters[_local5].filter);
break;
};
_local9--;
};
_local5++;
};
this.target.filters = _local8;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5], _local2);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
private function addFilter(_arg1:String, _arg2:Object, _arg3:Class, _arg4:Array, _arg5:BitmapFilter):Object{
var _local8:int;
var _local9:String;
var _local10:Number;
var _local11:Object;
var _local12:Object;
var _local6:Object = {type:_arg3, name:_arg1};
var _local7:Array = this.target.filters;
_local8 = 0;
while (_local8 < _local7.length) {
if ((_local7[_local8] is _arg3)){
_local6.filter = _local7[_local8];
break;
};
_local8++;
};
if (_local6.filter == undefined){
_local6.filter = _arg5;
_local7[_local7.length] = _local6.filter;
this.target.filters = _local7;
};
_local8 = 0;
while (_local8 < _arg4.length) {
_local9 = _arg4[_local8];
if (_arg2[_local9] != undefined){
if ((((((_local9 == "color")) || ((_local9 == "highlightColor")))) || ((_local9 == "shadowColor")))){
_local11 = HEXtoRGB(_local6.filter[_local9]);
_local12 = HEXtoRGB(_arg2[_local9]);
_clrsa[_clrsa.length] = {f:_local6.filter, p:_local9, sr:_local11.rb, cr:(_local12.rb - _local11.rb), sg:_local11.gb, cg:(_local12.gb - _local11.gb), sb:_local11.bb, cb:(_local12.bb - _local11.bb)};
} else {
if ((((((((_local9 == "quality")) || ((_local9 == "inner")))) || ((_local9 == "knockout")))) || ((_local9 == "hideObject")))){
_local6.filter[_local9] = _arg2[_local9];
} else {
if (typeof(_arg2[_local9]) == "number"){
_local10 = (_arg2[_local9] - _local6.filter[_local9]);
} else {
_local10 = Number(_arg2[_local9]);
};
this.tweens[this.tweens.length] = [_local6.filter, _local9, _local6.filter[_local9], _local10, _arg1];
};
};
};
_local8++;
};
_filters[_filters.length] = _local6;
_hf = true;
return (_local6);
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
var _local3:Number = Math.cos(_arg2);
var _local4:Number = Math.sin(_arg2);
var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
var _local3:Array = [];
var _local4:int;
var _local5:int;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF);
var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF);
var _local6:Number = ((_arg2 & 0xFF) / 0xFF);
var _local7:Number = (1 - _arg3);
var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Number = (1 - _arg2);
var _local4:Number = (_local3 * _lumR);
var _local5:Number = (_local3 * _lumG);
var _local6:Number = (_local3 * _lumB);
var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function setGlobalTimeScale(_arg1:Number):void{
var _local3:int;
var _local4:Array;
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
var _local2:Dictionary = masterList;
_globalTimeScale = _arg1;
for each (_local4 in _local2) {
_local3 = (_local4.length - 1);
while (_local3 > -1) {
if ((_local4[_local3] is TweenFilterLite)){
_local4[_local3].timeScale = (_local4[_local3].timeScale * 1);
};
_local3--;
};
};
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
_arg3.runBackwards = true;
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
public static function set globalTimeScale(_arg1:Number):void{
setGlobalTimeScale(_arg1);
}
public static function HEXtoRGB(_arg1:Number):Object{
return ({rb:(_arg1 >> 16), gb:((_arg1 >> 8) & 0xFF), bb:(_arg1 & 0xFF)});
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
}
}//package gs2
Section 66
//TweenLite (gs2.TweenLite)
package gs2 {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.geom.*;
public class TweenLite {
public var started:Boolean;
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _subTweens:Array;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
protected var _hst:Boolean;
public var gc:Boolean;
protected var _isDisplayObject:Boolean;
public var tweens:Array;
public var vars:Object;
public var ease:Function;
protected var _specialVars:Object;
public var initTime:Number;
public var combinedTimeScale:Number;
private static var _timer:Timer = new Timer(2000);
private static var _classInitted:Boolean;
public static var defaultEase:Function = TweenLite.easeOut;
public static var version:Number = 9.29;
public static var masterList:Dictionary = new Dictionary(false);
public static var currentTime:uint;
public static var overwriteManager:Object;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
if (_arg1 == null){
return;
};
if (!_classInitted){
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();
_classInitted = 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;
_isDisplayObject = Boolean((_arg1 is DisplayObject));
if (!(this.vars.ease is 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;
if (!isNaN(Number(this.vars.autoAlpha))){
this.vars.alpha = Number(this.vars.autoAlpha);
this.vars.visible = Boolean((this.vars.alpha > 0));
};
_specialVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars;
this.tweens = [];
_subTweens = [];
_hst = (this.initted = false);
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if ((((masterList[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){
masterList[_arg1] = [];
};
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 (((((!((_specialVars.visible == null))) && ((this.vars.runBackwards == true)))) && (_isDisplayObject))){
this.target.visible = _specialVars.visible;
};
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function render(_arg1:uint):void{
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local2:Number = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3]));
_local5--;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5], _local2);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (masterList[this.target] == undefined){
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){
masterList[this.target].push(this);
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
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 clear():void{
this.tweens = [];
_subTweens = [];
this.vars = {};
_hst = (_hasUpdate = false);
}
protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{
var _local6:String;
_subTweens[_subTweens.length] = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5};
for (_local6 in _arg4) {
if (typeof(_arg4[_local6]) == "number"){
this.tweens[this.tweens.length] = [_arg3, _local6, _arg3[_local6], (_arg4[_local6] - _arg3[_local6]), _arg1];
} else {
this.tweens[this.tweens.length] = [_arg3, _local6, _arg3[_local6], Number(_arg4[_local6]), _arg1];
};
};
_hst = true;
}
public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:String;
var _local4:int;
var _local5:Array;
var _local6:ColorTransform;
var _local7:ColorTransform;
var _local8:Object;
if (((!(_arg1)) && (overwriteManager.enabled))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
if ((this.target is Array)){
_local5 = ((this.vars.endArray) || ([]));
_local4 = 0;
while (_local4 < _local5.length) {
if (((!((this.target[_local4] == _local5[_local4]))) && (!((this.target[_local4] == undefined))))){
this.tweens[this.tweens.length] = [this.target, _local4.toString(), this.target[_local4], (_local5[_local4] - this.target[_local4]), _local4.toString()];
};
_local4++;
};
} else {
if (((((!((typeof(_specialVars.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){
_local6 = this.target.transform.colorTransform;
_local7 = new ColorTransform();
if (_specialVars.alpha != undefined){
_local7.alphaMultiplier = _specialVars.alpha;
delete _specialVars.alpha;
} else {
_local7.alphaMultiplier = this.target.alpha;
};
if (((!((this.vars.removeTint == true))) && (((((!((_specialVars.tint == null))) && (!((_specialVars.tint == ""))))) || ((_specialVars.tint == 0)))))){
_local7.color = _specialVars.tint;
};
addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local6, endColor:_local7});
};
if (((!((_specialVars.frame == null))) && (_isDisplayObject))){
addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_specialVars.frame}, {target:this.target});
};
if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){
addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target});
};
if (((!((_specialVars.visible == null))) && (_isDisplayObject))){
addSubTween("visible", visibleProxy, {}, {}, {tween:this});
};
for (_local3 in _specialVars) {
if ((((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((((_local3 == "timeScale")) && (!((this.target is TweenLite))))))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){
} else {
if (((!(((_isDisplayObject) && ((((((_local3 == "tint")) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){
if (typeof(_specialVars[_local3]) == "number"){
this.tweens[this.tweens.length] = [this.target, _local3, this.target[_local3], (_specialVars[_local3] - this.target[_local3]), _local3];
} else {
this.tweens[this.tweens.length] = [this.target, _local3, this.target[_local3], Number(_specialVars[_local3]), _local3];
};
};
};
};
};
if (this.vars.runBackwards == true){
_local4 = (this.tweens.length - 1);
while (_local4 > -1) {
_local8 = this.tweens[_local4];
_local8[2] = (_local8[2] + _local8[3]);
_local8[3] = (_local8[3] * -1);
_local4--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
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.vars, this.tweens, _subTweens, []);
};
}
public function complete(_arg1:Boolean=false):void{
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function frameProxy(_arg1:Object, _arg2:Number=0):void{
_arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame));
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function visibleProxy(_arg1:Object, _arg2:Number):void{
var _local3:TweenLite = _arg1.info.tween;
if (_local3.duration == _arg2){
if (((!((_local3.vars.runBackwards == true))) && ((_local3.ease == _local3.vars.ease)))){
_local3.target.visible = _local3.vars.visible;
};
} else {
if (_local3.target.visible != true){
_local3.target.visible = true;
};
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && (!((masterList[_arg1] == undefined))))){
_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 updateAll(_arg1:Event=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
var _local2:uint = (currentTime = getTimer());
var _local3:Dictionary = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6 == null){
} else {
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 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 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));
}
public static function tintProxy(_arg1:Object, _arg2:Number=0):void{
var _local3:Number = _arg1.target.progress;
var _local4:Number = (1 - _local3);
var _local5:Object = _arg1.info.color;
var _local6:Object = _arg1.info.endColor;
_arg1.info.target.transform.colorTransform = new ColorTransform(((_local5.redMultiplier * _local4) + (_local6.redMultiplier * _local3)), ((_local5.greenMultiplier * _local4) + (_local6.greenMultiplier * _local3)), ((_local5.blueMultiplier * _local4) + (_local6.blueMultiplier * _local3)), ((_local5.alphaMultiplier * _local4) + (_local6.alphaMultiplier * _local3)), ((_local5.redOffset * _local4) + (_local6.redOffset * _local3)), ((_local5.greenOffset * _local4) + (_local6.greenOffset * _local3)), ((_local5.blueOffset * _local4) + (_local6.blueOffset * _local3)), ((_local5.alphaOffset * _local4) + (_local6.alphaOffset * _local3)));
}
public static function volumeProxy(_arg1:Object, _arg2:Number=0):void{
_arg1.info.target.soundTransform = _arg1.target;
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local3:Object;
var _local4:Array;
var _local2:Dictionary = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs2
Section 67
//areReady_173 (Santa2v1_fla.areReady_173)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class areReady_173 extends MovieClip {
public function areReady_173(){
addFrameScript(0, frame1, 173, frame174);
}
function frame174(){
stop();
this["visible"] = false;
}
function frame1(){
stop();
}
}
}//package Santa2v1_fla
Section 68
//assets_12 (Santa2v1_fla.assets_12)
package Santa2v1_fla {
import flash.display.*;
public dynamic class assets_12 extends MovieClip {
public function assets_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Santa2v1_fla
Section 69
//ButtonClose_78 (Santa2v1_fla.ButtonClose_78)
package Santa2v1_fla {
import flash.display.*;
public dynamic class ButtonClose_78 extends MovieClip {
public function ButtonClose_78(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package Santa2v1_fla
Section 70
//encoreMC_171 (Santa2v1_fla.encoreMC_171)
package Santa2v1_fla {
import flash.display.*;
public dynamic class encoreMC_171 extends MovieClip {
public var encoreb:MovieClip;
public function encoreMC_171(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package Santa2v1_fla
Section 71
//EnterYourName_72 (Santa2v1_fla.EnterYourName_72)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import com.gamenode.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class EnterYourName_72 extends MovieClip {
public var uneta:MovieClip;
public var textFormat:TextFormat;
public var mc_panel_login:MovieClip;
public var timer:Timer;
public var btn_next:MovieClip;
public var nameInput:TextField;
public function EnterYourName_72(){
addFrameScript(0, frame1);
}
public function pollForUserData(_arg1:Event){
GameNodeAPI.pollUserData();
if (GameNodeAPI.member){
timer.removeEventListener("timer", pollForUserData);
continueGame();
};
}
function frame1(){
textFormat = new TextFormat();
textFormat.size = 36;
textFormat.color = 0xFFFFFF;
nameInput = new TextField();
nameInput.type = TextFieldType.INPUT;
nameInput.defaultTextFormat = textFormat;
nameInput.x = 144;
nameInput.y = 218;
nameInput.width = 350;
nameInput.height = 70;
nameInput.text = "Your Name";
nameInput.background = false;
nameInput.maxChars = 15;
nameInput.restrict = "A-z0-9 ";
this.addChild(nameInput);
stage.focus = nameInput;
nameInput.setSelection(20, 20);
btn_next.addEventListener(MouseEvent.CLICK, setName);
if (GameNodeAPI.allowedDomain){
if (GameNodeAPI.member){
continueGame();
} else {
timer = new Timer(1000);
timer.addEventListener("timer", pollForUserData);
timer.start();
};
};
}
public function setName(_arg1:Event):void{
if (nameInput.text != ""){
GameNodeAPI.userName = nameInput.text;
continueGame();
};
}
public function continueGame():void{
trace("PERO Q WEA POR LA SHUSHA PORQUE NO SALTO");
var _local1 = root["menu"];
_local1["menuFinName"]("panelName");
}
}
}//package Santa2v1_fla
Section 72
//Finaldemierda_180 (Santa2v1_fla.Finaldemierda_180)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Finaldemierda_180 extends MovieClip {
public function Finaldemierda_180(){
addFrameScript(560, frame561);
}
function frame561(){
stop();
root["storyBack"] = false;
root["quickBack"] = false;
var _local1 = root;
_local1["gotoAndStop"]("main");
}
}
}//package Santa2v1_fla
Section 73
//gorro_64 (Santa2v1_fla.gorro_64)
package Santa2v1_fla {
import flash.display.*;
public dynamic class gorro_64 extends MovieClip {
public function gorro_64(){
addFrameScript(119, frame120, 178, frame179, 269, frame270);
}
function frame120(){
gotoAndPlay("parpadeo");
}
function frame270(){
stop();
}
function frame179(){
stop();
}
}
}//package Santa2v1_fla
Section 74
//guitarraCrashMC_149 (Santa2v1_fla.guitarraCrashMC_149)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class guitarraCrashMC_149 extends MovieClip {
public function guitarraCrashMC_149(){
addFrameScript(0, frame1, 154, frame155);
}
function frame155(){
stop();
root["tryAgain"].visible = true;
}
function frame1(){
stop();
}
}
}//package Santa2v1_fla
Section 75
//Highscore_168 (Santa2v1_fla.Highscore_168)
package Santa2v1_fla {
import fl.controls.*;
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import com.gamenode.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Highscore_168 extends MovieClip {
public var color:String;
public var mc_nosave:MovieClip;
public var rank:String;
public var highscoreHTML:String;
public var highscoreText:TextArea;
public function Highscore_168(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
highscoreText = new TextArea();
highscoreText.x = 120;
highscoreText.y = 197;
highscoreText.width = 345;
highscoreText.height = 273;
highscoreText.editable = false;
addChild(highscoreText);
highscoreText.htmlText = "<font face=\"Verdana\" size=\"13\" color=\"#FFFFFF\"><b>Loading...</b></font>";
if (GameNodeAPI.member){
trace("submitting");
GameNodeAPI.submitHighscore(getHighscore);
} else {
getHighscore(new Object());
};
}
public function displayHighscores(_arg1:Boolean, _arg2:Array):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:int;
var _local7:String;
if (((!((_arg2 == null))) && ((_arg2.length > 0)))){
_local3 = _arg2.length;
_local4 = 0;
_local5 = 0;
_local6 = 1;
highscoreHTML = "<textformat tabstops=\"[35,260]\"><font face=\"Verdana\" size=\"13\" color=\"#FFFFFF\">";
if (GameNodeAPI.member){
_local6 = 1;
while (_local6 < _local3) {
_arg2[_local6]["name"] = _arg2[_local6]["name"].replace(" ", " ");
if ((((GameNodeAPI.score == _arg2[_local6]["score"])) && ((GameNodeAPI.userName == _arg2[_local6]["name"])))){
highscoreHTML = (highscoreHTML + (((((("<font color=\"#00FF00\"><b>" + _local6) + "\t") + _arg2[_local6]["name"]) + "\t") + _arg2[_local6]["score"]) + "</b></font><br>"));
_local4 = 1;
_local5 = (_local6 - 7);
} else {
highscoreHTML = (highscoreHTML + (((((_local6 + "\t") + _arg2[_local6]["name"]) + "\t") + _arg2[_local6]["score"]) + "<br>"));
};
_local6++;
};
} else {
_local6 = 1;
while (_local6 < _local3) {
_arg2[_local6]["name"] = _arg2[_local6]["name"].replace(" ", " ");
if ((((GameNodeAPI.score > _arg2[_local6]["score"])) && ((_local4 == 0)))){
_local7 = GameNodeAPI.userName.replace(" ", " ");
highscoreHTML = (highscoreHTML + (((((("<font color=\"#00FF00\"><b>" + _local6) + "\t") + _local7) + "\t") + GameNodeAPI.score) + "</b></font><br>"));
_local4 = 1;
_local5 = (_local6 - 7);
if (_local3 >= 999){
_local3--;
};
highscoreHTML = (highscoreHTML + ((((((_local6 + _local4) + "\t") + _arg2[_local6]["name"]) + "\t") + _arg2[_local6]["score"]) + "<br>"));
} else {
highscoreHTML = (highscoreHTML + ((((((_local6 + _local4) + "\t") + _arg2[_local6]["name"]) + "\t") + _arg2[_local6]["score"]) + "<br>"));
};
_local6++;
};
};
if (_local4 == 0){
if (_local6 > 99){
rank = "---";
color = "#FF0000";
} else {
rank = String(_local6);
color = "#00FF00";
};
highscoreHTML = (highscoreHTML + (((((((("<font color=\"" + color) + "\"><b>") + rank) + "\t") + GameNodeAPI.userName) + "\t") + GameNodeAPI.score) + "</b></font><br>"));
_local5 = _local6;
};
highscoreHTML = (highscoreHTML + "</font></textformat>");
highscoreText.htmlText = highscoreHTML;
highscoreText.verticalScrollPosition = _local5;
} else {
highscoreText.htmlText = "<font face=\"Verdana\" size=\"13\" color=\"#FFFFFF\"><b>Highscores are currentlty not available</b></font>";
};
}
public function getHighscore(_arg1:Object):void{
trace(("Getting highscores: " + GameNodeAPI.level));
GameNodeAPI.getHighscores(GameNodeAPI.level, 100, false, displayHighscores);
}
}
}//package Santa2v1_fla
Section 76
//hostthisgame_33 (Santa2v1_fla.hostthisgame_33)
package Santa2v1_fla {
import flash.display.*;
public dynamic class hostthisgame_33 extends MovieClip {
public function hostthisgame_33(){
addFrameScript(5, frame6, 10, frame11);
}
function frame6(){
stop();
}
function frame11(){
stop();
}
}
}//package Santa2v1_fla
Section 77
//introMC_52 (Santa2v1_fla.introMC_52)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class introMC_52 extends MovieClip {
public function introMC_52(){
addFrameScript(0, frame1, 960, frame961);
}
function frame1(){
stop();
}
function frame961(){
stop();
root["stage"]["frameRate"] = 100;
var _local1 = root["menu"];
_local1["gotoAndPlay"]("storymode");
}
}
}//package Santa2v1_fla
Section 78
//logo_7 (Santa2v1_fla.logo_7)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class logo_7 extends MovieClip {
public var gourl:SimpleButton;
public function logo_7(){
addFrameScript(0, frame1);
}
public function irweb(_arg1:Event):void{
var ev = _arg1;
var request:URLRequest = new URLRequest("http://www.bekhoteam.net/");
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
function frame1(){
this.gourl.addEventListener(MouseEvent.CLICK, irweb);
}
}
}//package Santa2v1_fla
Section 79
//LOGOINTRO_6 (Santa2v1_fla.LOGOINTRO_6)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import bitfade.text.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class LOGOINTRO_6 extends MovieClip {
public var config:XML;
public var logofix:MovieClip;
public function LOGOINTRO_6(){
addFrameScript(0, frame1);
}
public function SegundaAnimacion(){
Tweener.addTween(logofix, {alpha:1, time:3.5, transition:"easeOutExpo", onComplete:terceraAnimacion});
}
public function terceraAnimacion(){
Tweener.addTween(logofix, {alpha:0, time:2, transition:"easeOutExpo", onComplete:terminar});
}
public function terminar(){
root["stage"]["frameRate"] = 100;
root["stage"]["quality"] = StageQuality.HIGH;
var _local1 = root;
_local1["destruyeEventoBekho"]();
MovieClip(this.parent).play();
}
function frame1(){
config = <config noloop="true">
<transition duration="2" delay="3" glow="110" color="ocean" glowIntensity="2">
<item type="class">logo</item>
</transition>
</config>
;
addChild(new blurGlow(config));
logofix.x = ((stage.width / 2) - 5);
logofix.y = ((stage.height / 2) - 33);
logofix.scaleX = 3;
logofix.scaleY = 3;
setChildIndex(logofix, (numChildren - 1));
Tweener.addTween(logofix, {scaleX:1, scaleY:1, time:0.6, transition:"easeOutExpo", onComplete:SegundaAnimacion});
}
}
}//package Santa2v1_fla
Section 80
//mainMenu_23 (Santa2v1_fla.mainMenu_23)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import com.gamenode.*;
import CPMStar.*;
import caurina.transitions.properties.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class mainMenu_23 extends MovieClip {
public var b11:MovieClip;
public var b12:MovieClip;
public var b13:MovieClip;
public var fondo:MovieClip;
public var opcion2f:Boolean;
public var opcion2i:Boolean;
public var b21:MovieClip;
public var b22:MovieClip;
public var ad:DisplayObject;
public var gnb2:MovieClip;
public var opcion3f:Boolean;
public var b31:MovieClip;
public var b32:MovieClip;
public var opcion3i:Boolean;
public var gorro:MovieClip;
public var panelQuick:MovieClip;
public var objetos:MovieClip;
public var panelStory:MovieClip;
public var opcion4f:Boolean;
public var uneta:MovieClip;
public var gnb:MovieClip;
public var b41:MovieClip;
public var b42:MovieClip;
public var opcion4i:Boolean;
public var intro:MovieClip;
public var punto1:MovieClip;
public var punto2:MovieClip;
public var url:String;
public var punto4:MovieClip;
public var punto5:MovieClip;
public var punto3:MovieClip;
public var opcion5f:Boolean;
public var opcion5i:Boolean;
public var request2:URLRequest;
public var request3:URLRequest;
public var b51:MovieClip;
public var request:URLRequest;
public var b61:MovieClip;
public var b62:MovieClip;
public var url2:String;
public var url3:String;
public var url4:String;
public var request4:URLRequest;
public var adBox:MovieClip;
public var logo:MovieClip;
public var palabras:MovieClip;
public var menub6:MovieClip;
public var b71:MovieClip;
public var gamenodeLogo:MovieClip;
public var gente:MovieClip;
public var skipb:MovieClip;
public var p6:MovieClip;
public var p7:MovieClip;
public var panelName:MovieClip;
public var b81:MovieClip;
public var CPMStarContentSpotID:String;
public var panelDifficulty:MovieClip;
public var bekhoLogo:MovieClip;
public var panelLevel:MovieClip;
public var panelScore:MovieClip;
public var panelCredits:MovieClip;
public var uneta2:MovieClip;
public var opcion1f:Boolean;
public var opcion1i:Boolean;
public function mainMenu_23(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11);
}
public function menuIni(){
panelCredits.alpha = 0;
Tweener.addTween(panelCredits, {alpha:1, time:1.5, delay:0});
}
public function comienzaQuickPlay(_arg1:Number){
var cancion = _arg1;
root["stage"]["quality"] = StageQuality.LOW;
root["playintros"].stop();
try {
var _local3 = root;
_local3["removeChild"](root["mySnow"]);
} catch(e:Error) {
};
try {
root["playloops"].stop();
} catch(e:Error) {
};
root["Level"] = cancion;
_local3 = root;
_local3["gotoAndStop"]("juego");
trace(cancion);
}
public function gamenodeEvent(_arg1:MouseEvent):void{
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(0);
};
}
public function scores(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
if (opcion4i == false){
palabras.gotoAndPlay("b4playi");
opcion4i = true;
opcion4f = false;
uneta.x = punto4.x;
uneta.y = punto4.y;
uneta.visible = true;
root["playeles"] = root["eles"].play();
};
} else {
if (_arg1.type == "mouseOut"){
if (opcion4f == false){
palabras.gotoAndPlay("b4playf");
opcion4f = true;
opcion4i = false;
uneta.visible = false;
};
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
gotoAndStop("Main menu highscores");
};
};
};
}
public function menuFin(_arg1:String){
Tweener.addTween(this[_arg1], {alpha:0, time:1, delay:0});
Tweener.addTween(this[_arg1], {time:0, delay:0.6, onComplete:gotoAndStop, onCompleteParams:["mainmenu"]});
}
function frame10(){
stop();
stop();
menuIni5();
trace("q wea");
stop();
}
function frame11(){
stop();
menuIni6();
}
public function menuJugador(){
menub6.stop();
opcion1i = true;
opcion2i = false;
opcion3i = false;
opcion4i = false;
opcion5i = false;
opcion1f = false;
opcion2f = false;
opcion3f = false;
opcion4f = false;
opcion5f = false;
uneta.x = punto1.x;
uneta.y = punto1.y;
b11.addEventListener(MouseEvent.MOUSE_OVER, playmore);
b11.addEventListener(MouseEvent.MOUSE_OUT, playmore);
b11.addEventListener(MouseEvent.CLICK, playmore);
b12.addEventListener(MouseEvent.MOUSE_OVER, playmore);
b12.addEventListener(MouseEvent.MOUSE_OUT, playmore);
b12.addEventListener(MouseEvent.CLICK, playmore);
b13.addEventListener(MouseEvent.MOUSE_OVER, playmore);
b13.addEventListener(MouseEvent.MOUSE_OUT, playmore);
b13.addEventListener(MouseEvent.CLICK, playmore);
b21.addEventListener(MouseEvent.MOUSE_OVER, storygame);
b21.addEventListener(MouseEvent.MOUSE_OUT, storygame);
b21.addEventListener(MouseEvent.CLICK, storygame);
b22.addEventListener(MouseEvent.MOUSE_OVER, storygame);
b22.addEventListener(MouseEvent.MOUSE_OUT, storygame);
b22.addEventListener(MouseEvent.CLICK, storygame);
b31.addEventListener(MouseEvent.MOUSE_OVER, quickplay);
b31.addEventListener(MouseEvent.MOUSE_OUT, quickplay);
b31.addEventListener(MouseEvent.CLICK, quickplay);
b32.addEventListener(MouseEvent.MOUSE_OVER, quickplay);
b32.addEventListener(MouseEvent.MOUSE_OUT, quickplay);
b32.addEventListener(MouseEvent.CLICK, quickplay);
b41.addEventListener(MouseEvent.MOUSE_OVER, scores);
b41.addEventListener(MouseEvent.MOUSE_OUT, scores);
b41.addEventListener(MouseEvent.CLICK, scores);
b42.addEventListener(MouseEvent.MOUSE_OVER, scores);
b42.addEventListener(MouseEvent.MOUSE_OUT, scores);
b42.addEventListener(MouseEvent.CLICK, scores);
b51.addEventListener(MouseEvent.MOUSE_OVER, credits);
b51.addEventListener(MouseEvent.MOUSE_OUT, credits);
b51.addEventListener(MouseEvent.CLICK, credits);
b61.buttonMode = true;
b62.buttonMode = true;
b61.addEventListener(MouseEvent.MOUSE_OVER, getsound);
b61.addEventListener(MouseEvent.MOUSE_OUT, getsound);
b61.addEventListener(MouseEvent.CLICK, getsound);
b62.addEventListener(MouseEvent.MOUSE_OVER, getsound);
b62.addEventListener(MouseEvent.MOUSE_OUT, getsound);
b62.addEventListener(MouseEvent.CLICK, getsound);
b71.addEventListener(MouseEvent.MOUSE_OVER, usecontroller);
b71.addEventListener(MouseEvent.MOUSE_OUT, usecontroller);
b71.addEventListener(MouseEvent.CLICK, usecontroller);
b71.buttonMode = true;
b81.addEventListener(MouseEvent.MOUSE_OVER, hostgame);
b81.addEventListener(MouseEvent.MOUSE_OUT, hostgame);
b81.addEventListener(MouseEvent.CLICK, hostgame);
b81.buttonMode = true;
gnb.addEventListener(MouseEvent.CLICK, gamenodeEvent);
gnb2.addEventListener(MouseEvent.CLICK, gamenodeEvent2);
gnb.buttonMode = true;
gnb2.buttonMode = true;
}
function frame1(){
root["stage"]["quality"] = StageQuality.HIGH;
menuJugador();
stop();
uneta2.visible = false;
url = "http://www.bekhoteam.net/santa2web";
request = new URLRequest(url);
url2 = "http://www.bekhoteam.net/santa2web/playguitar";
request2 = new URLRequest(url2);
url3 = "http://www.gamenode.com/games-for-your-website";
request3 = new URLRequest(url3);
url4 = "http://www.gamenode.com";
request4 = new URLRequest(url4);
stop();
}
function frame2(){
stop();
menuIni();
}
public function storygame(_arg1:MouseEvent):void{
var _local2:*;
if (_arg1.type == "mouseOver"){
if (opcion2i == false){
palabras.gotoAndPlay("b2playi");
opcion2i = true;
opcion2f = false;
uneta.x = punto2.x;
uneta.y = punto2.y;
uneta.visible = true;
root["playeles"] = root["eles"].play();
};
} else {
if (_arg1.type == "mouseOut"){
if (opcion2f == false){
palabras.gotoAndPlay("b2playf");
opcion2f = true;
opcion2i = false;
uneta.visible = false;
};
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
root["Level"] = 1;
root["score"] = 0;
root["flagCPM"] = false;
root["flagCPMR"] = false;
_local2 = 1;
while (_local2 <= 12) {
root["pasadas"][_local2] = false;
root[("levelMarcado" + _local2)] = false;
root[("levelPasado" + _local2)] = false;
_local2++;
};
MochiBot.track(this, "5c072ca8");
root["storyMode"] = true;
gotoAndStop("Enter Name");
};
};
};
}
function frame5(){
stop();
menuIni4();
}
function frame6(){
uneta.visible = false;
menuSkip();
stop();
stop();
}
function frame8(){
stop();
root["playMusicIntro"].stop();
clearInterval(root["hiloViaje"]);
root["hiloViaje"] = setInterval(viaje, 8000);
posibleViaje();
if (root["flagCPM"] == false){
CPMStarContentSpotID = "1214QA53FC5A0";
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
root["flagCPM"] = true;
};
}
function frame9(){
stop();
trace("pase por aqyu cincgetyrnare");
var _local1 = root;
_local1["tocaLoops"]();
}
public function getsound(_arg1:MouseEvent):void{
var e = _arg1;
if (e.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.x = p6.x;
uneta.y = p6.y;
uneta.visible = true;
} else {
if (e.type == "mouseOut"){
uneta.visible = false;
} else {
if (e.type == "click"){
root["playapres"] = root["apres"].play();
MochiBot.track(this, "a1d7227c");
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
};
};
};
}
public function usecontroller(_arg1:MouseEvent):void{
var e = _arg1;
if (e.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.x = p7.x;
uneta.y = p7.y;
uneta.visible = true;
} else {
if (e.type == "mouseOut"){
uneta.visible = false;
} else {
if (e.type == "click"){
root["playapres"] = root["apres"].play();
MochiBot.track(this, "656edbd6");
try {
navigateToURL(request2, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
};
};
};
}
public function menuFin3(_arg1:String){
Tweener.addTween(this[_arg1], {alpha:0, time:1, delay:0});
if (root["storyMode"] == true){
root["Level"] = 1;
Tweener.addTween(this[_arg1], {time:0, delay:0.6, onComplete:gotoAndStop, onCompleteParams:["preIntro"]});
} else {
Tweener.addTween(this[_arg1], {time:0, delay:0.6, onComplete:gotoAndStop, onCompleteParams:["quickplay"]});
};
}
public function menuFin4(_arg1:String){
Tweener.addTween(this[_arg1], {alpha:0, time:1, delay:0});
Tweener.addTween(this[_arg1], {time:0, delay:0.6, onComplete:gotoAndStop, onCompleteParams:["mode"]});
}
public function menuFin6(_arg1:String, _arg2:Number){
Tweener.addTween(this[_arg1], {alpha:0, time:1, delay:0});
Tweener.addTween(this[_arg1], {time:0, delay:0.6, onComplete:comienzaQuickPlay, onCompleteParams:[_arg2]});
}
public function menuFin7(_arg1:String, _arg2:Number){
Tweener.addTween(this[_arg1], {alpha:0, time:1, delay:0});
Tweener.addTween(this[_arg1], {time:0, delay:0.6, onComplete:comienzaStoryMode, onCompleteParams:[_arg2]});
}
public function menuFin2(_arg1:String){
Tweener.addTween(this[_arg1], {alpha:0, time:1, delay:0});
Tweener.addTween(this[_arg1], {time:0, delay:0.6, onComplete:gotoAndStop, onCompleteParams:["difficulty"]});
}
public function playmore(_arg1:MouseEvent):void{
var e = _arg1;
if (e.type == "mouseOver"){
if (opcion1i == false){
palabras.gotoAndPlay("b1playi");
opcion1i = true;
opcion1f = false;
uneta.x = punto1.x;
uneta.y = punto1.y;
uneta.visible = true;
root["playeles"] = root["eles"].play();
};
} else {
if (e.type == "mouseOut"){
if (opcion1f == false){
palabras.gotoAndPlay("b1playf");
opcion1f = true;
opcion1i = false;
uneta.visible = false;
};
} else {
if (e.type == "click"){
MochiBot.track(this, "179481d0");
root["playapres"] = root["apres"].play();
try {
navigateToURL(request4, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
};
};
};
}
function frame3(){
stop();
menuIni2();
stop();
}
public function menuSkip(){
if (root["storyMode"] == true){
root["playMusicIntro"] = root["musicIntro"].play();
intro.gotoAndPlay(2);
};
skipb.buttonMode = true;
skipb.addEventListener(MouseEvent.MOUSE_OVER, skipt);
skipb.addEventListener(MouseEvent.MOUSE_OUT, skipt);
skipb.addEventListener(MouseEvent.CLICK, skipt);
}
function frame7(){
stop();
}
public function menuFin5(_arg1:String){
Tweener.addTween(this[_arg1], {alpha:0, time:1, delay:0});
Tweener.addTween(this[_arg1], {time:0, delay:0.6, onComplete:gotoAndStop, onCompleteParams:["difficulty"]});
}
public function destruyemenuJugador(){
b11.removeEventListener(MouseEvent.MOUSE_OVER, playmore);
b11.removeEventListener(MouseEvent.MOUSE_OUT, playmore);
b11.removeEventListener(MouseEvent.CLICK, playmore);
b12.removeEventListener(MouseEvent.MOUSE_OVER, playmore);
b12.removeEventListener(MouseEvent.MOUSE_OUT, playmore);
b12.removeEventListener(MouseEvent.CLICK, playmore);
b13.removeEventListener(MouseEvent.MOUSE_OVER, playmore);
b13.removeEventListener(MouseEvent.MOUSE_OUT, playmore);
b13.removeEventListener(MouseEvent.CLICK, playmore);
b21.removeEventListener(MouseEvent.MOUSE_OVER, storygame);
b21.removeEventListener(MouseEvent.MOUSE_OUT, storygame);
b21.removeEventListener(MouseEvent.CLICK, storygame);
b22.removeEventListener(MouseEvent.MOUSE_OVER, storygame);
b22.removeEventListener(MouseEvent.MOUSE_OUT, storygame);
b22.removeEventListener(MouseEvent.CLICK, storygame);
b31.removeEventListener(MouseEvent.MOUSE_OVER, quickplay);
b31.removeEventListener(MouseEvent.MOUSE_OUT, quickplay);
b31.removeEventListener(MouseEvent.CLICK, quickplay);
b32.removeEventListener(MouseEvent.MOUSE_OVER, quickplay);
b32.removeEventListener(MouseEvent.MOUSE_OUT, quickplay);
b32.removeEventListener(MouseEvent.CLICK, quickplay);
b41.removeEventListener(MouseEvent.MOUSE_OVER, scores);
b41.removeEventListener(MouseEvent.MOUSE_OUT, scores);
b41.removeEventListener(MouseEvent.CLICK, scores);
b42.removeEventListener(MouseEvent.MOUSE_OVER, scores);
b42.removeEventListener(MouseEvent.MOUSE_OUT, scores);
b42.removeEventListener(MouseEvent.CLICK, scores);
b51.removeEventListener(MouseEvent.MOUSE_OVER, credits);
b51.removeEventListener(MouseEvent.MOUSE_OUT, credits);
b51.removeEventListener(MouseEvent.CLICK, credits);
b61.removeEventListener(MouseEvent.MOUSE_OVER, getsound);
b61.removeEventListener(MouseEvent.MOUSE_OUT, getsound);
b61.removeEventListener(MouseEvent.CLICK, getsound);
b62.removeEventListener(MouseEvent.MOUSE_OVER, getsound);
b62.removeEventListener(MouseEvent.MOUSE_OUT, getsound);
b62.removeEventListener(MouseEvent.CLICK, getsound);
b71.removeEventListener(MouseEvent.MOUSE_OVER, usecontroller);
b71.removeEventListener(MouseEvent.MOUSE_OUT, usecontroller);
b71.removeEventListener(MouseEvent.CLICK, usecontroller);
b81.removeEventListener(MouseEvent.MOUSE_OVER, hostgame);
b81.removeEventListener(MouseEvent.MOUSE_OUT, hostgame);
b81.removeEventListener(MouseEvent.CLICK, hostgame);
gnb.removeEventListener(MouseEvent.CLICK, gamenodeEvent);
gnb2.removeEventListener(MouseEvent.CLICK, gamenodeEvent2);
}
public function credits(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
if (opcion5i == false){
palabras.gotoAndPlay("b5playi");
opcion5i = true;
opcion5f = false;
uneta.x = punto5.x;
uneta.y = punto5.y;
uneta.visible = true;
root["playeles"] = root["eles"].play();
};
} else {
if (_arg1.type == "mouseOut"){
if (opcion5f == false){
palabras.gotoAndPlay("b5playf");
opcion5f = true;
opcion5i = false;
uneta.visible = false;
};
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
MochiBot.track(this, "a6d6374a");
root["playapres"] = root["apres"].play();
gotoAndStop("credits");
};
};
};
}
function frame4(){
stop();
menuIni3();
stop();
}
public function quickplay(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
if (opcion3i == false){
palabras.gotoAndPlay("b3playi");
opcion3i = true;
opcion3f = false;
uneta.x = punto3.x;
uneta.y = punto3.y;
uneta.visible = true;
root["playeles"] = root["eles"].play();
};
} else {
if (_arg1.type == "mouseOut"){
if (opcion3f == false){
palabras.gotoAndPlay("b3playf");
opcion3f = true;
opcion3i = false;
uneta.visible = false;
};
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
MochiBot.track(this, "2dea47ed");
root["storyMode"] = false;
gotoAndStop("Enter Name");
};
};
};
}
public function hostgame(_arg1:MouseEvent):void{
var e = _arg1;
if (e.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta2.visible = true;
menub6.gotoAndPlay("b6playi");
} else {
if (e.type == "mouseOut"){
uneta2.visible = false;
menub6.gotoAndPlay("b6playf");
} else {
if (e.type == "click"){
root["playapres"] = root["apres"].play();
MochiBot.track(this, "656edbd6");
try {
navigateToURL(request3, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
};
};
};
}
public function comienzaStoryMode(_arg1:Number){
var cancion = _arg1;
root["stage"]["quality"] = StageQuality.LOW;
var _local3 = root;
_local3["paraLoops"]();
try {
_local3 = root;
_local3["removeChild"](root["mySnow"]);
} catch(e:Error) {
};
root["Level"] = cancion;
_local3 = root;
_local3["gotoAndStop"]("juego");
trace(cancion);
}
public function viaje(){
clearInterval(root["hiloViaje"]);
if (root["flagCPMR"] == false){
while (adBox.numChildren) {
trace("toi removiendo el add");
adBox.removeChildAt(0);
};
root["flagCPMR"] = true;
gotoAndStop("storymodeSong");
};
}
public function posibleViaje(){
if ((((root["levelPasado1"] == true)) && ((root["levelMarcado1"] == false)))){
root["levelMarcado1"] = true;
gorro.gotoAndPlay("toStage2");
};
if ((((root["levelPasado2"] == true)) && ((root["levelMarcado2"] == false)))){
root["levelMarcado2"] = true;
gorro.gotoAndPlay("toStage3");
};
}
public function menuIni2(){
panelDifficulty.alpha = 0;
Tweener.addTween(panelDifficulty, {alpha:1, time:1.5, delay:0});
}
public function menuIni5(){
panelName.alpha = 0;
Tweener.addTween(panelName, {alpha:1, time:1.5, delay:0});
}
public function menuIni3(){
panelLevel.alpha = 0;
Tweener.addTween(panelLevel, {alpha:1, time:1.5, delay:0});
}
public function menuIni4(){
Tweener.addTween(fondo, {alpha:0, time:1.5, delay:0});
root["playintros"].stop();
stage.frameRate = 60;
Tweener.addTween(fondo, {time:0, delay:1, onComplete:gotoAndStop, onCompleteParams:["intro"]});
}
public function menuFinName(_arg1:String){
Tweener.addTween(this[_arg1], {alpha:0, time:1, delay:0});
Tweener.addTween(this[_arg1], {time:0, delay:0.6, onComplete:gotoAndStop, onCompleteParams:["mode"]});
}
public function skipt(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuSkip();
root["playapres"] = root["apres"].play();
intro.gotoAndPlay("fin");
};
};
};
}
public function destruyemenuSkip(){
skipb.removeEventListener(MouseEvent.MOUSE_OVER, skipt);
skipb.removeEventListener(MouseEvent.MOUSE_OUT, skipt);
skipb.removeEventListener(MouseEvent.CLICK, skipt);
}
public function menuIni6(){
trace("el error ta aqui o no ");
panelScore.alpha = 0;
Tweener.addTween(panelScore, {alpha:1, time:1.5, delay:0});
trace("no ta na aqui la wea");
}
public function gamenodeEvent2(_arg1:MouseEvent):void{
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(7);
};
}
}
}//package Santa2v1_fla
Section 81
//mainmenu2_29 (Santa2v1_fla.mainmenu2_29)
package Santa2v1_fla {
import flash.display.*;
public dynamic class mainmenu2_29 extends MovieClip {
public function mainmenu2_29(){
addFrameScript(6, frame7, 11, frame12, 16, frame17, 23, frame24, 28, frame29, 34, frame35, 39, frame40, 45, frame46, 50, frame51, 55, frame56);
}
function frame51(){
stop();
}
function frame17(){
stop();
}
function frame29(){
stop();
}
function frame56(){
stop();
}
function frame24(){
stop();
}
function frame46(){
stop();
}
function frame40(){
stop();
}
function frame7(){
stop();
}
function frame12(){
stop();
}
function frame35(){
stop();
}
}
}//package Santa2v1_fla
Section 82
//MainTimeline (Santa2v1_fla.MainTimeline)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import com.gamenode.*;
import de.kismael.*;
import caurina.transitions.properties.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class MainTimeline extends MovieClip {
public var nota6:nota6s;
public var altavoz:MovieClip;
public var medidor:MovieClip;
public var start1:MovieClip;
public var start2:MovieClip;
public var start3:MovieClip;
public var start4:MovieClip;
public var start5:MovieClip;
public var apres:apretars;
public var youRock:MovieClip;
public var storyMode:Boolean;
public var flagCPMR:Boolean;
public var feverx4:MovieClip;
public var limitLine:MovieClip;
public var loops:loopStory;
public var tryAgain:MovieClip;
public var volumegentes:SoundTransform;
public var fevert:MovieClip;
public var quickBack:Boolean;
public var hiloStart:uint;
public var levelPasado1:Boolean;
public var levelPasado2:Boolean;
public var levelPasado3:Boolean;
public var finalLine:MovieClip;
public var request:URLRequest;
public var score:Number;
public var flagCPM:Boolean;
public var volumeselect:SoundTransform;
public var estructura:MovieClip;
public var cuerdasAux:Cuerdas;
public var bekhob:MovieClip;
public var end1:MovieClip;
public var end2:MovieClip;
public var end3:MovieClip;
public var end4:MovieClip;
public var end5:MovieClip;
public var playeles:SoundChannel;
public var LevelFijo:Number;
public var gentes:publicos;
public var playRocks:SoundChannel;
public var GN:GameNodeAPI;
public var levelMarcado1:Boolean;
public var levelMarcado2:Boolean;
public var basicMode:Boolean;
public var tap5:MovieClip;
public var fpscounter:TextField;
public var guitarraCrash:MovieClip;
public var tap2:MovieClip;
public var miss:TextField;
public var tap1:MovieClip;
public var hit1:MovieClip;
public var hit2:MovieClip;
public var hit3:MovieClip;
public var hit4:MovieClip;
public var hit5:MovieClip;
public var transicion:MovieClip;
public var misst:MovieClip;
public var tap4:MovieClip;
public var levelMarcado3:Boolean;
public var playgentes:SoundChannel;
public var tap3:MovieClip;
public var volumeintros:SoundTransform;
public var limitevisible:MovieClip;
public var volumenota6:SoundTransform;
public var playselect:SoundChannel;
public var stages:MovieClip;
public var pasadas:Array;
public var volumeapres:SoundTransform;
public var musicIntro:introSanta1;
public var mySnow:Snowing;
public var panelResults:MovieClip;
public var playnota6:SoundChannel;
public var playapres:SoundChannel;
public var menu:MovieClip;
public var Level:Number;
public var hiloIntroSound:uint;
public var volumeloops:SoundTransform;
public var endpp1:MovieClip;
public var endpp2:MovieClip;
public var contador:TextField;
public var endpp4:MovieClip;
public var endpp5:MovieClip;
public var storyBack:Boolean;
public var endpp3:MovieClip;
public var urlbekho:String;
public var santa1:MovieClip;
public var santa2:MovieClip;
public var santa3:MovieClip;
public var intros:introM;
public var MENU:Boolean;
public var eles:elegirs;
public var musicaMenuOn:Boolean;
public var playMusicIntro:SoundChannel;
public var core:coreSystem;
public var GameNodePreloader:MovieClip;
public var hiloStartc:uint;
public var playloops:SoundChannel;
public var hiloIntroSound2:uint;
public var hiloIntroSound3:uint;
public var rocks:yourockS;
public var areReady:MovieClip;
public var hiloStartq:uint;
public var volumeeles:SoundTransform;
public var difficulty:Number;
public var playintros:SoundChannel;
public var guitarraAux:guitarra;
public var encore:MovieClip;
public var endp2:MovieClip;
public var endp3:MovieClip;
public var endp4:MovieClip;
public var matanotas:MovieClip;
public var hiloViaje:uint;
public var tapanotas:MovieClip;
public var endp1:MovieClip;
public var fpsCounterON;
public var endp5:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function menuIni(){
addChild(mySnow);
mySnow.startSnowing();
menu.fondo.alpha = 0;
menu.palabras.alpha = 0;
menu.objetos.alpha = 0;
menu.gente.alpha = 0;
menu.logo.alpha = 0;
menu.menub6.alpha = 0;
menu.bekhoLogo.alpha = 0;
menu.gamenodeLogo.alpha = 0;
Tweener.addTween(menu.fondo, {alpha:1, time:8, delay:2});
hiloIntroSound = setInterval(IntroSound, 3600);
Tweener.addTween(menu.gente, {alpha:1, time:4, delay:0.6});
hiloIntroSound2 = setInterval(IntroSound2, 400);
Tweener.addTween(menu.logo, {alpha:1, time:1, delay:4});
hiloIntroSound3 = setInterval(IntroSound3, 1800);
Tweener.addTween(menu.palabras, {alpha:1, time:5, delay:4.5});
Tweener.addTween(menu.menub6, {alpha:1, time:5, delay:4.5});
Tweener.addTween(menu.uneta, {alpha:1, time:5, delay:4.5});
Tweener.addTween(menu.objetos, {alpha:1, time:4, delay:5.5});
Tweener.addTween(menu.bekhoLogo, {alpha:1, time:5, delay:4.5});
Tweener.addTween(menu.gamenodeLogo, {alpha:1, time:5, delay:4.5});
}
public function IntroSound(){
volumeintros.volume = 0.7;
playintros = intros.play(0, 9999);
playintros.soundTransform = volumeintros;
clearInterval(hiloIntroSound);
}
public function paraLoops(){
if (musicaMenuOn == true){
playloops.stop();
musicaMenuOn = false;
};
}
function frame1(){
stop();
GameNodePreloader.CPMStarContentSpotID = "1213QBE130787";
GameNodePreloader.gotoFrame = 2;
GN = new GameNodeAPI(this.root);
GameNodeAPI.gameID = 101656;
GameNodeAPI.debug = true;
GameNodeAPI.selfLock = false;
}
function frame3(){
stop();
stop();
mySnow = new Snowing(150);
MENU = true;
fpsCounterON = false;
menu.uneta.visible = false;
if ((((storyBack == false)) && ((quickBack == false)))){
menuIni();
} else {
if (storyBack == true){
trace("Q MIERDA");
trace(Level);
storyBack = false;
if ((((((levelPasado1 == true)) && ((levelMarcado1 == false)))) || ((((levelPasado2 == true)) && ((levelMarcado2 == false)))))){
flagCPMR = false;
flagCPM = false;
menu.gotoAndStop("storymode");
} else {
menu.gotoAndStop("storymodeSong");
};
} else {
if (quickBack == true){
menu.gotoAndStop("quickplay");
IntroSound();
quickBack = false;
};
};
};
}
function frame4(){
stop();
iniciarStage();
cuerdasAux.visible = false;
finalLine.visible = false;
fevert.visible = false;
finalLine.visible = false;
limitLine.visible = false;
misst.visible = false;
santa1.visible = false;
santa2.visible = false;
santa3.visible = false;
guitarraCrash.visible = false;
tryAgain.visible = false;
hit1.visible = false;
hit2.visible = false;
hit3.visible = false;
hit4.visible = false;
hit5.visible = false;
end1.visible = false;
end2.visible = false;
end3.visible = false;
end4.visible = false;
end5.visible = false;
start1.visible = false;
start2.visible = false;
start3.visible = false;
start4.visible = false;
start5.visible = false;
estructura.visible = false;
guitarraAux.visible = false;
feverx4.visible = false;
limitevisible.visible = false;
}
function frame5(){
stop();
}
public function IntroSound2(){
playgentes = gentes.play();
clearInterval(hiloIntroSound2);
}
function frame2(){
storyBack = false;
quickBack = false;
score = 0;
pasadas = new Array();
flagCPM = false;
flagCPMR = false;
rocks = new yourockS();
intros = new introM();
eles = new elegirs();
loops = new loopStory();
musicIntro = new introSanta1();
apres = new apretars();
gentes = new publicos();
nota6 = new nota6s();
volumeeles = new SoundTransform();
volumeloops = new SoundTransform();
volumeapres = new SoundTransform();
volumeintros = new SoundTransform();
volumegentes = new SoundTransform();
volumenota6 = new SoundTransform();
volumeselect = new SoundTransform();
musicaMenuOn = false;
MochiBot.track(this, "41aa3fe1");
stop();
urlbekho = "http://www.bekhoteam.net";
request = new URLRequest(urlbekho);
eventoBekho();
}
public function IntroSound3(){
playnota6 = nota6.play();
clearInterval(hiloIntroSound3);
}
public function destruyeEventoBekho(){
bekhob.removeEventListener(MouseEvent.MOUSE_OVER, bekho);
bekhob.removeEventListener(MouseEvent.MOUSE_OUT, bekho);
bekhob.removeEventListener(MouseEvent.CLICK, bekho);
}
public function iniciarStage(){
youRock.visible = false;
encore.visible = false;
trace("Q WEA PASA POR LA MIERDA!!!!!!!!!!!!!");
tryAgain.visible = false;
panelResults.visible = false;
try {
removeChild(core.guitar);
removeChild(core.cuerdas);
} catch(e:Error) {
};
if ((((Level >= 1)) && ((Level <= 3)))){
stages.gotoAndStop(1);
tapanotas.gotoAndStop(1);
} else {
if ((((Level >= 4)) && ((Level <= 6)))){
stages.gotoAndStop(2);
tapanotas.gotoAndStop(2);
} else {
if ((((Level >= 7)) && ((Level <= 8)))){
stages.gotoAndStop(3);
tapanotas.gotoAndStop(3);
};
};
};
transicion.visible = true;
tapanotas.visible = true;
setChildIndex(matanotas, 621);
setChildIndex(tapanotas, 620);
setChildIndex(altavoz, 622);
setChildIndex(medidor, 623);
setChildIndex(transicion, 624);
core = new coreSystem(this, Level, basicMode, difficulty);
matanotas.visible = false;
areReady.visible = true;
encore.visible = false;
areReady.gotoAndPlay(2);
trace("toi empezando denuevo");
core.Inicializar();
}
public function eventoBekho(){
bekhob.buttonMode = true;
bekhob.addEventListener(MouseEvent.MOUSE_OVER, bekho);
bekhob.addEventListener(MouseEvent.MOUSE_OUT, bekho);
bekhob.addEventListener(MouseEvent.CLICK, bekho);
}
public function bekho(_arg1:MouseEvent):void{
var e = _arg1;
if (e.type == "mouseOver"){
} else {
if (e.type == "mouseOut"){
} else {
if (e.type == "click"){
MochiBot.track(this, "6b2a8510");
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
};
};
};
}
public function tocaLoops(){
if (musicaMenuOn == false){
volumeintros.volume = 0.7;
playloops = loops.play(0, 9999);
playloops.soundTransform = volumeintros;
musicaMenuOn = true;
};
clearInterval(hiloIntroSound);
}
public function INI(){
MENU = false;
}
}
}//package Santa2v1_fla
Section 83
//matanotas_162 (Santa2v1_fla.matanotas_162)
package Santa2v1_fla {
import flash.display.*;
public dynamic class matanotas_162 extends MovieClip {
public function matanotas_162(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Santa2v1_fla
Section 84
//mc_menuhigh_80 (Santa2v1_fla.mc_menuhigh_80)
package Santa2v1_fla {
import fl.controls.*;
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import com.gamenode.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class mc_menuhigh_80 extends MovieClip {
public var uneta:MovieClip;
public var backb:MovieClip;
public var comboSong:ComboBox;
public var highscoreText:TextArea;
public var color:String;
public var rank:String;
public var comboLevel:ComboBox;
public var highscoreHTML:String;
public function mc_menuhigh_80(){
addFrameScript(0, frame1);
}
public function back(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin"]("panelScore");
};
};
};
}
public function menuJugador(){
backb.buttonMode = true;
backb.addEventListener(MouseEvent.MOUSE_OVER, back);
backb.addEventListener(MouseEvent.MOUSE_OUT, back);
backb.addEventListener(MouseEvent.CLICK, back);
}
function frame1(){
uneta.visible = false;
menuJugador();
stop();
highscoreText = new TextArea();
highscoreText.x = 120;
highscoreText.y = 230;
highscoreText.width = 345;
highscoreText.height = 240;
highscoreText.editable = false;
highscoreText.htmlText = "<font face=\"Verdana\" size=\"13\" color=\"#FFFFFF\"><b>Loading...</b></font>";
addChild(highscoreText);
comboSong.addItem({label:"Joy to the World", data:1});
comboSong.addItem({label:"Hark the Herals Angels Songs", data:2});
comboSong.addItem({label:"Jingle Bells", data:3});
comboSong.addItem({label:"Upon the Housetop", data:4});
comboSong.addItem({label:"Carol of the Bells", data:5});
comboSong.addItem({label:"God Rest ye Merry gentlemen", data:6});
comboSong.addItem({label:"Greensleaves", data:7});
comboSong.addItem({label:"Deck the Halls", data:8});
comboSong.addItem({label:"Jingle Bell Rock", data:9});
comboSong.addItem({label:"Twelve Days of Xmas", data:10});
comboSong.addItem({label:"March of the NutCracker", data:11});
comboSong.addItem({label:"Xmas Megamic", data:12});
comboSong.rowCount = 12;
comboSong.addEventListener(Event.CHANGE, comboChanged);
comboLevel.addItem({label:"Easy", data:1});
comboLevel.addItem({label:"Normal", data:2});
comboLevel.addItem({label:"Hard", data:3});
comboLevel.addEventListener(Event.CHANGE, comboChanged);
updateList("11");
}
public function updateList(_arg1:String){
GameNodeAPI.getHighscores(_arg1, 100, true, displayHighscores);
}
public function destruyemenuJugador(){
backb.removeEventListener(MouseEvent.MOUSE_OVER, back);
backb.removeEventListener(MouseEvent.MOUSE_OUT, back);
backb.removeEventListener(MouseEvent.CLICK, back);
}
public function displayHighscores(_arg1, _arg2:Array){
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:*;
if (((!((_arg2 == null))) && ((_arg2.length > 0)))){
_local3 = _arg2.length;
_local4 = 0;
_local5 = 0;
highscoreHTML = "<textformat tabstops=\"[35,260]\"><font face=\"Verdana\" size=\"13\" color=\"#FFFFFF\">";
_local6 = 1;
while (_local6 < _local3) {
_arg2[_local6]["name"] = _arg2[_local6]["name"].replace(" ", " ");
highscoreHTML = (highscoreHTML + ((((((_local6 + _local4) + "\t") + _arg2[_local6]["name"]) + "\t") + _arg2[_local6]["score"]) + "<br>"));
_local6++;
};
highscoreHTML = (highscoreHTML + "</font></textformat>");
highscoreText.htmlText = highscoreHTML;
highscoreText.verticalScrollPosition = _local5;
} else {
highscoreText.htmlText = "<font face=\"Verdana\" size=\"13\" color=\"#FFFFFF\">No highscores yet.</font>";
};
}
public function comboChanged(_arg1:Event){
updateList((String(comboSong.value) + String(comboLevel.value)));
}
}
}//package Santa2v1_fla
Section 85
//medidor_rock_125 (Santa2v1_fla.medidor_rock_125)
package Santa2v1_fla {
import flash.display.*;
public dynamic class medidor_rock_125 extends MovieClip {
public var Rgreen2:MovieClip;
public var Ryellow1:MovieClip;
public var aguja:MovieClip;
public var Rgreen1:MovieClip;
public var Rgreen3:MovieClip;
public var Ryellow3:MovieClip;
public var Rred1:MovieClip;
public var Ryellow2:MovieClip;
public var Rred2:MovieClip;
public function medidor_rock_125(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Santa2v1_fla
Section 86
//multiplicador_136 (Santa2v1_fla.multiplicador_136)
package Santa2v1_fla {
import flash.display.*;
public dynamic class multiplicador_136 extends MovieClip {
public function multiplicador_136(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Santa2v1_fla
Section 87
//panelCredits_37 (Santa2v1_fla.panelCredits_37)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class panelCredits_37 extends MovieClip {
public var request2:URLRequest;
public var urlbekho:String;
public var request:URLRequest;
public var uneta:MovieClip;
public var backb:MovieClip;
public var garyb:MovieClip;
public var url:String;
public var bekhob:MovieClip;
public var uneta2:MovieClip;
public var uneta3:MovieClip;
public function panelCredits_37(){
addFrameScript(0, frame1);
}
public function destruyemenuJugador(){
backb.removeEventListener(MouseEvent.MOUSE_OVER, back);
backb.removeEventListener(MouseEvent.MOUSE_OUT, back);
backb.removeEventListener(MouseEvent.CLICK, back);
garyb.removeEventListener(MouseEvent.MOUSE_OVER, gary);
garyb.removeEventListener(MouseEvent.MOUSE_OUT, gary);
garyb.removeEventListener(MouseEvent.CLICK, gary);
bekhob.removeEventListener(MouseEvent.MOUSE_OVER, bekho);
bekhob.removeEventListener(MouseEvent.MOUSE_OUT, bekho);
bekhob.removeEventListener(MouseEvent.CLICK, bekho);
}
public function bekho(_arg1:MouseEvent):void{
var e = _arg1;
if (e.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta3.visible = true;
} else {
if (e.type == "mouseOut"){
uneta3.visible = false;
} else {
if (e.type == "click"){
root["playapres"] = root["apres"].play();
MochiBot.track(this, "56f7ad17");
try {
navigateToURL(request2, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
};
};
};
}
public function menuJugador(){
backb.buttonMode = true;
backb.addEventListener(MouseEvent.MOUSE_OVER, back);
backb.addEventListener(MouseEvent.MOUSE_OUT, back);
backb.addEventListener(MouseEvent.CLICK, back);
garyb.buttonMode = true;
garyb.addEventListener(MouseEvent.MOUSE_OVER, gary);
garyb.addEventListener(MouseEvent.MOUSE_OUT, gary);
garyb.addEventListener(MouseEvent.CLICK, gary);
bekhob.buttonMode = true;
bekhob.addEventListener(MouseEvent.MOUSE_OVER, bekho);
bekhob.addEventListener(MouseEvent.MOUSE_OUT, bekho);
bekhob.addEventListener(MouseEvent.CLICK, bekho);
}
function frame1(){
uneta.visible = false;
uneta2.visible = false;
uneta3.visible = false;
menuJugador();
stop();
url = "http://www.garyhoey.com";
request = new URLRequest(url);
urlbekho = "http://www.bekhoteam.net";
request2 = new URLRequest(urlbekho);
}
public function back(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin"]("panelCredits");
};
};
};
}
public function gary(_arg1:MouseEvent):void{
var e = _arg1;
if (e.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta2.visible = true;
} else {
if (e.type == "mouseOut"){
uneta2.visible = false;
} else {
if (e.type == "click"){
MochiBot.track(this, "15585eab");
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
root["playapres"] = root["apres"].play();
};
};
};
}
}
}//package Santa2v1_fla
Section 88
//panelDifficulty_40 (Santa2v1_fla.panelDifficulty_40)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class panelDifficulty_40 extends MovieClip {
public var basict:MovieClip;
public var rockstarb:MovieClip;
public var basicb:MovieClip;
public var uneta:MovieClip;
public var backb:MovieClip;
public var rockstart:MovieClip;
public function panelDifficulty_40(){
addFrameScript(0, frame1);
}
public function destruyemenuJugador(){
backb.removeEventListener(MouseEvent.MOUSE_OVER, back);
backb.removeEventListener(MouseEvent.MOUSE_OUT, back);
backb.removeEventListener(MouseEvent.CLICK, back);
rockstarb.removeEventListener(MouseEvent.MOUSE_OVER, rockstar);
rockstarb.removeEventListener(MouseEvent.MOUSE_OUT, rockstar);
rockstarb.removeEventListener(MouseEvent.CLICK, rockstar);
basicb.removeEventListener(MouseEvent.MOUSE_OVER, basic);
basicb.removeEventListener(MouseEvent.MOUSE_OUT, basic);
basicb.removeEventListener(MouseEvent.CLICK, basic);
}
public function menuJugador(){
backb.buttonMode = true;
backb.addEventListener(MouseEvent.MOUSE_OVER, back);
backb.addEventListener(MouseEvent.MOUSE_OUT, back);
backb.addEventListener(MouseEvent.CLICK, back);
rockstarb.buttonMode = true;
rockstarb.addEventListener(MouseEvent.MOUSE_OVER, rockstar);
rockstarb.addEventListener(MouseEvent.MOUSE_OUT, rockstar);
rockstarb.addEventListener(MouseEvent.CLICK, rockstar);
basicb.buttonMode = true;
basicb.addEventListener(MouseEvent.MOUSE_OVER, basic);
basicb.addEventListener(MouseEvent.MOUSE_OUT, basic);
basicb.addEventListener(MouseEvent.CLICK, basic);
}
function frame1(){
basict.visible = false;
rockstart.visible = false;
uneta.visible = false;
menuJugador();
stop();
}
public function back(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin"]("panelDifficulty");
};
};
};
}
public function basic(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
basict.visible = true;
} else {
if (_arg1.type == "mouseOut"){
basict.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["basicMode"] = true;
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin2"]("panelDifficulty");
};
};
};
}
public function rockstar(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
rockstart.visible = true;
} else {
if (_arg1.type == "mouseOut"){
rockstart.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["basicMode"] = false;
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin2"]("panelDifficulty");
};
};
};
}
}
}//package Santa2v1_fla
Section 89
//panelLevel_43 (Santa2v1_fla.panelLevel_43)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import caurina.transitions.properties.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class panelLevel_43 extends MovieClip {
public var selector1:MovieClip;
public var santa1:MovieClip;
public var santa2:MovieClip;
public var santa3:MovieClip;
public var hardb:MovieClip;
public var uneta:MovieClip;
public var normalb:MovieClip;
public var easyb:MovieClip;
public var backb:MovieClip;
public var hardt:MovieClip;
public var normalt:MovieClip;
public var selector2:MovieClip;
public var selector3:MovieClip;
public var easyt:MovieClip;
public function panelLevel_43(){
addFrameScript(0, frame1);
}
public function easy(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
easyt.visible = true;
santa1.gotoAndPlay("play1");
Tweener.addTween(selector1, {alpha:0, time:0.8, delay:0});
} else {
if (_arg1.type == "mouseOut"){
easyt.visible = false;
santa1.gotoAndPlay("stand");
Tweener.addTween(selector1, {alpha:1, time:0.8, delay:0});
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["difficulty"] = 1;
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin3"]("panelLevel");
};
};
};
}
public function destruyemenuJugador(){
backb.removeEventListener(MouseEvent.MOUSE_OVER, back);
backb.removeEventListener(MouseEvent.MOUSE_OUT, back);
backb.removeEventListener(MouseEvent.CLICK, back);
hardb.removeEventListener(MouseEvent.MOUSE_OVER, hard);
hardb.removeEventListener(MouseEvent.MOUSE_OUT, hard);
hardb.removeEventListener(MouseEvent.CLICK, hard);
normalb.removeEventListener(MouseEvent.MOUSE_OVER, normal);
normalb.removeEventListener(MouseEvent.MOUSE_OUT, normal);
normalb.removeEventListener(MouseEvent.CLICK, normal);
easyb.removeEventListener(MouseEvent.MOUSE_OVER, easy);
easyb.removeEventListener(MouseEvent.MOUSE_OUT, easy);
easyb.removeEventListener(MouseEvent.CLICK, easy);
}
public function menuJugador(){
backb.buttonMode = true;
backb.addEventListener(MouseEvent.MOUSE_OVER, back);
backb.addEventListener(MouseEvent.MOUSE_OUT, back);
backb.addEventListener(MouseEvent.CLICK, back);
hardb.buttonMode = true;
hardb.addEventListener(MouseEvent.MOUSE_OVER, hard);
hardb.addEventListener(MouseEvent.MOUSE_OUT, hard);
hardb.addEventListener(MouseEvent.CLICK, hard);
normalb.buttonMode = true;
normalb.addEventListener(MouseEvent.MOUSE_OVER, normal);
normalb.addEventListener(MouseEvent.MOUSE_OUT, normal);
normalb.addEventListener(MouseEvent.CLICK, normal);
easyb.buttonMode = true;
easyb.addEventListener(MouseEvent.MOUSE_OVER, easy);
easyb.addEventListener(MouseEvent.MOUSE_OUT, easy);
easyb.addEventListener(MouseEvent.CLICK, easy);
}
public function back(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin4"]("panelLevel");
};
};
};
}
public function hard(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
hardt.visible = true;
santa3.gotoAndPlay("play4");
Tweener.addTween(selector3, {alpha:0, time:0.8, delay:0});
} else {
if (_arg1.type == "mouseOut"){
hardt.visible = false;
santa3.gotoAndPlay("stand");
Tweener.addTween(selector3, {alpha:1, time:0.8, delay:0});
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["difficulty"] = 3;
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin3"]("panelLevel");
};
};
};
}
function frame1(){
easyt.visible = false;
normalt.visible = false;
hardt.visible = false;
uneta.visible = false;
menuJugador();
stop();
}
public function normal(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
normalt.visible = true;
santa2.gotoAndPlay("play2");
Tweener.addTween(selector2, {alpha:0, time:0.8, delay:0});
} else {
if (_arg1.type == "mouseOut"){
normalt.visible = false;
santa2.gotoAndPlay("stand");
Tweener.addTween(selector2, {alpha:1, time:0.8, delay:0});
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["difficulty"] = 2;
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin3"]("panelLevel");
};
};
};
}
}
}//package Santa2v1_fla
Section 90
//PanelLogin_74 (Santa2v1_fla.PanelLogin_74)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import fl.transitions.easing.*;
import com.gamenode.*;
import fl.transitions.*;
public dynamic class PanelLogin_74 extends MovieClip {
public var btn_panel_hide:MovieClip;
public var btn_panel_logo:MovieClip;
public var btn_panel_signup:MovieClip;
public function PanelLogin_74(){
addFrameScript(0, frame1);
}
public function hide(_arg1:Event):void{
var _local2:Tween = new Tween(this, "y", Back.easeIn, this.y, (this.y + 100), 1, true);
}
function frame1(){
this.y = (this.y + 100);
btn_panel_hide.buttonMode = true;
btn_panel_logo.buttonMode = true;
btn_panel_signup.buttonMode = true;
btn_panel_hide.addEventListener(MouseEvent.CLICK, hide);
btn_panel_logo.addEventListener(MouseEvent.CLICK, gotoGameNode);
btn_panel_signup.addEventListener(MouseEvent.CLICK, gotoSignup);
if (GameNodeAPI.allowedDomain){
if (!GameNodeAPI.member){
trace("ok");
addEventListener(Event.ENTER_FRAME, init);
};
};
}
public function init(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, init);
var _local2:Tween = new Tween(this, "y", Back.easeOut, this.y, (this.y - 100), 1, true);
}
public function gotoGameNode(_arg1:Event):void{
GameNodeAPI.gotoURL(0);
}
public function gotoSignup(_arg1:Event):void{
GameNodeAPI.gotoURL(8);
}
}
}//package Santa2v1_fla
Section 91
//PanelNoHighscore_169 (Santa2v1_fla.PanelNoHighscore_169)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import fl.transitions.easing.*;
import com.gamenode.*;
import fl.transitions.*;
public dynamic class PanelNoHighscore_169 extends MovieClip {
public var btn_panel_hide:MovieClip;
public var myTweenX:Tween;
public var btn_panel_logo:MovieClip;
public var btn_panel_signup:MovieClip;
public var downY:int;
public var myTweenY:Tween;
public function PanelNoHighscore_169(){
addFrameScript(0, frame1);
}
public function hide(_arg1:Event):void{
myTweenY = new Tween(this, "y", Back.easeIn, (downY - 100), downY, 1, true);
}
function frame1(){
btn_panel_hide.buttonMode = true;
btn_panel_logo.buttonMode = true;
btn_panel_signup.buttonMode = true;
btn_panel_hide.addEventListener(MouseEvent.CLICK, hide);
btn_panel_logo.addEventListener(MouseEvent.CLICK, gotoGameNode);
btn_panel_signup.addEventListener(MouseEvent.CLICK, gotoGame);
this.y = (this.y + 100);
downY = this.y;
if (!GameNodeAPI.allowedDomain){
addEventListener(Event.ENTER_FRAME, init);
};
}
public function init(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, init);
myTweenX = new Tween(this, "y", Back.easeOut, downY, (downY - 100), 1, true);
}
public function gotoGame(_arg1:Event):void{
GameNodeAPI.gotoURL(7);
}
public function gotoGameNode(_arg1:Event):void{
GameNodeAPI.gotoURL(0);
}
}
}//package Santa2v1_fla
Section 92
//panelQuick_63 (Santa2v1_fla.panelQuick_63)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import com.gamenode.*;
import caurina.transitions.properties.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class panelQuick_63 extends MovieClip {
public var s5b:MovieClip;
public var lb1:MovieClip;
public var s1b:MovieClip;
public var uneta8:MovieClip;
public var lb3:MovieClip;
public var uneta7:MovieClip;
public var uneta5:MovieClip;
public var s6b:MovieClip;
public var s2b:MovieClip;
public var lb2:MovieClip;
public var s7b:MovieClip;
public var s3b:MovieClip;
public var uneta:MovieClip;
public var backb:MovieClip;
public var s8b:MovieClip;
public var unetal1:MovieClip;
public var unetal2:MovieClip;
public var unetal3:MovieClip;
public var unetal4:MovieClip;
public var s4b:MovieClip;
public var uneta1:MovieClip;
public var uneta2:MovieClip;
public var uneta3:MovieClip;
public var uneta4:MovieClip;
public var uneta6:MovieClip;
public var lb4:MovieClip;
public function panelQuick_63(){
addFrameScript(0, frame1);
}
public function destruyemenuJugador(){
backb.removeEventListener(MouseEvent.MOUSE_OVER, back);
backb.removeEventListener(MouseEvent.MOUSE_OUT, back);
backb.removeEventListener(MouseEvent.CLICK, back);
s1b.removeEventListener(MouseEvent.MOUSE_OVER, s1);
s1b.removeEventListener(MouseEvent.MOUSE_OUT, s1);
s1b.removeEventListener(MouseEvent.CLICK, s1);
s2b.removeEventListener(MouseEvent.MOUSE_OVER, s2);
s2b.removeEventListener(MouseEvent.MOUSE_OUT, s2);
s2b.removeEventListener(MouseEvent.CLICK, s2);
s3b.removeEventListener(MouseEvent.MOUSE_OVER, s3);
s3b.removeEventListener(MouseEvent.MOUSE_OUT, s3);
s3b.removeEventListener(MouseEvent.CLICK, s3);
s4b.removeEventListener(MouseEvent.MOUSE_OVER, s4);
s4b.removeEventListener(MouseEvent.MOUSE_OUT, s4);
s4b.removeEventListener(MouseEvent.CLICK, s4);
s5b.removeEventListener(MouseEvent.MOUSE_OVER, s5);
s5b.removeEventListener(MouseEvent.MOUSE_OUT, s5);
s5b.removeEventListener(MouseEvent.CLICK, s5);
s6b.removeEventListener(MouseEvent.MOUSE_OVER, s6);
s6b.removeEventListener(MouseEvent.MOUSE_OUT, s6);
s6b.removeEventListener(MouseEvent.CLICK, s6);
s7b.removeEventListener(MouseEvent.MOUSE_OVER, s7);
s7b.removeEventListener(MouseEvent.MOUSE_OUT, s7);
s7b.removeEventListener(MouseEvent.CLICK, s7);
s8b.removeEventListener(MouseEvent.MOUSE_OVER, s8);
s8b.removeEventListener(MouseEvent.MOUSE_OUT, s8);
s8b.removeEventListener(MouseEvent.CLICK, s8);
lb1.removeEventListener(MouseEvent.MOUSE_OVER, l1);
lb1.removeEventListener(MouseEvent.MOUSE_OUT, l1);
lb1.removeEventListener(MouseEvent.CLICK, l1);
lb2.removeEventListener(MouseEvent.MOUSE_OVER, l2);
lb2.removeEventListener(MouseEvent.MOUSE_OUT, l2);
lb2.removeEventListener(MouseEvent.CLICK, l2);
lb3.removeEventListener(MouseEvent.MOUSE_OVER, l3);
lb3.removeEventListener(MouseEvent.MOUSE_OUT, l3);
lb3.removeEventListener(MouseEvent.CLICK, l3);
lb4.removeEventListener(MouseEvent.MOUSE_OVER, l4);
lb4.removeEventListener(MouseEvent.MOUSE_OUT, l4);
lb4.removeEventListener(MouseEvent.CLICK, l4);
}
public function s3(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta3.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta3.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin6"]("panelQuick", 3);
};
};
};
}
public function s4(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta4.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta4.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin6"]("panelQuick", 4);
};
};
};
}
public function s5(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta5.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta5.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin6"]("panelQuick", 5);
};
};
};
}
public function s7(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta7.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta7.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin6"]("panelQuick", 7);
};
};
};
}
public function s1(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta1.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta1.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin6"]("panelQuick", 1);
};
};
};
}
public function s2(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta2.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta2.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin6"]("panelQuick", 2);
};
};
};
}
public function s6(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta6.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta6.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin6"]("panelQuick", 6);
};
};
};
}
public function s8(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta8.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta8.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin6"]("panelQuick", 8);
};
};
};
}
public function l3(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
unetal3.visible = true;
} else {
if (_arg1.type == "mouseOut"){
unetal3.visible = false;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(7);
};
};
};
}
public function l4(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
unetal4.visible = true;
} else {
if (_arg1.type == "mouseOut"){
unetal4.visible = false;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(7);
};
};
};
}
public function l1(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
unetal1.visible = true;
} else {
if (_arg1.type == "mouseOut"){
unetal1.visible = false;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(7);
};
};
};
}
public function l2(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
unetal2.visible = true;
} else {
if (_arg1.type == "mouseOut"){
unetal2.visible = false;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(7);
};
};
};
}
public function menuJugador(){
var _local1:*;
_local1 = 1;
while (_local1 <= 8) {
this[("uneta" + _local1)].visible = false;
_local1++;
};
_local1 = 1;
while (_local1 <= 4) {
this[("unetal" + _local1)].visible = false;
_local1++;
};
backb.addEventListener(MouseEvent.MOUSE_OVER, back);
backb.addEventListener(MouseEvent.MOUSE_OUT, back);
backb.addEventListener(MouseEvent.CLICK, back);
s1b.addEventListener(MouseEvent.MOUSE_OVER, s1);
s1b.addEventListener(MouseEvent.MOUSE_OUT, s1);
s1b.addEventListener(MouseEvent.CLICK, s1);
s2b.addEventListener(MouseEvent.MOUSE_OVER, s2);
s2b.addEventListener(MouseEvent.MOUSE_OUT, s2);
s2b.addEventListener(MouseEvent.CLICK, s2);
s3b.addEventListener(MouseEvent.MOUSE_OVER, s3);
s3b.addEventListener(MouseEvent.MOUSE_OUT, s3);
s3b.addEventListener(MouseEvent.CLICK, s3);
s4b.addEventListener(MouseEvent.MOUSE_OVER, s4);
s4b.addEventListener(MouseEvent.MOUSE_OUT, s4);
s4b.addEventListener(MouseEvent.CLICK, s4);
s5b.addEventListener(MouseEvent.MOUSE_OVER, s5);
s5b.addEventListener(MouseEvent.MOUSE_OUT, s5);
s5b.addEventListener(MouseEvent.CLICK, s5);
s6b.addEventListener(MouseEvent.MOUSE_OVER, s6);
s6b.addEventListener(MouseEvent.MOUSE_OUT, s6);
s6b.addEventListener(MouseEvent.CLICK, s6);
s7b.addEventListener(MouseEvent.MOUSE_OVER, s7);
s7b.addEventListener(MouseEvent.MOUSE_OUT, s7);
s7b.addEventListener(MouseEvent.CLICK, s7);
s8b.addEventListener(MouseEvent.MOUSE_OVER, s8);
s8b.addEventListener(MouseEvent.MOUSE_OUT, s8);
s8b.addEventListener(MouseEvent.CLICK, s8);
lb1.addEventListener(MouseEvent.MOUSE_OVER, l1);
lb1.addEventListener(MouseEvent.MOUSE_OUT, l1);
lb1.addEventListener(MouseEvent.CLICK, l1);
lb2.addEventListener(MouseEvent.MOUSE_OVER, l2);
lb2.addEventListener(MouseEvent.MOUSE_OUT, l2);
lb2.addEventListener(MouseEvent.CLICK, l2);
lb3.addEventListener(MouseEvent.MOUSE_OVER, l3);
lb3.addEventListener(MouseEvent.MOUSE_OUT, l3);
lb3.addEventListener(MouseEvent.CLICK, l3);
lb4.addEventListener(MouseEvent.MOUSE_OVER, l4);
lb4.addEventListener(MouseEvent.MOUSE_OUT, l4);
lb4.addEventListener(MouseEvent.CLICK, l4);
}
function frame1(){
uneta.visible = false;
menuJugador();
stop();
}
public function back(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin5"]("panelQuick");
};
};
};
}
}
}//package Santa2v1_fla
Section 93
//panelResults_167 (Santa2v1_fla.panelResults_167)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import com.gamenode.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class panelResults_167 extends MovieClip {
public var scoreTt:TextField;
public var request2:URLRequest;
public var buenast:TextField;
public var getb:MovieClip;
public var request:URLRequest;
public var eficienciat:TextField;
public var uneta:MovieClip;
public var backb:MovieClip;
public var scoret:TextField;
public var url2:String;
public var malast:TextField;
public var streakMaxt:TextField;
public var url:String;
public var totalt:TextField;
public var backb2:MovieClip;
public var uneta2:MovieClip;
public function panelResults_167(){
addFrameScript(0, frame1, 1, frame2);
}
public function destruyemenuJugador(){
backb.removeEventListener(MouseEvent.MOUSE_OVER, back);
backb.removeEventListener(MouseEvent.MOUSE_OUT, back);
backb.removeEventListener(MouseEvent.CLICK, back);
getb.removeEventListener(MouseEvent.MOUSE_OVER, getS);
getb.removeEventListener(MouseEvent.MOUSE_OUT, getS);
getb.removeEventListener(MouseEvent.CLICK, getS);
}
public function back2(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta.visible = false;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
root["stage"]["quality"] = StageQuality.LOW;
if (root["Level"] < 12){
root["core"].nextLevel();
} else {
if ((((root["Level"] == 12)) && ((root["storyMode"] == true)))){
var _local2 = root;
_local2["gotoAndPlay"]("final");
} else {
root["core"].nextLevel();
};
};
gotoAndStop(1);
};
};
};
}
function frame2(){
stop();
uneta.visible = false;
backb2.buttonMode = true;
backb2.addEventListener(MouseEvent.MOUSE_OVER, back2);
backb2.addEventListener(MouseEvent.MOUSE_OUT, back2);
backb2.addEventListener(MouseEvent.CLICK, back2);
}
function frame1(){
uneta.visible = false;
uneta2.visible = false;
menuJugador();
stop();
url = "http://www.bekhoteam.net/santa2web";
request = new URLRequest(url);
url2 = "http://www.bekhoteam.net/santa2web/joethurber";
request2 = new URLRequest(url2);
}
public function menuJugador(){
backb.buttonMode = true;
backb.addEventListener(MouseEvent.MOUSE_OVER, back);
backb.addEventListener(MouseEvent.MOUSE_OUT, back);
backb.addEventListener(MouseEvent.CLICK, back);
getb.buttonMode = true;
getb.addEventListener(MouseEvent.MOUSE_OVER, getS);
getb.addEventListener(MouseEvent.MOUSE_OUT, getS);
getb.addEventListener(MouseEvent.CLICK, getS);
}
public function getS(_arg1:MouseEvent):void{
var e = _arg1;
if (e.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta2.visible = true;
} else {
if (e.type == "mouseOut"){
uneta2.visible = false;
} else {
if (e.type == "click"){
root["playapres"] = root["apres"].play();
if ((((((((((((((root["Level"] == 1)) || ((root["Level"] == 2)))) || ((root["Level"] == 5)))) || ((root["Level"] == 6)))) || ((root["Level"] == 9)))) || ((root["Level"] == 10)))) || ((root["Level"] == 12)))){
MochiBot.track(this, "fc67161a");
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
} else {
MochiBot.track(this, "c4d5b7ec");
try {
navigateToURL(request2, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
};
};
};
};
}
public function back(_arg1:MouseEvent):void{
var _local2:String;
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta.visible = false;
} else {
if (_arg1.type == "click"){
GameNodeAPI.score = Number(scoret.text);
root["stage"]["quality"] = StageQuality.HIGH;
_local2 = (String(root["Level"]) + String(root["difficulty"]));
GameNodeAPI.level = _local2;
gotoAndStop(2);
};
};
};
}
}
}//package Santa2v1_fla
Section 94
//panelStory_66 (Santa2v1_fla.panelStory_66)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import com.gamenode.*;
import caurina.transitions.properties.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class panelStory_66 extends MovieClip {
public var s5b:MovieClip;
public var uneta3:MovieClip;
public var uneta4:MovieClip;
public var s1b:MovieClip;
public var lb4:MovieClip;
public var uneta6:MovieClip;
public var uneta7:MovieClip;
public var s12b:MovieClip;
public var uneta1:MovieClip;
public var lb2:MovieClip;
public var s6b:MovieClip;
public var s2b:MovieClip;
public var uneta5:MovieClip;
public var c1:TextField;
public var c2:TextField;
public var c3:TextField;
public var c4:TextField;
public var c6:TextField;
public var c7:TextField;
public var c8:TextField;
public var c5:TextField;
public var s7b:MovieClip;
public var s3b:MovieClip;
public var tapa3:MovieClip;
public var uneta:MovieClip;
public var backb:MovieClip;
public var s8b:MovieClip;
public var unetal2:MovieClip;
public var unetal3:MovieClip;
public var unetal4:MovieClip;
public var tapa2:MovieClip;
public var s4b:MovieClip;
public var encore1:MovieClip;
public var encore2:MovieClip;
public var encore3:MovieClip;
public var unetal1:MovieClip;
public var s11b:MovieClip;
public var uneta2:MovieClip;
public var lb1:MovieClip;
public var lb3:MovieClip;
public var uneta8:MovieClip;
public function panelStory_66(){
addFrameScript(0, frame1);
}
function frame1(){
uneta.visible = false;
menuJugador();
backb.buttonMode = true;
stop();
}
public function destruyemenuJugador(){
backb.removeEventListener(MouseEvent.MOUSE_OVER, back);
backb.removeEventListener(MouseEvent.MOUSE_OUT, back);
backb.removeEventListener(MouseEvent.CLICK, back);
s1b.removeEventListener(MouseEvent.MOUSE_OVER, s1);
s1b.removeEventListener(MouseEvent.MOUSE_OUT, s1);
s1b.removeEventListener(MouseEvent.CLICK, s1);
s2b.removeEventListener(MouseEvent.MOUSE_OVER, s2);
s2b.removeEventListener(MouseEvent.MOUSE_OUT, s2);
s2b.removeEventListener(MouseEvent.CLICK, s2);
s3b.removeEventListener(MouseEvent.MOUSE_OVER, s3);
s3b.removeEventListener(MouseEvent.MOUSE_OUT, s3);
s3b.removeEventListener(MouseEvent.CLICK, s3);
s4b.removeEventListener(MouseEvent.MOUSE_OVER, s4);
s4b.removeEventListener(MouseEvent.MOUSE_OUT, s4);
s4b.removeEventListener(MouseEvent.CLICK, s4);
s5b.removeEventListener(MouseEvent.MOUSE_OVER, s5);
s5b.removeEventListener(MouseEvent.MOUSE_OUT, s5);
s5b.removeEventListener(MouseEvent.CLICK, s5);
s6b.removeEventListener(MouseEvent.MOUSE_OVER, s6);
s6b.removeEventListener(MouseEvent.MOUSE_OUT, s6);
s6b.removeEventListener(MouseEvent.CLICK, s6);
s7b.removeEventListener(MouseEvent.MOUSE_OVER, s7);
s7b.removeEventListener(MouseEvent.MOUSE_OUT, s7);
s7b.removeEventListener(MouseEvent.CLICK, s7);
s8b.removeEventListener(MouseEvent.MOUSE_OVER, s8);
s8b.removeEventListener(MouseEvent.MOUSE_OUT, s8);
s8b.removeEventListener(MouseEvent.CLICK, s8);
lb1.removeEventListener(MouseEvent.MOUSE_OVER, l1);
lb1.removeEventListener(MouseEvent.MOUSE_OUT, l1);
lb1.removeEventListener(MouseEvent.CLICK, l1);
lb2.removeEventListener(MouseEvent.MOUSE_OVER, l2);
lb2.removeEventListener(MouseEvent.MOUSE_OUT, l2);
lb2.removeEventListener(MouseEvent.CLICK, l2);
lb3.removeEventListener(MouseEvent.MOUSE_OVER, l3);
lb3.removeEventListener(MouseEvent.MOUSE_OUT, l3);
lb3.removeEventListener(MouseEvent.CLICK, l3);
lb4.removeEventListener(MouseEvent.MOUSE_OVER, l4);
lb4.removeEventListener(MouseEvent.MOUSE_OUT, l4);
lb4.removeEventListener(MouseEvent.CLICK, l4);
}
public function s3(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta3.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta3.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin7"]("panelStory", 3);
};
};
};
}
public function s4(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta4.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta4.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin7"]("panelStory", 4);
};
};
};
}
public function s5(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta5.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta5.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin7"]("panelStory", 5);
};
};
};
}
public function s7(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta7.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta7.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin7"]("panelStory", 7);
};
};
};
}
public function s1(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta1.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta1.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin7"]("panelStory", 1);
};
};
};
}
public function s2(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta2.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta2.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin7"]("panelStory", 2);
};
};
};
}
public function s8(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta8.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta8.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin7"]("panelStory", 8);
};
};
};
}
public function menuJugador(){
var _local1:*;
_local1 = 1;
while (_local1 <= 4) {
this[("unetal" + _local1)].visible = false;
_local1++;
};
_local1 = 1;
while (_local1 <= 8) {
this[("uneta" + _local1)].visible = false;
if (root["pasadas"][_local1] == true){
this[("c" + _local1)].text = "CLEARED!";
} else {
this[("c" + _local1)].text = "";
};
_local1++;
};
if (root["levelPasado1"] == true){
tapa2.visible = false;
encore1.visible = false;
s4b.addEventListener(MouseEvent.MOUSE_OVER, s4);
s4b.addEventListener(MouseEvent.MOUSE_OUT, s4);
s4b.addEventListener(MouseEvent.CLICK, s4);
s5b.addEventListener(MouseEvent.MOUSE_OVER, s5);
s5b.addEventListener(MouseEvent.MOUSE_OUT, s5);
s5b.addEventListener(MouseEvent.CLICK, s5);
lb2.addEventListener(MouseEvent.MOUSE_OVER, l2);
lb2.addEventListener(MouseEvent.MOUSE_OUT, l2);
lb2.addEventListener(MouseEvent.CLICK, l2);
if (encore2.visible == false){
s6b.addEventListener(MouseEvent.MOUSE_OVER, s6);
s6b.addEventListener(MouseEvent.MOUSE_OUT, s6);
s6b.addEventListener(MouseEvent.CLICK, s6);
};
};
if (root["levelPasado2"] == true){
tapa2.visible = false;
tapa3.visible = false;
encore2.visible = false;
s7b.addEventListener(MouseEvent.MOUSE_OVER, s7);
s7b.addEventListener(MouseEvent.MOUSE_OUT, s7);
s7b.addEventListener(MouseEvent.CLICK, s7);
s8b.addEventListener(MouseEvent.MOUSE_OVER, s8);
s8b.addEventListener(MouseEvent.MOUSE_OUT, s8);
s8b.addEventListener(MouseEvent.CLICK, s8);
lb3.addEventListener(MouseEvent.MOUSE_OVER, l3);
lb3.addEventListener(MouseEvent.MOUSE_OUT, l3);
lb3.addEventListener(MouseEvent.CLICK, l3);
lb4.addEventListener(MouseEvent.MOUSE_OVER, l4);
lb4.addEventListener(MouseEvent.MOUSE_OUT, l4);
lb4.addEventListener(MouseEvent.CLICK, l4);
if (encore3.visible == false){
};
if (encore2.visible == false){
s6b.addEventListener(MouseEvent.MOUSE_OVER, s6);
s6b.addEventListener(MouseEvent.MOUSE_OUT, s6);
s6b.addEventListener(MouseEvent.CLICK, s6);
};
};
if (encore3.visible == false){
};
backb.addEventListener(MouseEvent.MOUSE_OVER, back);
backb.addEventListener(MouseEvent.MOUSE_OUT, back);
backb.addEventListener(MouseEvent.CLICK, back);
s1b.addEventListener(MouseEvent.MOUSE_OVER, s1);
s1b.addEventListener(MouseEvent.MOUSE_OUT, s1);
s1b.addEventListener(MouseEvent.CLICK, s1);
s2b.addEventListener(MouseEvent.MOUSE_OVER, s2);
s2b.addEventListener(MouseEvent.MOUSE_OUT, s2);
s2b.addEventListener(MouseEvent.CLICK, s2);
lb1.addEventListener(MouseEvent.MOUSE_OVER, l1);
lb1.addEventListener(MouseEvent.MOUSE_OUT, l1);
lb1.addEventListener(MouseEvent.CLICK, l1);
if (encore1.visible == false){
s3b.addEventListener(MouseEvent.MOUSE_OVER, s3);
s3b.addEventListener(MouseEvent.MOUSE_OUT, s3);
s3b.addEventListener(MouseEvent.CLICK, s3);
};
}
public function s6(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta6.visible = true;
} else {
if (_arg1.type == "mouseOut"){
uneta6.visible = false;
} else {
if (_arg1.type == "click"){
destruyemenuJugador();
root["playapres"] = root["apres"].play();
var _local2 = root["menu"];
_local2["menuFin7"]("panelStory", 6);
};
};
};
}
public function l3(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
unetal3.visible = true;
} else {
if (_arg1.type == "mouseOut"){
unetal3.visible = false;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(7);
};
};
};
}
public function l4(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
unetal4.visible = true;
} else {
if (_arg1.type == "mouseOut"){
unetal4.visible = false;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(7);
};
};
};
}
public function l1(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
unetal1.visible = true;
} else {
if (_arg1.type == "mouseOut"){
unetal1.visible = false;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(7);
};
};
};
}
public function back(_arg1:MouseEvent):void{
var e = _arg1;
if (e.type == "mouseOver"){
root["playeles"] = root["eles"].play();
uneta.visible = true;
} else {
if (e.type == "mouseOut"){
uneta.visible = false;
} else {
if (e.type == "click"){
destruyemenuJugador();
try {
root["playloops"].stop();
} catch(e:Error) {
};
root["quickBack"] = false;
root["quickStory"] = false;
var _local3 = root;
_local3["IntroSound"]();
root["playapres"] = root["apres"].play();
_local3 = root["menu"];
_local3["menuFin"]("panelStory");
};
};
};
}
public function l2(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
unetal2.visible = true;
} else {
if (_arg1.type == "mouseOut"){
unetal2.visible = false;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(7);
};
};
};
}
}
}//package Santa2v1_fla
Section 95
//Preloader_1 (Santa2v1_fla.Preloader_1)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import com.mochiads.*;
import flash.text.*;
import flash.net.*;
import com.gamenode.*;
import com.cpmstar.*;
public dynamic class Preloader_1 extends MovieClip {
public var CPMStarSubPoolID:int;
public var totalBytes:int;
public var CPMStarPoolID:int;
public var gotoFrame:int;
public var startTime:Date;
public var mc_download:MovieClip;
public var mc_hide_progressbar:MovieClip;
public var dtext_progress:TextField;
public var mc_progressbar:MovieClip;
public var ad:DisplayObject;
public var MochiSettings:Object;
public var adBox:MovieClip;
public var advertiser:String;
public var origFrameRate;
public var CPMStarContentSpotID:String;
public function Preloader_1(){
addFrameScript(0, frame1, 1, frame2, 29, frame30, 41, frame42, 99, frame100, 157, frame158, 162, frame163, 203, frame204);
}
function frame30(){
stop();
addEventListener(Event.ENTER_FRAME, progressHandler);
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
}
public function gotoDownload(_arg1:Event):void{
var e = _arg1;
var request:URLRequest = new URLRequest("http://www.gamenode.com/games-for-your-website/");
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function gotoGameNode(_arg1:Event){
GameNodeAPI.gotoURL(0);
}
function frame158(){
if (advertiser != "CPMStar"){
};
}
function frame204(){
stop();
stage.frameRate = origFrameRate;
MovieClip(root).gotoAndPlay(gotoFrame);
}
function frame100(){
buttonMode = true;
addEventListener(MouseEvent.CLICK, gotoGameNode);
}
function frame163(){
if (advertiser != "CPMStar"){
stop();
addEventListener(Event.ENTER_FRAME, progressHandler);
};
}
function frame42(){
gotoAndPlay(100);
}
function frame2(){
mc_download.addEventListener(MouseEvent.CLICK, gotoDownload);
}
public function progressHandler(_arg1:Event):void{
var _local2:Date = new Date();
var _local3:Number = ((this.loaderInfo.bytesLoaded / totalBytes) * 100);
var _local4:Number = ((_local2.getTime() - startTime.getTime()) / 100);
var _local5:Number = Math.min(_local3, _local4);
mc_progressbar.scaleX = (_local5 / 100);
dtext_progress.text = (Math.ceil(_local5) + "%");
dtext_progress.x = (-178 + (1.6 * _local5));
if (_local5 >= 100){
removeEventListener(Event.ENTER_FRAME, progressHandler);
play();
};
}
function frame1(){
MovieClip(root).stop();
origFrameRate = stage.frameRate;
CPMStarPoolID = 1322;
CPMStarSubPoolID = 10;
startTime = new Date();
totalBytes = this.loaderInfo.bytesTotal;
stage.frameRate = 25;
if (GameNodeAPI.locked){
gotoAndStop(2);
} else {
gotoAndPlay(10);
};
if (advertiser == "MochiAds"){
MochiSettings = {clip:root, id:"ad888a519a33b8a1", res:((stage.stageWidth + "x") + stage.stageHeight), background:2434583, color:0xFFFFFF, outline:0xFFFFFF, no_bg:true, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}};
MochiAd.showPreGameAd(MochiSettings);
};
}
}
}//package Santa2v1_fla
Section 96
//retrynew_175 (Santa2v1_fla.retrynew_175)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class retrynew_175 extends MovieClip {
public var nob:MovieClip;
public var noAb:MovieClip;
public var siPb:MovieClip;
public var sib:MovieClip;
public var noPb:MovieClip;
public var siAb:MovieClip;
public function retrynew_175(){
addFrameScript(0, frame1);
}
public function menuJugador(){
sib.buttonMode = true;
sib.addEventListener(MouseEvent.MOUSE_OVER, si);
sib.addEventListener(MouseEvent.MOUSE_OUT, si);
sib.addEventListener(MouseEvent.CLICK, si);
nob.buttonMode = true;
nob.addEventListener(MouseEvent.MOUSE_OVER, no);
nob.addEventListener(MouseEvent.MOUSE_OUT, no);
nob.addEventListener(MouseEvent.CLICK, no);
}
function frame1(){
noPb.visible = false;
siPb.visible = false;
menuJugador();
stop();
}
public function destruyemenuJugador(){
sib.removeEventListener(MouseEvent.MOUSE_OVER, si);
sib.removeEventListener(MouseEvent.MOUSE_OUT, si);
sib.removeEventListener(MouseEvent.CLICK, si);
nob.removeEventListener(MouseEvent.MOUSE_OVER, no);
nob.removeEventListener(MouseEvent.MOUSE_OUT, no);
nob.removeEventListener(MouseEvent.CLICK, no);
}
public function si(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
siAb.visible = false;
siPb.visible = true;
} else {
if (_arg1.type == "mouseOut"){
siPb.visible = false;
siAb.visible = true;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
var _local2 = root;
_local2["removeChild"](root["core"]["guitar"]);
_local2 = root;
_local2["removeChild"](root["core"]["cuerdas"]);
_local2 = root;
_local2["iniciarStage"]();
};
};
};
}
public function no(_arg1:MouseEvent):void{
if (_arg1.type == "mouseOver"){
root["playeles"] = root["eles"].play();
noAb.visible = false;
noPb.visible = true;
} else {
if (_arg1.type == "mouseOut"){
noPb.visible = false;
noAb.visible = true;
} else {
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
if (root["storyMode"] == false){
var _local2 = root["core"];
_local2["gameOverQuick"]();
} else {
_local2 = root["core"];
_local2["gameOverStory"]();
};
};
};
};
}
}
}//package Santa2v1_fla
Section 97
//santaEasybitmap2_47 (Santa2v1_fla.santaEasybitmap2_47)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class santaEasybitmap2_47 extends MovieClip {
public function santaEasybitmap2_47(){
addFrameScript(58, frame59, 97, frame98, 144, frame145, 203, frame204, 0x0100, frame257, 320, frame321, 363, frame364);
}
function frame59(){
gotoAndPlay("stand");
}
function frame145(){
gotoAndPlay("goPlay2");
}
function frame321(){
stop();
}
function frame257(){
root["guitarraCrash"]["visible"] = true;
var _local1 = root["guitarraCrash"];
_local1["gotoAndPlay"](2);
}
function frame204(){
gotoAndPlay("goPlay4");
}
function frame364(){
gotoAndPlay("gana");
}
function frame98(){
gotoAndPlay("goPlay1");
}
}
}//package Santa2v1_fla
Section 98
//santaEasyPalFinal_183 (Santa2v1_fla.santaEasyPalFinal_183)
package Santa2v1_fla {
import flash.display.*;
public dynamic class santaEasyPalFinal_183 extends MovieClip {
public function santaEasyPalFinal_183(){
addFrameScript(42, frame43);
}
function frame43(){
gotoAndPlay("gana");
}
}
}//package Santa2v1_fla
Section 99
//santahardbitmap2_49 (Santa2v1_fla.santahardbitmap2_49)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class santahardbitmap2_49 extends MovieClip {
public function santahardbitmap2_49(){
addFrameScript(58, frame59, 97, frame98, 144, frame145, 203, frame204, 0x0100, frame257, 322, frame323, 365, frame366);
}
function frame59(){
gotoAndPlay("stand");
}
function frame145(){
gotoAndPlay("goPlay2");
}
function frame366(){
gotoAndPlay("gana");
}
function frame323(){
stop();
}
function frame204(){
gotoAndPlay("goPlay4");
}
function frame98(){
gotoAndPlay("goPlay1");
}
function frame257(){
root["guitarraCrash"]["visible"] = true;
var _local1 = root["guitarraCrash"];
_local1["gotoAndPlay"](2);
}
}
}//package Santa2v1_fla
Section 100
//santaHardPalFinal_181 (Santa2v1_fla.santaHardPalFinal_181)
package Santa2v1_fla {
import flash.display.*;
public dynamic class santaHardPalFinal_181 extends MovieClip {
public function santaHardPalFinal_181(){
addFrameScript(58, frame59);
}
function frame59(){
gotoAndPlay("goPlay4");
}
}
}//package Santa2v1_fla
Section 101
//santaMediobitmap2_48 (Santa2v1_fla.santaMediobitmap2_48)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class santaMediobitmap2_48 extends MovieClip {
public function santaMediobitmap2_48(){
addFrameScript(58, frame59, 97, frame98, 144, frame145, 203, frame204, 254, frame255, 320, frame321, 363, frame364);
}
function frame59(){
gotoAndPlay("stand");
}
function frame145(){
gotoAndPlay("goPlay2");
}
function frame321(){
stop();
}
function frame204(){
gotoAndPlay("goPlay4");
}
function frame364(){
gotoAndPlay("gana");
}
function frame98(){
gotoAndPlay("goPlay1");
}
function frame255(){
root["guitarraCrash"]["visible"] = true;
var _local1 = root["guitarraCrash"];
_local1["gotoAndPlay"](2);
}
}
}//package Santa2v1_fla
Section 102
//santaMedioPalFinal_182 (Santa2v1_fla.santaMedioPalFinal_182)
package Santa2v1_fla {
import flash.display.*;
public dynamic class santaMedioPalFinal_182 extends MovieClip {
public function santaMedioPalFinal_182(){
addFrameScript(46, frame47);
}
function frame47(){
gotoAndPlay("goPlay3");
}
}
}//package Santa2v1_fla
Section 103
//stage1_117 (Santa2v1_fla.stage1_117)
package Santa2v1_fla {
import flash.display.*;
public dynamic class stage1_117 extends MovieClip {
public function stage1_117(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package Santa2v1_fla
Section 104
//starchico_163 (Santa2v1_fla.starchico_163)
package Santa2v1_fla {
import flash.display.*;
public dynamic class starchico_163 extends MovieClip {
public function starchico_163(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Santa2v1_fla
Section 105
//tapAmarillo_143 (Santa2v1_fla.tapAmarillo_143)
package Santa2v1_fla {
import flash.display.*;
public dynamic class tapAmarillo_143 extends MovieClip {
public function tapAmarillo_143(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Santa2v1_fla
Section 106
//tapanotas_152 (Santa2v1_fla.tapanotas_152)
package Santa2v1_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import com.gamenode.*;
import flash.system.*;
import flash.xml.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class tapanotas_152 extends MovieClip {
public var request4:URLRequest;
public var gnb:MovieClip;
public var url4:String;
public function tapanotas_152(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
url4 = "http://www.gamenode.com";
request4 = new URLRequest(url4);
gnb.addEventListener(MouseEvent.CLICK, gamenodeEvent);
gnb.buttonMode = true;
stop();
}
function frame2(){
stop();
}
public function gamenodeEvent(_arg1:MouseEvent):void{
if (_arg1.type == "click"){
root["playapres"] = root["apres"].play();
GameNodeAPI.gotoURL(7);
};
}
function frame3(){
stop();
}
}
}//package Santa2v1_fla
Section 107
//tapAzul_142 (Santa2v1_fla.tapAzul_142)
package Santa2v1_fla {
import flash.display.*;
public dynamic class tapAzul_142 extends MovieClip {
public function tapAzul_142(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Santa2v1_fla
Section 108
//tapNaranjo_141 (Santa2v1_fla.tapNaranjo_141)
package Santa2v1_fla {
import flash.display.*;
public dynamic class tapNaranjo_141 extends MovieClip {
public function tapNaranjo_141(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Santa2v1_fla
Section 109
//tapRojo_140 (Santa2v1_fla.tapRojo_140)
package Santa2v1_fla {
import flash.display.*;
public dynamic class tapRojo_140 extends MovieClip {
public function tapRojo_140(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Santa2v1_fla
Section 110
//tapVerde_139 (Santa2v1_fla.tapVerde_139)
package Santa2v1_fla {
import flash.display.*;
public dynamic class tapVerde_139 extends MovieClip {
public function tapVerde_139(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Santa2v1_fla
Section 111
//transicion_170 (Santa2v1_fla.transicion_170)
package Santa2v1_fla {
import flash.display.*;
public dynamic class transicion_170 extends MovieClip {
public function transicion_170(){
addFrameScript(0, frame1, 85, frame86);
}
function frame86(){
stop();
}
function frame1(){
stop();
}
}
}//package Santa2v1_fla
Section 112
//apretars (apretars)
package {
import flash.media.*;
public dynamic class apretars extends Sound {
}
}//package
Section 113
//Barra (Barra)
package {
import flash.display.*;
public dynamic class Barra extends MovieClip {
public function Barra(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 114
//boton1 (boton1)
package {
import flash.display.*;
public dynamic class boton1 extends MovieClip {
}
}//package
Section 115
//boton1p (boton1p)
package {
import flash.display.*;
public dynamic class boton1p extends MovieClip {
public function boton1p(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 116
//boton1s (boton1s)
package {
import flash.display.*;
public dynamic class boton1s extends MovieClip {
}
}//package
Section 117
//boton1t (boton1t)
package {
import flash.display.*;
public dynamic class boton1t extends MovieClip {
}
}//package
Section 118
//boton2 (boton2)
package {
import flash.display.*;
public dynamic class boton2 extends MovieClip {
}
}//package
Section 119
//boton2p (boton2p)
package {
import flash.display.*;
public dynamic class boton2p extends MovieClip {
public function boton2p(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 120
//boton2s (boton2s)
package {
import flash.display.*;
public dynamic class boton2s extends MovieClip {
}
}//package
Section 121
//boton2t (boton2t)
package {
import flash.display.*;
public dynamic class boton2t extends MovieClip {
}
}//package
Section 122
//boton3 (boton3)
package {
import flash.display.*;
public dynamic class boton3 extends MovieClip {
}
}//package
Section 123
//boton3p (boton3p)
package {
import flash.display.*;
public dynamic class boton3p extends MovieClip {
public function boton3p(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 124
//boton3s (boton3s)
package {
import flash.display.*;
public dynamic class boton3s extends MovieClip {
}
}//package
Section 125
//boton3t (boton3t)
package {
import flash.display.*;
public dynamic class boton3t extends MovieClip {
}
}//package
Section 126
//boton4 (boton4)
package {
import flash.display.*;
public dynamic class boton4 extends MovieClip {
}
}//package
Section 127
//boton4p (boton4p)
package {
import flash.display.*;
public dynamic class boton4p extends MovieClip {
public function boton4p(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 128
//boton4s (boton4s)
package {
import flash.display.*;
public dynamic class boton4s extends MovieClip {
}
}//package
Section 129
//boton4t (boton4t)
package {
import flash.display.*;
public dynamic class boton4t extends MovieClip {
}
}//package
Section 130
//boton5 (boton5)
package {
import flash.display.*;
public dynamic class boton5 extends MovieClip {
}
}//package
Section 131
//boton5p (boton5p)
package {
import flash.display.*;
public dynamic class boton5p extends MovieClip {
public function boton5p(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 132
//boton5s (boton5s)
package {
import flash.display.*;
public dynamic class boton5s extends MovieClip {
}
}//package
Section 133
//boton5t (boton5t)
package {
import flash.display.*;
public dynamic class boton5t extends MovieClip {
}
}//package
Section 134
//botonc1 (botonc1)
package {
import flash.display.*;
public dynamic class botonc1 extends MovieClip {
}
}//package
Section 135
//botonc2 (botonc2)
package {
import flash.display.*;
public dynamic class botonc2 extends MovieClip {
}
}//package
Section 136
//botonc3 (botonc3)
package {
import flash.display.*;
public dynamic class botonc3 extends MovieClip {
}
}//package
Section 137
//botonc4 (botonc4)
package {
import flash.display.*;
public dynamic class botonc4 extends MovieClip {
}
}//package
Section 138
//botonc5 (botonc5)
package {
import flash.display.*;
public dynamic class botonc5 extends MovieClip {
}
}//package
Section 139
//CellRenderer_disabledSkin (CellRenderer_disabledSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_disabledSkin extends MovieClip {
}
}//package
Section 140
//CellRenderer_downSkin (CellRenderer_downSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_downSkin extends MovieClip {
}
}//package
Section 141
//CellRenderer_overSkin (CellRenderer_overSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_overSkin extends MovieClip {
}
}//package
Section 142
//CellRenderer_selectedDisabledSkin (CellRenderer_selectedDisabledSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedDisabledSkin extends MovieClip {
}
}//package
Section 143
//CellRenderer_selectedDownSkin (CellRenderer_selectedDownSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedDownSkin extends MovieClip {
}
}//package
Section 144
//CellRenderer_selectedOverSkin (CellRenderer_selectedOverSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedOverSkin extends MovieClip {
}
}//package
Section 145
//CellRenderer_selectedUpSkin (CellRenderer_selectedUpSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedUpSkin extends MovieClip {
}
}//package
Section 146
//CellRenderer_upSkin (CellRenderer_upSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_upSkin extends MovieClip {
}
}//package
Section 147
//ComboBox_disabledSkin (ComboBox_disabledSkin)
package {
import flash.display.*;
public dynamic class ComboBox_disabledSkin extends MovieClip {
}
}//package
Section 148
//ComboBox_downSkin (ComboBox_downSkin)
package {
import flash.display.*;
public dynamic class ComboBox_downSkin extends MovieClip {
}
}//package
Section 149
//ComboBox_overSkin (ComboBox_overSkin)
package {
import flash.display.*;
public dynamic class ComboBox_overSkin extends MovieClip {
}
}//package
Section 150
//ComboBox_upSkin (ComboBox_upSkin)
package {
import flash.display.*;
public dynamic class ComboBox_upSkin extends MovieClip {
}
}//package
Section 151
//ConfigIni (ConfigIni)
package {
import flash.display.*;
public class ConfigIni {
private var root:MovieClip;
private var TotalLevels:Number;
public function ConfigIni(_arg1:MovieClip, _arg2:Number){
root = _arg1;
TotalLevels = 12;
var _local3:Number = 1;
_local3 = 1;
while (_local3 < 6) {
root[("start" + _local3)].visible = false;
_local3++;
};
_local3 = 1;
while (_local3 < 6) {
root[("hit" + _local3)].visible = false;
_local3++;
};
_local3 = 1;
while (_local3 <= TotalLevels) {
if (_local3 == _arg2){
root.core[("song" + _local3)].NotasColoresTotales(root.core["Difficulty"]);
root.core[("song" + _local3)].NotasPressTotales(root.core["Difficulty"]);
root.core[("song" + _local3)].NotasTiempos(root.core["Difficulty"]);
root.core[("song" + _local3)].NotasStarPower(root.core["Difficulty"]);
break;
};
_local3++;
};
}
}
}//package
Section 152
//Control (Control)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import gs2.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import caurina.transitions.properties.*;
public class Control {
private var extra:Number;// = 1
public var starPowerYes:Boolean;
public var tapping1:Boolean;// = false
public var tapping2:Boolean;// = false
public var tapping3:Boolean;// = false
public var tapping4:Boolean;// = false
public var tapping5:Boolean;// = false
public var press1:Boolean;// = false
public var press2:Boolean;// = false
public var press3:Boolean;// = false
public var press4:Boolean;// = false
public var press5:Boolean;// = false
private var hiloPress:Array;
public var hiloMiss:uint;
private var j:Number;
var FeverS:feverS;
public var hiloControl;
var playfeverS:SoundChannel;
private var quitaVida:int;// = 1
public var starPowerFail:Boolean;// = false
private var hiloFever:uint;
public var totalStar:int;// = 0
public var tolerancia1:Boolean;// = false
public var tolerancia2:Boolean;// = false
public var apretar:Boolean;// = true
public var tolerancia4:Boolean;// = false
public var tolerancia5:Boolean;// = false
public var tolerancia3:Boolean;// = false
public var notaTocada1:Boolean;// = false
public var notaTocada2:Boolean;// = false
public var notaTocada3:Boolean;// = false
public var notaTocada4:Boolean;// = false
public var notaTocada5:Boolean;// = false
private var hiloSumaScore:Array;
private var root:MovieClip;
private var hiloStarPower:uint;
private var Explosion:Array;
public function Control(_arg1:MovieClip){
Explosion = new Array();
hiloSumaScore = new Array();
hiloPress = new Array();
super();
root = _arg1;
FeverS = new feverS();
press1 = false;
press2 = false;
press3 = false;
press4 = false;
press5 = false;
notaTocada1 = false;
notaTocada2 = false;
notaTocada3 = false;
notaTocada4 = false;
notaTocada5 = false;
tolerancia1 = false;
tolerancia2 = false;
tolerancia3 = false;
tolerancia4 = false;
tolerancia5 = false;
extra = 0.85;
tapping1 = false;
tapping2 = false;
tapping3 = false;
tapping4 = false;
tapping5 = false;
starPowerYes = false;
starPowerTermina();
starPowerComienza();
}
public function teclasDOWN3(_arg1:KeyboardEvent):void{
var _local2:Number;
var _local3:Number;
if ((((_arg1.keyCode == root.core.AdvancedKeys[2])) && ((notaTocada3 == false)))){
root.tap3.gotoAndPlay(2);
notaTocada3 = true;
j = 1;
while (j <= root.core.totalNotes) {
if (root.core.NotaTapping[j] == true){
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 3)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
tapping3 = true;
root.core.NotaBorrada[j] = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press3 == false)))){
press3 = true;
hiloSumaScore[3] = setInterval(SumaScore, 60, j);
ConfiguraNotaPress(j);
tapping3 = true;
sumaBar(j);
restauraStar(j);
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
};
};
};
};
j++;
};
} else {
if ((((_arg1.keyCode == root.core.AdvancedKeys[6])) && ((notaTocada3 == true)))){
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN3);
j = 1;
while (j <= root.core.totalNotes) {
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 3)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
root.core.NotaBorrada[j] = true;
tolerancia3 = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press3 == false)))){
press3 = true;
hiloSumaScore[3] = setInterval(SumaScore, 60, j);
tolerancia3 = true;
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
};
};
};
j++;
};
if (tolerancia3 == false){
if (tapping3 == false){
root.misst.visible = true;
root.misst.y = root.core.misstyaux;
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
root.core.vidaBar = (root.core.vidaBar - (0.5 * root.core.Difficulty));
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > root.core.streakMax){
root.core.streakMax = root.core.combo;
};
verificaStarPower();
root.core.combo = 0;
root.altavoz.streak.text = "";
clearInterval(hiloMiss);
_local3 = Math.ceil((Math.random() * 3));
root.core.volumeControl.volume = 0.4;
root.core[("playfs" + _local3)] = root.core[("fallos" + _local3)].play();
root.core[("playfs" + _local3)].soundTransform = root.core.volumeControl;
clearInterval(root.core.hiloVolumenFallo);
root.core.missTotal = (root.core.missTotal + 1);
hiloMiss = setInterval(Miss, 400);
} else {
tapping3 = false;
};
} else {
tolerancia3 = false;
};
};
};
}
public function teclasDOWN5(_arg1:KeyboardEvent):void{
var _local2:Number;
var _local3:Number;
if ((((_arg1.keyCode == root.core.AdvancedKeys[4])) && ((notaTocada5 == false)))){
root.tap5.gotoAndPlay(2);
notaTocada5 = true;
j = 1;
while (j <= root.core.totalNotes) {
if (root.core.NotaTapping[j] == true){
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 5)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
tapping5 = true;
root.core.NotaBorrada[j] = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press5 == false)))){
press5 = true;
hiloSumaScore[5] = setInterval(SumaScore, 60, j);
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
tapping5 = true;
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
};
};
};
};
j++;
};
} else {
if ((((_arg1.keyCode == root.core.AdvancedKeys[6])) && ((notaTocada5 == true)))){
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN5);
j = 1;
while (j <= root.core.totalNotes) {
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 5)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
root.core.NotaBorrada[j] = true;
tolerancia5 = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press5 == false)))){
press5 = true;
hiloSumaScore[5] = setInterval(SumaScore, 60, j);
tolerancia5 = true;
ConfiguraNotaPress(j);
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
};
};
};
j++;
};
if (tolerancia5 == false){
if (tapping5 == false){
root.misst.visible = true;
root.misst.y = root.core.misstyaux;
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
root.core.vidaBar = (root.core.vidaBar - (0.5 * root.core.Difficulty));
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > root.core.streakMax){
root.core.streakMax = root.core.combo;
};
verificaStarPower();
root.core.combo = 0;
root.altavoz.streak.text = "";
clearInterval(hiloMiss);
_local3 = Math.ceil((Math.random() * 3));
root.core.volumeControl.volume = 0.4;
root.core[("playfs" + _local3)] = root.core[("fallos" + _local3)].play();
root.core[("playfs" + _local3)].soundTransform = root.core.volumeControl;
clearInterval(root.core.hiloVolumenFallo);
root.core.missTotal = (root.core.missTotal + 1);
hiloMiss = setInterval(Miss, 400);
} else {
tapping5 = false;
};
} else {
tolerancia5 = false;
};
};
};
}
public function teclasDOWN6(_arg1:KeyboardEvent):void{
var _local2:Number;
var _local3:Number;
if ((((_arg1.keyCode == root.core.BasicKeys[0])) && ((notaTocada1 == false)))){
root.tap1.gotoAndPlay(2);
notaTocada1 = true;
j = 1;
while (j <= root.core.totalNotes) {
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 1)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
notaTocada1 = false;
root.core.NotaBorrada[j] = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press1 == false)))){
press1 = true;
hiloSumaScore[1] = setInterval(SumaScore, 60, j);
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
notaTocada1 = false;
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
} else {
if (root.core.Boton[j].hitTestObject(root.limitLine)){
notaTocada1 = false;
};
};
};
};
j++;
};
if (notaTocada1 == true){
root.misst.visible = true;
root.misst.y = root.core.misstyaux;
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
root.core.vidaBar = (root.core.vidaBar - (0.5 * root.core.Difficulty));
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > root.core.streakMax){
root.core.streakMax = root.core.combo;
};
root.core.combo = 0;
verificaStarPower();
root.altavoz.streak.text = "";
clearInterval(hiloMiss);
_local3 = Math.ceil((Math.random() * 3));
root.core.volumeControl.volume = 0.4;
root.core[("playfs" + _local3)] = root.core[("fallos" + _local3)].play();
root.core[("playfs" + _local3)].soundTransform = root.core.volumeControl;
clearInterval(root.core.hiloVolumenFallo);
root.core.missTotal = (root.core.missTotal + 1);
hiloMiss = setInterval(Miss, 400);
notaTocada1 = false;
};
};
if ((((_arg1.keyCode == root.core.BasicKeys[1])) && ((notaTocada2 == false)))){
root.tap2.gotoAndPlay(2);
notaTocada2 = true;
j = 1;
while (j <= root.core.totalNotes) {
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 2)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
notaTocada2 = false;
root.core.NotaBorrada[j] = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press2 == false)))){
press2 = true;
hiloSumaScore[2] = setInterval(SumaScore, 60, j);
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
notaTocada2 = false;
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
} else {
if (root.core.Boton[j].hitTestObject(root.limitLine)){
notaTocada2 = false;
};
};
};
};
j++;
};
if (notaTocada2 == true){
root.misst.visible = true;
root.misst.y = root.core.misstyaux;
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
root.core.vidaBar = (root.core.vidaBar - (0.5 * root.core.Difficulty));
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > root.core.streakMax){
root.core.streakMax = root.core.combo;
};
root.core.combo = 0;
verificaStarPower();
root.altavoz.streak.text = "";
clearInterval(hiloMiss);
_local3 = Math.ceil((Math.random() * 3));
root.core.volumeControl.volume = 0.4;
root.core[("playfs" + _local3)] = root.core[("fallos" + _local3)].play();
root.core[("playfs" + _local3)].soundTransform = root.core.volumeControl;
clearInterval(root.core.hiloVolumenFallo);
root.core.missTotal = (root.core.missTotal + 1);
hiloMiss = setInterval(Miss, 400);
notaTocada2 = false;
};
};
if ((((_arg1.keyCode == root.core.BasicKeys[2])) && ((notaTocada3 == false)))){
root.tap3.gotoAndPlay(2);
notaTocada3 = true;
j = 1;
while (j <= root.core.totalNotes) {
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 3)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
notaTocada3 = false;
root.core.NotaBorrada[j] = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press3 == false)))){
press3 = true;
hiloSumaScore[3] = setInterval(SumaScore, 60, j);
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
notaTocada3 = false;
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
} else {
if (root.core.Boton[j].hitTestObject(root.limitLine)){
notaTocada3 = false;
};
};
};
};
j++;
};
if (notaTocada3 == true){
root.misst.visible = true;
root.misst.y = root.core.misstyaux;
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
root.core.vidaBar = (root.core.vidaBar - (0.5 * root.core.Difficulty));
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > root.core.streakMax){
root.core.streakMax = root.core.combo;
};
root.core.combo = 0;
verificaStarPower();
root.altavoz.streak.text = "";
clearInterval(hiloMiss);
_local3 = Math.ceil((Math.random() * 3));
root.core.volumeControl.volume = 0.4;
root.core[("playfs" + _local3)] = root.core[("fallos" + _local3)].play();
root.core[("playfs" + _local3)].soundTransform = root.core.volumeControl;
clearInterval(root.core.hiloVolumenFallo);
root.core.missTotal = (root.core.missTotal + 1);
hiloMiss = setInterval(Miss, 400);
notaTocada3 = false;
};
};
if ((((_arg1.keyCode == root.core.BasicKeys[3])) && ((notaTocada4 == false)))){
root.tap4.gotoAndPlay(2);
notaTocada4 = true;
j = 1;
while (j <= root.core.totalNotes) {
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 4)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
root.core.NotaBorrada[j] = true;
notaTocada4 = false;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press4 == false)))){
press4 = true;
hiloSumaScore[4] = setInterval(SumaScore, 60, j);
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
notaTocada4 = false;
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
} else {
if (root.core.Boton[j].hitTestObject(root.limitLine)){
notaTocada4 = false;
};
};
};
};
j++;
};
if (notaTocada4 == true){
root.misst.visible = true;
root.misst.y = root.core.misstyaux;
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
root.core.vidaBar = (root.core.vidaBar - (0.5 * root.core.Difficulty));
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > root.core.streakMax){
root.core.streakMax = root.core.combo;
};
root.core.combo = 0;
verificaStarPower();
root.altavoz.streak.text = "";
clearInterval(hiloMiss);
_local3 = Math.ceil((Math.random() * 3));
root.core.volumeControl.volume = 0.4;
root.core[("playfs" + _local3)] = root.core[("fallos" + _local3)].play();
root.core[("playfs" + _local3)].soundTransform = root.core.volumeControl;
clearInterval(root.core.hiloVolumenFallo);
root.core.missTotal = (root.core.missTotal + 1);
hiloMiss = setInterval(Miss, 400);
notaTocada4 = false;
};
};
if ((((_arg1.keyCode == root.core.BasicKeys[4])) && ((notaTocada5 == false)))){
root.tap5.gotoAndPlay(2);
notaTocada5 = true;
j = 1;
while (j <= root.core.totalNotes) {
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 5)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
notaTocada5 = false;
root.core.NotaBorrada[j] = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press5 == false)))){
press5 = true;
hiloSumaScore[5] = setInterval(SumaScore, 60, j);
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
notaTocada5 = false;
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
} else {
if (root.core.Boton[j].hitTestObject(root.limitLine)){
notaTocada5 = false;
};
};
};
};
j++;
};
if (notaTocada5 == true){
root.misst.visible = true;
root.misst.y = root.core.misstyaux;
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
root.core.vidaBar = (root.core.vidaBar - (0.5 * root.core.Difficulty));
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > root.core.streakMax){
root.core.streakMax = root.core.combo;
};
root.core.combo = 0;
verificaStarPower();
root.altavoz.streak.text = "";
clearInterval(hiloMiss);
_local3 = Math.ceil((Math.random() * 3));
root.core.volumeControl.volume = 0.4;
root.core[("playfs" + _local3)] = root.core[("fallos" + _local3)].play();
root.core[("playfs" + _local3)].soundTransform = root.core.volumeControl;
clearInterval(root.core.hiloVolumenFallo);
root.core.missTotal = (root.core.missTotal + 1);
hiloMiss = setInterval(Miss, 400);
notaTocada5 = false;
};
};
}
public function teclasDOWN2(_arg1:KeyboardEvent):void{
var _local2:Number;
var _local3:Number;
if ((((_arg1.keyCode == root.core.AdvancedKeys[1])) && ((notaTocada2 == false)))){
root.tap2.gotoAndPlay(2);
notaTocada2 = true;
j = 1;
while (j <= root.core.totalNotes) {
if (root.core.NotaTapping[j] == true){
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 2)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
tapping2 = true;
root.core.NotaBorrada[j] = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press2 == false)))){
press2 = true;
hiloSumaScore[2] = setInterval(SumaScore, 60, j);
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
};
};
};
};
j++;
};
} else {
if ((((_arg1.keyCode == root.core.AdvancedKeys[6])) && ((notaTocada2 == true)))){
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN2);
j = 1;
while (j <= root.core.totalNotes) {
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 2)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
root.core.NotaBorrada[j] = true;
tolerancia2 = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press2 == false)))){
press2 = true;
hiloSumaScore[2] = setInterval(SumaScore, 60, j);
tolerancia2 = true;
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
tapping2 = true;
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
};
};
};
j++;
};
if (tolerancia2 == false){
if (tapping2 == false){
root.misst.visible = true;
root.misst.y = root.core.misstyaux;
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
root.core.vidaBar = (root.core.vidaBar - (0.5 * root.core.Difficulty));
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > root.core.streakMax){
root.core.streakMax = root.core.combo;
};
verificaStarPower();
root.core.combo = 0;
root.altavoz.streak.text = "";
clearInterval(hiloMiss);
_local3 = Math.ceil((Math.random() * 3));
root.core.volumeControl.volume = 0.4;
root.core[("playfs" + _local3)] = root.core[("fallos" + _local3)].play();
root.core[("playfs" + _local3)].soundTransform = root.core.volumeControl;
clearInterval(root.core.hiloVolumenFallo);
root.core.missTotal = (root.core.missTotal + 1);
hiloMiss = setInterval(Miss, 400);
} else {
tapping2 = false;
};
} else {
tolerancia2 = false;
};
};
};
}
public function verificaStarPower(){
var aux:int;
var k:int;
var posX:Number;
var posY:Number;
var frame:int;
var index:int;
if (root.core.starChance == true){
root.core.starChance = false;
starPowerFail = true;
aux = root.core.indexStarChance;
for (;aux < (root.core.indexStarChance + totalStar);(aux = (aux + 1))) {
posX = root.core.Boton[aux].x;
posY = root.core.Boton[aux].y;
frame = root.core.Boton[aux].currentFrame;
index = root.getChildIndex(root.core.Boton[aux]);
Tweener.removeTweens(root.core.Boton[aux]);
root.removeChild(root.core.Boton[aux]);
switch ((root.core.NotaColor[aux] + 1)){
case 1:
root.core.Boton[aux] = new boton1();
break;
case 2:
root.core.Boton[aux] = new boton2();
break;
case 3:
root.core.Boton[aux] = new boton3();
break;
case 4:
root.core.Boton[aux] = new boton4();
break;
case 5:
root.core.Boton[aux] = new boton5();
break;
};
root.addChild(root.core.Boton[aux]);
root.setChildIndex(root.core.Boton[aux], index);
root.core.Boton[aux].x = posX;
root.core.Boton[aux].y = (posY - 10);
root.core.Boton[aux].gotoAndStop(frame);
root.core.creaAnimacion(aux, (root.core.NotaColor[aux] + 1));
root.core.BotonP[aux].gotoAndStop(1);
//unresolved jump
var _slot1 = e;
continue;
continue;
var _slot1 = e;
continue;
};
};
}
public function SueltaPress(_arg1:int){
var _local4:*;
var _local2:int = root.core.totalNotes;
var _local3 = 1;
while (_local3 <= root.core.totalNotes) {
if ((((((((this[("press" + _arg1)] == false)) && ((root.core.NotaBorrada[_local3] == false)))) && (((root.core.NotaColor[_local3] + 1) == _arg1)))) && ((root.core.NotaPress[_local3] > 0)))){
clearInterval(hiloPress[_local3]);
_local4 = new DropShadowFilter(7, 45, 0, 0.5, 7, 7, 1, 2);
root.core.BotonP[_local3].filters = [_local4];
if (root.core.NotaBorrada[_local3] == false){
root.removeChild(root.core.Boton[_local3]);
ExplosionRemove(_local3);
};
root.core.NotaBorrada[_local3] = true;
clearInterval(hiloSumaScore[_arg1]);
clearInterval(hiloMiss);
break;
};
_local3++;
};
}
public function teclasDOWN4(_arg1:KeyboardEvent):void{
var _local2:Number;
var _local3:Number;
if ((((_arg1.keyCode == root.core.AdvancedKeys[3])) && ((notaTocada4 == false)))){
root.tap4.gotoAndPlay(2);
notaTocada4 = true;
j = 1;
while (j <= root.core.totalNotes) {
if (root.core.NotaTapping[j] == true){
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 4)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
tapping4 = true;
root.core.NotaBorrada[j] = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press4 == false)))){
press4 = true;
hiloSumaScore[4] = setInterval(SumaScore, 60, j);
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
tapping4 = true;
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
};
};
};
};
j++;
};
} else {
if ((((_arg1.keyCode == root.core.AdvancedKeys[6])) && ((notaTocada4 == true)))){
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN4);
j = 1;
while (j <= root.core.totalNotes) {
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 4)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
root.core.NotaBorrada[j] = true;
tolerancia4 = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press4 == false)))){
press4 = true;
hiloSumaScore[4] = setInterval(SumaScore, 60, j);
tolerancia4 = true;
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
};
};
};
j++;
};
if (tolerancia4 == false){
if (tapping4 == false){
root.misst.visible = true;
root.misst.y = root.core.misstyaux;
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
root.core.vidaBar = (root.core.vidaBar - (0.5 * root.core.Difficulty));
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > root.core.streakMax){
root.core.streakMax = root.core.combo;
};
verificaStarPower();
root.core.combo = 0;
root.altavoz.streak.text = "";
clearInterval(hiloMiss);
_local3 = Math.ceil((Math.random() * 3));
root.core.volumeControl.volume = 0.4;
root.core[("playfs" + _local3)] = root.core[("fallos" + _local3)].play();
root.core[("playfs" + _local3)].soundTransform = root.core.volumeControl;
clearInterval(root.core.hiloVolumenFallo);
root.core.missTotal = (root.core.missTotal + 1);
hiloMiss = setInterval(Miss, 400);
} else {
tapping4 = false;
};
} else {
tolerancia4 = false;
};
};
};
}
private function SumaScore2():void{
root.altavoz.puntaje.text = String((Number(root.altavoz.puntaje.text) + Math.ceil(((root.core.combo * root.core.aumentador) / 15))));
}
public function destroyed(){
if (root.core.BasicM == false){
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN);
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN2);
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN3);
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN4);
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN5);
root.stage.removeEventListener(KeyboardEvent.KEY_UP, teclasUP);
root.stage.removeEventListener(KeyboardEvent.KEY_UP, teclasUP2);
root.stage.removeEventListener(KeyboardEvent.KEY_UP, teclasUP3);
root.stage.removeEventListener(KeyboardEvent.KEY_UP, teclasUP4);
root.stage.removeEventListener(KeyboardEvent.KEY_UP, teclasUP5);
} else {
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN6);
root.stage.removeEventListener(KeyboardEvent.KEY_UP, teclasUP6);
};
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWNStarPower);
}
public function Miss(){
if (starPowerYes == false){
root.core.aumentador = 1;
root[("santa" + root.core.Difficulty)].gotoAndPlay("play1");
root.altavoz.combo.gotoAndStop(1);
} else {
root.core.aumentador = 2;
root[("santa" + root.core.Difficulty)].gotoAndPlay("play1");
root.altavoz.combo.gotoAndStop(2);
};
root.misst.visible = false;
clearInterval(hiloMiss);
}
private function Press(_arg1:Number){
var j = _arg1;
var i:int = (root.core.NotaColor[j] + 1);
if (this[("press" + i)] == true){
if (root.core.NotaBorrada[j] == false){
if (root.core.NotaBorrada[j] == false){
try {
root.core.BotonP[j].visible = false;
root.removeChild(root.core.Boton[j]);
} catch(e:Error) {
};
ExplosionRemove(j);
};
clearInterval(hiloSumaScore[i]);
root.core.NotaBorrada[j] = true;
this[("notaTocada" + i)] = true;
this[("press" + i)] = false;
this[("press" + i)] = false;
};
};
clearInterval(hiloPress[j]);
}
private function restauraStar(_arg1:int){
if ((_arg1 - totalStar) == root.core.indexStarChance){
root.core.StopStarChance();
};
}
public function teclasUP2(_arg1:KeyboardEvent):void{
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN2);
if (_arg1.keyCode == root.core.AdvancedKeys[1]){
if (press2 == true){
press2 = false;
notaTocada2 = false;
SueltaPress(2);
root.tap2.gotoAndStop(1);
} else {
notaTocada2 = false;
root.tap2.gotoAndStop(1);
};
};
if (_arg1.keyCode == root.core.AdvancedKeys[6]){
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN2);
};
}
public function teclasUP3(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == root.core.AdvancedKeys[2]){
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN3);
if (press3 == true){
press3 = false;
notaTocada3 = false;
SueltaPress(3);
root.tap3.gotoAndStop(1);
} else {
notaTocada3 = false;
root.tap3.gotoAndStop(1);
};
};
if (_arg1.keyCode == root.core.AdvancedKeys[6]){
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN3);
};
}
public function teclasUP4(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == root.core.AdvancedKeys[3]){
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN4);
if (press4 == true){
press4 = false;
notaTocada4 = false;
SueltaPress(4);
root.tap4.gotoAndStop(1);
} else {
notaTocada4 = false;
root.tap4.gotoAndStop(1);
};
};
if (_arg1.keyCode == root.core.AdvancedKeys[6]){
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN4);
};
}
public function mataHilos(){
var _local1:int;
_local1 = 1;
while (_local1 <= 5) {
clearInterval(hiloSumaScore[_local1]);
clearInterval(hiloPress[_local1]);
_local1++;
};
clearInterval(hiloMiss);
clearInterval(hiloStarPower);
clearInterval(hiloFever);
}
public function teclasUP6(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == root.core.BasicKeys[0]){
if (press1 == true){
press1 = false;
notaTocada1 = false;
SueltaPress(1);
root.tap1.gotoAndStop(1);
} else {
notaTocada1 = false;
root.tap1.gotoAndStop(1);
};
};
if (_arg1.keyCode == root.core.BasicKeys[1]){
if (press2 == true){
press2 = false;
notaTocada2 = false;
SueltaPress(2);
root.tap2.gotoAndStop(1);
} else {
notaTocada2 = false;
root.tap2.gotoAndStop(1);
};
};
if (_arg1.keyCode == root.core.BasicKeys[2]){
if (press3 == true){
press3 = false;
notaTocada3 = false;
SueltaPress(3);
root.tap3.gotoAndStop(1);
} else {
notaTocada3 = false;
root.tap3.gotoAndStop(1);
};
};
if (_arg1.keyCode == root.core.BasicKeys[3]){
if (press4 == true){
press4 = false;
notaTocada4 = false;
SueltaPress(4);
root.tap4.gotoAndStop(1);
} else {
notaTocada4 = false;
root.tap4.gotoAndStop(1);
};
};
if (_arg1.keyCode == root.core.BasicKeys[4]){
if (press5 == true){
press5 = false;
notaTocada5 = false;
SueltaPress(5);
root.tap5.gotoAndStop(1);
} else {
notaTocada5 = false;
root.tap5.gotoAndStop(1);
};
};
}
public function teclasUP5(_arg1:KeyboardEvent):void{
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN5);
if (_arg1.keyCode == root.core.AdvancedKeys[4]){
if (press5 == true){
press5 = false;
notaTocada5 = false;
SueltaPress(5);
root.tap5.gotoAndStop(1);
} else {
notaTocada5 = false;
root.tap5.gotoAndStop(1);
};
};
if (_arg1.keyCode == root.core.AdvancedKeys[6]){
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN5);
};
}
private function ConfiguraNotaPress(_arg1:int){
Tweener.removeTweens(root.core.Boton[_arg1]);
var _local2:int = (root.core.NotaColor[_arg1] + 1);
if (starPowerYes == false){
Explosion[_arg1] = new explosion();
} else {
Explosion[_arg1] = new explosion3();
};
Explosion[_arg1].width = (Explosion[_arg1].width * 0.8);
Explosion[_arg1].height = (Explosion[_arg1].height * 0.8);
Explosion[_arg1].alpha = 0.7;
root.addChild(Explosion[_arg1]);
Explosion[_arg1].x = root[("hit" + _local2)].x;
Explosion[_arg1].y = (root[("hit" + _local2)].y - 20);
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / root.core.Difficulty)) + root.core.feverPlus);
var _local3:Number = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local3, time:0.25, transition:"easeOut"});
sumaBar(_arg1);
if (root.core.combo > 1){
root.altavoz.streak.text = String(Math.floor(root.core.combo));
};
SumaScore2();
if ((((root.core.starChance == true)) && ((root.core.NotaStarPower[_arg1] == 1)))){
TweenFilterLite.to(root.core.BotonP[_arg1], 0, {glowFilter:{color:6750207, alpha:1, blurX:4, blurY:4, strength:8, quality:1}});
} else {
if (_local2 == 1){
TweenFilterLite.to(root.core.BotonP[_arg1], 0, {glowFilter:{color:10092339, alpha:1, blurX:20, blurY:20, strength:8, quality:1}});
} else {
if (_local2 == 2){
TweenFilterLite.to(root.core.BotonP[_arg1], 0, {glowFilter:{color:0xFF0066, alpha:1, blurX:20, blurY:20, strength:8, quality:1}});
} else {
if (_local2 == 3){
TweenFilterLite.to(root.core.BotonP[_arg1], 0, {glowFilter:{color:16777113, alpha:1, blurX:20, blurY:20, strength:8, quality:1}});
} else {
if (_local2 == 4){
TweenFilterLite.to(root.core.BotonP[_arg1], 0, {glowFilter:{color:39423, alpha:1, blurX:20, blurY:20, strength:8, quality:1}});
} else {
if (_local2 == 5){
TweenFilterLite.to(root.core.BotonP[_arg1], 0, {glowFilter:{color:16763955, alpha:1, blurX:20, blurY:20, strength:8, quality:1}});
};
};
};
};
};
};
}
private function Fever(){
starPowerYes = false;
root.matanotas.gotoAndStop(1);
root.core.aumentador = (root.core.aumentador / 2);
switch (root.core.aumentador){
case 1:
root.altavoz.combo.gotoAndStop(1);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play1");
break;
case 2:
root.altavoz.combo.gotoAndStop(2);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play1");
break;
case 3:
root.altavoz.combo.gotoAndStop(3);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play2");
break;
case 4:
root.altavoz.combo.gotoAndStop(4);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play2");
break;
};
root.feverx4.visible = false;
root.core.guitar.gotoAndStop((root.core.guitar.currentFrame - 1));
root.core.avisoFever = false;
clearInterval(hiloFever);
}
public function teclasDOWNStarPower(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == root.core.AdvancedKeys[5])) && ((root.medidor.currentFrame == 7)))){
playfeverS = FeverS.play();
root.core.aumentador = (root.core.aumentador * 2);
switch (root.core.aumentador){
case 2:
root.altavoz.combo.gotoAndStop(2);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play1");
break;
case 4:
root.altavoz.combo.gotoAndStop(4);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play2");
break;
case 6:
root.altavoz.combo.gotoAndStop(5);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play3");
break;
case 8:
root.altavoz.combo.gotoAndStop(6);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play4");
break;
};
starPowerYes = true;
root.matanotas.gotoAndStop(2);
root.medidor.gotoAndStop(1);
root.feverx4.visible = true;
root.core.guitar.gotoAndStop((root.core.guitar.currentFrame + 1));
clearInterval(hiloFever);
hiloFever = setInterval(Fever, 15000);
};
}
public function starPowerComienza(){
hiloStarPower = setInterval(StarPower, root.core.fpsAux);
}
public function starPowerTermina(){
clearInterval(hiloStarPower);
}
private function SumaScore(_arg1:int){
root.altavoz.puntaje.text = String((Number(root.altavoz.puntaje.text) + Math.ceil((((2 * root.core.combo) * root.core.aumentador) / 15))));
}
public function comienzaControl(){
if (root.core.BasicM == false){
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN);
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN2);
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN3);
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN4);
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN5);
root.stage.addEventListener(KeyboardEvent.KEY_UP, teclasUP);
root.stage.addEventListener(KeyboardEvent.KEY_UP, teclasUP2);
root.stage.addEventListener(KeyboardEvent.KEY_UP, teclasUP3);
root.stage.addEventListener(KeyboardEvent.KEY_UP, teclasUP4);
root.stage.addEventListener(KeyboardEvent.KEY_UP, teclasUP5);
} else {
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN6);
root.stage.addEventListener(KeyboardEvent.KEY_UP, teclasUP6);
};
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWNStarPower);
}
public function StarPower(){
if ((((root.core.combo >= 12)) && ((root.core.combo < 36)))){
if ((((starPowerYes == false)) && ((root.core.aumentador == 1)))){
root.core.aumentador = (root.core.aumentador + 1);
root.altavoz.combo.gotoAndStop(2);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play1");
};
};
if ((((root.core.combo >= 36)) && ((root.core.combo < 72)))){
if ((((starPowerYes == false)) && ((root.core.aumentador == 2)))){
root.core.aumentador = (root.core.aumentador + 1);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play2");
root.altavoz.combo.gotoAndStop(3);
};
};
if (root.core.combo >= 72){
if ((((starPowerYes == false)) && ((root.core.aumentador == 3)))){
root.core.aumentador = (root.core.aumentador + 1);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play2");
root.altavoz.combo.gotoAndStop(4);
};
};
if ((((root.core.combo >= 24)) && ((root.core.combo < 60)))){
if ((((starPowerYes == true)) && ((root.core.aumentador == 2)))){
root.core.aumentador = (root.core.aumentador + 2);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play2");
root.altavoz.combo.gotoAndStop(4);
};
};
if ((((root.core.combo >= 60)) && ((root.core.combo < 108)))){
if ((((starPowerYes == true)) && ((root.core.aumentador == 4)))){
root.core.aumentador = (root.core.aumentador + 2);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play3");
root.altavoz.combo.gotoAndStop(5);
};
};
if (root.core.combo >= 108){
if ((((starPowerYes == true)) && ((root.core.aumentador == 6)))){
root.core.aumentador = (root.core.aumentador + 2);
root[("santa" + root.core.Difficulty)].gotoAndPlay("play4");
root.altavoz.combo.gotoAndStop(6);
};
};
}
private function sumaBar(_arg1:int){
if ((((((root.core.indexStarChance == (_arg1 - (totalStar - 1)))) && ((starPowerFail == false)))) && (!((root.core.indexStarChance == -9999))))){
if (root.medidor.currentFrame <= 5){
root.medidor.gotoAndStop((root.medidor.currentFrame + 2));
} else {
root.medidor.gotoAndStop(7);
};
root.core.indexStarChance = -9999;
root.core.StopStarChance();
};
}
public function ExplosionRemove(_arg1:int){
var i = _arg1;
try {
root.removeChild(Explosion[i]);
} catch(e:Error) {
i = 0;
while (i <= (root.core.totalNotes + 4)) {
try {
root.removeChild(Explosion[i]);
} catch(e:Error) {
trace("se me quedo un fuego pegao");
};
i = (i + 1);
};
};
}
public function teclasUP(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == root.core.AdvancedKeys[0]){
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN);
if (press1 == true){
press1 = false;
notaTocada1 = false;
SueltaPress(1);
root.tap1.gotoAndStop(1);
} else {
notaTocada1 = false;
root.tap1.gotoAndStop(1);
};
};
if (_arg1.keyCode == root.core.AdvancedKeys[6]){
root.stage.addEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN);
};
}
public function teclasDOWN(_arg1:KeyboardEvent):void{
var _local2:Number;
var _local3:Number;
if ((((_arg1.keyCode == root.core.AdvancedKeys[0])) && ((notaTocada1 == false)))){
root.tap1.gotoAndPlay(2);
notaTocada1 = true;
j = 1;
while (j <= root.core.totalNotes) {
if (root.core.NotaTapping[j] == true){
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 1)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
root.core.BUENAS = (root.core.BUENAS + 1);
sumaBar(j);
restauraStar(j);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
tapping1 = true;
root.core.NotaBorrada[j] = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press1 == false)))){
press1 = true;
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
tapping1 = true;
hiloSumaScore[1] = setInterval(SumaScore, 60, j);
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
};
};
};
};
j++;
};
} else {
if ((((_arg1.keyCode == root.core.AdvancedKeys[6])) && ((notaTocada1 == true)))){
root.stage.removeEventListener(KeyboardEvent.KEY_DOWN, teclasDOWN);
j = 1;
while (j <= root.core.totalNotes) {
if ((((root.core.NotaBorrada[j] == false)) && (((root.core.NotaColor[j] + 1) == 1)))){
if (root.core.NotaPress[j] == 0){
if (root.core.Boton[j].hitTestObject(root.limitLine)){
root.core.combo = (root.core.combo + (1 * root.core.aumentador));
sumaBar(j);
restauraStar(j);
root.core.BUENAS = (root.core.BUENAS + 1);
root.core.vidaBar = ((root.core.vidaBar + (1 / quitaVida)) + root.core.feverPlus);
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
if (root.core.combo > 1){
root.altavoz.streak.text = Math.floor(root.core.combo);
};
notaClear(j);
root.core.NotaBorrada[j] = true;
tolerancia1 = true;
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
root.core.hiloTocaNotas[j] = setInterval(root.core.TocaNotas, 300, j);
break;
};
} else {
if (((root.core.Boton[j].hitTestObject(root.limitLine)) && ((press1 == false)))){
press1 = true;
hiloSumaScore[1] = setInterval(SumaScore, 60, j);
tolerancia1 = true;
ConfiguraNotaPress(j);
sumaBar(j);
restauraStar(j);
hiloPress[j] = setInterval(Press, ((root.core.NotaPress[j] * 1000) * extra), j);
clearInterval(root.core.hiloTocaNotas[j]);
SumaScore2();
break;
};
};
};
j++;
};
if (tolerancia1 == false){
if (tapping1 == false){
root.misst.visible = true;
root.misst.y = root.core.misstyaux;
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
root.core.vidaBar = (root.core.vidaBar - (0.5 * root.core.Difficulty));
_local2 = (((9 / 10) * root.core.vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local2, time:0.25, transition:"easeOut"});
verificaStarPower();
if (root.core.combo > root.core.streakMax){
root.core.streakMax = root.core.combo;
};
root.core.combo = 0;
root.altavoz.streak.text = "";
clearInterval(hiloMiss);
_local3 = Math.ceil((Math.random() * 3));
root.core.volumeControl.volume = 0.4;
root.core[("playfs" + _local3)] = root.core[("fallos" + _local3)].play();
root.core[("playfs" + _local3)].soundTransform = root.core.volumeControl;
clearInterval(root.core.hiloVolumenFallo);
root.core.missTotal = (root.core.missTotal + 1);
hiloMiss = setInterval(Miss, 400);
} else {
tapping1 = false;
};
} else {
tolerancia1 = false;
};
};
};
}
private function notaClear(_arg1:Number):void{
if (starPowerYes == false){
Explosion[_arg1] = new explosion();
} else {
Explosion[_arg1] = new explosion3();
};
Explosion[_arg1].width = (Explosion[_arg1].width * 0.8);
Explosion[_arg1].height = (Explosion[_arg1].height * 0.8);
Explosion[_arg1].alpha = 0.7;
root.addChild(Explosion[_arg1]);
var _local2:int = (root.core[("song" + root.core.Level)].NotaColorTotal[_arg1] + 1);
Explosion[_arg1].x = root[("hit" + _local2)].x;
Explosion[_arg1].y = (root[("hit" + _local2)].y - 20);
Tweener.removeTweens(root.core.Boton[_arg1]);
root.removeChild(root.core.Boton[_arg1]);
}
}
}//package
Section 153
//coreSystem (coreSystem)
package {
import flash.display.*;
import caurina.transitions.*;
import gs2.*;
import flash.utils.*;
import flash.media.*;
import caurina.transitions.properties.*;
public class coreSystem {
public var tiempoFijo:Number;// = 3.3125
public var hiloTiempo:Timer;
public var hiloClearStage:uint;
private var frameAux:Array;
public var fevertyaux:Number;
private var tiempoCopones:Array;
public var starChance:Boolean;// = false
private var coponCentro:Array;
public var avisoFever:Boolean;
private var hiloBorraGrinchA:uint;
public var feverPlus:int;
public var NotaBorrada:Array;
private var speed:Number;
public var NotaTiempo:Array;
private var starChanceEnter:Boolean;// = false
private var NotasRound:Boolean;// = true
public var agrandamiento:Number;// = 30
private var hiloLetraFever:uint;
private var CoponBorrado:Array;
public var hiloVolumenFallo;
private var frameAuxCopon:Array;
private var largoIndex:int;// = 1
public var guitar:guitarra;
public var cuerdas:Cuerdas;
public var indexStarChance:int;// = -9999
public var tiempo:Number;// = 0
private var QuickPlay:Boolean;// = false
public var misstyaux:Number;
public var music2:santaS2;
private var coponDer:Array;
var streakPerfect:Number;// = 0
public var music5:santaS5;
public var music6:santaS6;
public var music7:santaS7;
public var music1:santaS1;
public var music3:santaS3;
public var music4:santaS4;
public var music8:santaS8;
private var hiloTrans;
private var BasicMode:Boolean;// = true
public var puntajeTotal:Number;
public var NotaPress:Array;
public var PUNTAJE:int;
private var index:Number;// = 604
public var hiloApretar;
public var hiloGoblinHit1:uint;
public var hiloGoblinHit2:uint;
private var root:MovieClip;
public var volumeControl:SoundTransform;
private var retraso:Number;
private var noteTemp:Number;// = 1
public var notasMax:Number;// = 1
private var Explosion:Array;
private var capaCopon:int;// = 528
public var playMusic1:SoundChannel;
public var streakMax:Number;
private var hiloGrinch:uint;
public var hiloStage;
public var fpsAux:Number;// = 100
public var FAIL:Boolean;// = false
public var BasicKeys:Array;
private var hiloStopStarChance:uint;
private var corrimientoInicial:Number;
public var hiloGoblin:uint;
private var qualityAux:Number;// = 3
public var BotonP:Array;
public var playfs1:SoundChannel;
private var orden:Array;
public var playfs3:SoundChannel;
public var AdvancedKeys:Array;
private var IniQuickPlay:Boolean;// = false
public var BasicKeysA:Array;
public var tiempoTapping:Number;// = 200
private var YPress:Number;
public var Level:Number;
public var control:Control;
private var hiloCopones:Array;
public var BUENAS:int;
public var MALAS:int;
public var fallos1:fs1;
public var fallos2:fs2;
public var fallos3:fs3;
public var goblinHit1:Boolean;// = false
private var peligro:Boolean;// = false
public var goblinHit2:Boolean;// = false
public var vidaBar:Number;// = 50
public var NotaStarPower:Array;
public var barra:Barra;
public var playfs2:SoundChannel;
public var combo:Number;// = 0
public var FeverRS:feverRS;
public var NotaTapping:Array;
public var missTotal:Number;
public var AdvancedKeysA:Array;
private var hiloCancion:uint;
public var song1:Song1;
public var song2:Song2;
public var song4:Song4;
public var song5:Song5;
public var song6:Song6;
public var song7:Song7;
public var song8:Song8;
public var song3:Song3;
public var Boton:Array;
public var hiloTocaNotas:Array;
public var JUGANDO:Boolean;
public var Difficulty:int;
public var totalNotes:Number;// = 0
public var aumentador:int;// = 1
public var ini:ConfigIni;
public var puntajeGlobal:Number;// = 0
public var NotaColor:Array;
private var MPress:Number;
public var playFeverRS:SoundChannel;
public var hiloMovimiento:Array;
public var BasicM:Boolean;
public function coreSystem(_arg1:MovieClip, _arg2:int, _arg3:Boolean, _arg4:int){
BasicKeys = new Array();
AdvancedKeys = new Array();
BasicKeysA = new Array();
AdvancedKeysA = new Array();
coponCentro = new Array();
coponDer = new Array();
hiloCopones = new Array();
CoponBorrado = new Array();
orden = new Array();
Boton = new Array();
BotonP = new Array();
Explosion = new Array();
fallos1 = new fs1();
fallos2 = new fs2();
fallos3 = new fs3();
FeverRS = new feverRS();
volumeControl = new SoundTransform();
hiloMovimiento = new Array();
hiloTocaNotas = new Array();
NotaBorrada = new Array();
NotaStarPower = new Array();
NotaColor = new Array();
NotaTiempo = new Array();
NotaPress = new Array();
NotaTapping = new Array();
frameAux = new Array();
frameAuxCopon = new Array();
tiempoCopones = new Array();
super();
this.root = _arg1;
this.BasicM = _arg3;
switch (_arg4){
case 1:
this.speed = 2.1;
break;
case 2:
this.speed = 1.9;
break;
case 3:
this.speed = 1.6;
break;
};
root.guitarraCrash.visible = false;
inicio();
this.Level = _arg2;
this.Difficulty = _arg4;
}
public function CoponesAnimacion(_arg1:Number, _arg2:int):void{
var _local3:Number = (1 / 119);
var _local4:Number = (3 / 119);
var _local5:Number = (12 / 119);
var _local6:Number = ((120 - 1) / (root[("end" + _arg2)].y - (root[("start" + _arg2)].y + 10)));
var _local7:Number = ((_local6 * (coponCentro[_arg1].y - (root[("start" + _arg2)].y + 10))) + 1);
var _local8:Number = ((_local5 * _local7) - _local5);
var _local9:Number = ((_local4 * _local7) - _local4);
var _local10:Number = ((_local3 * _local7) - _local3);
if (_local7 >= 101){
_local7 = 101;
} else {
coponCentro[_arg1].gotoAndStop(Math.round(_local7));
};
coponCentro[_arg1].visible = true;
}
private function BorraGrinchA(){
clearInterval(hiloBorraGrinchA);
}
private function BorraNotas(_arg1:Number):void{
var _local2:int;
_local2 = Math.ceil((Math.random() * 3));
Tweener.removeTweens(Boton[_arg1]);
NotaBorrada[_arg1] = true;
if (combo > streakMax){
streakMax = combo;
} else {
streakPerfect = combo;
};
combo = 0;
root.altavoz.streak.text = "";
vidaBar = (vidaBar - (1 * Difficulty));
var _local3:Number = (((9 / 10) * vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local3, time:0.25, transition:"easeOut"});
root.misst.visible = true;
root.misst.y = misstyaux;
if (control.starPowerYes == false){
aumentador = 1;
root.altavoz.combo.gotoAndStop(1);
} else {
aumentador = 2;
root.altavoz.combo.gotoAndStop(2);
};
Tweener.addTween(root.misst, {y:(root.misst.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.misst, {y:(root.misst.y - 10), time:1, delay:0.12, transition:"linear"});
missTotal = (missTotal + 1);
control.verificaStarPower();
volumeControl.volume = 0.4;
this[("playfs" + _local2)] = this[("fallos" + _local2)].play();
this[("playfs" + _local2)].soundTransform = volumeControl;
clearInterval(control.hiloMiss);
control.hiloMiss = setInterval(control.Miss, 400);
borraLaNota(_arg1);
}
private function GoblinHit(){
goblinHit1 = true;
}
public function creaAnimacion(_arg1:Number, _arg2:Number){
var _local3:Number = ((root[("end" + _arg2)].y - root[("start" + _arg2)].y) / speed);
var _local4:Number = ((root[("end" + _arg2)].y - Boton[_arg1].y) / _local3);
Tweener.addTween(Boton[_arg1], {x:root[("end" + _arg2)].x, y:root[("end" + _arg2)].y, time:_local4, onUpdate:Animacion, onUpdateParams:[_arg1, _arg2], onComplete:BorraNotas, onCompleteParams:[_arg1], transition:"linear"});
}
private function VolumenFallo(){
clearInterval(hiloVolumenFallo);
}
private function copones(_arg1:int){
CoponBorrado[_arg1] = false;
coponCentro[_arg1] = new lineaMov();
coponCentro[_arg1].x = root[("start" + 3)].x;
coponCentro[_arg1].y = (root[("start" + 3)].y + 10);
root.addChild(coponCentro[_arg1]);
root.setChildIndex(coponCentro[_arg1], capaCopon);
capaCopon = (capaCopon - 1);
if (capaCopon == 525){
capaCopon = 528;
};
var _local2 = 3;
clearInterval(hiloCopones[_arg1]);
Tweener.addTween(coponCentro[_arg1], {x:root[("end" + _local2)].x, y:root[("end" + _local2)].y, time:speed, onUpdate:CoponesAnimacion, onUpdateParams:[_arg1, _local2], onComplete:BorraCopones, onCompleteParams:[_arg1], transition:"linear"});
}
private function teclasDefault(){
if (BasicMode == false){
AdvancedKeys[0] = AdvancedKeysA[0];
AdvancedKeys[4] = AdvancedKeysA[4];
AdvancedKeys[1] = AdvancedKeysA[1];
AdvancedKeys[3] = AdvancedKeysA[3];
} else {
BasicKeys[0] = BasicKeysA[0];
BasicKeys[4] = BasicKeysA[4];
BasicKeys[1] = BasicKeysA[1];
BasicKeys[3] = BasicKeysA[3];
};
}
private function terminaTodo(){
JUGANDO = false;
}
public function nextLevel(){
var _local3:*;
root.panelResults.visible = false;
root.youRock.visible = false;
var _local1:int;
var _local2:int;
if (root.storyMode == true){
if (root.Level < 3){
_local3 = 1;
while (_local3 <= 2) {
if (root.pasadas[_local3] == true){
_local1 = (_local1 + 1);
};
_local3++;
};
_local2 = 3;
} else {
if (root.Level < 6){
_local3 = 4;
while (_local3 <= 5) {
if (root.pasadas[_local3] == true){
_local1 = (_local1 + 1);
};
_local3++;
};
_local2 = 6;
} else {
if (root.Level < 8){
_local3 = 7;
while (_local3 <= 8) {
if (root.pasadas[_local3] == true){
_local1 = (_local1 + 1);
};
_local3++;
};
_local2 = 9;
};
};
};
if ((((_local1 == 2)) || ((_local1 == 3)))){
switch (_local2){
case 3:
if (root.levelPasado1 == false){
encore(_local2);
} else {
gameOverStory();
};
break;
case 6:
if (root.levelPasado2 == false){
encore(_local2);
} else {
gameOverStory();
};
break;
case 9:
break;
};
} else {
gameOverStory();
};
} else {
continueQuick();
};
}
private function inicio():void{
var _local2:int;
var _local1:Number = 800;
_local2 = 0;
while (_local2 < 900) {
tiempoCopones[_local2] = _local1;
hiloCopones[_local2] = setInterval(copones, tiempoCopones[_local2], _local2);
_local1 = (_local1 + 800);
_local2++;
};
_local2 = 49;
while (_local2 <= 53) {
BasicKeys[(_local2 - 49)] = _local2;
AdvancedKeys[(_local2 - 49)] = _local2;
BasicKeysA[(_local2 - 49)] = _local2;
AdvancedKeysA[(_local2 - 49)] = _local2;
_local2++;
};
BasicKeys[5] = 32;
AdvancedKeys[5] = 32;
AdvancedKeys[6] = 13;
BasicKeysA[5] = 32;
AdvancedKeysA[5] = 32;
AdvancedKeysA[6] = 13;
BasicKeys[0] = 65;
BasicKeys[1] = 83;
BasicKeys[2] = 68;
BasicKeys[3] = 75;
BasicKeys[4] = 76;
BasicKeysA[0] = 65;
BasicKeysA[1] = 83;
BasicKeysA[2] = 68;
BasicKeysA[3] = 75;
BasicKeysA[4] = 76;
}
private function Cancion(){
playMusic1 = this[("music" + Level)].play();
volumeControl.volume = 2;
playMusic1.soundTransform = volumeControl;
hiloStage = setInterval(STAGE, 300);
root[("santa" + Difficulty)].visible = true;
root[("santa" + Difficulty)].gotoAndPlay("play1");
clearInterval(hiloCancion);
}
private function Trans(){
root.transicion.visible = false;
root.altavoz.visible = true;
root.medidor.visible = true;
cuerdas.visible = true;
guitar.visible = true;
root.matanotas.visible = true;
clearInterval(hiloTrans);
}
private function ConfigCopones(_arg1:Number, _arg2:Number):void{
Tweener.addTween(coponCentro[_arg2], {x:root[("endp" + _arg1)].x, y:root[("endp" + _arg1)].y, time:speed, onComplete:BorraCopones, onCompleteParams:[_arg2], transition:"linear"});
}
private function Retry(){
root[("santa" + Difficulty)].gotoAndPlay("pierde");
playMusic1.stop();
control.starPowerTermina();
control.destroyed();
Tweener.pauseAllTweens();
Tweener.removeAllTweens();
root.feverx4.visible = false;
Tweener.addTween(root.tap1, {alpha:0, time:8, delay:0.2});
Tweener.addTween(root.tap2, {alpha:0, time:8, delay:0.2});
Tweener.addTween(root.tap3, {alpha:0, time:8, delay:0.2});
Tweener.addTween(root.tap4, {alpha:0, time:8, delay:0.2});
Tweener.addTween(root.tap5, {alpha:0, time:8, delay:0.2});
Tweener.addTween(guitar, {alpha:0, time:8, delay:0});
Tweener.addTween(barra, {alpha:0, time:4, delay:0});
Tweener.addTween(cuerdas, {alpha:0, time:8, delay:0});
var i:* = 1;
while (this[("song" + Level)].NotaTiempo[i] != -1) {
clearInterval(hiloMovimiento[i]);
i = (i + 1);
};
i = 0;
for (;i < 900;(i = (i + 1))) {
clearInterval(hiloCopones[i]);
root.removeChild(coponCentro[i]);
continue;
var _slot1 = e;
continue;
};
i = 1;
while (this[("song" + Level)].NotaTiempo[i] != -1) {
try {
root.removeChild(BotonP[i]);
} catch(e:ArgumentError) {
} catch(e:Error) {
};
try {
root.removeChild(Boton[i]);
} catch(e:Error) {
} catch(e:Error) {
};
try {
root.removeChild(Explosion[i]);
} catch(e:Error) {
} catch(e:Error) {
};
clearInterval(hiloTocaNotas[i]);
clearInterval(hiloMovimiento[i]);
i = (i + 1);
};
control.mataHilos();
clearInterval(hiloLetraFever);
}
public function ocultaWeas(){
root.areReady.visible = false;
root.youRock.visible = false;
root.encore.visible = false;
root.altavoz.visible = false;
root.medidor.visible = false;
root.transicion.visible = false;
root.tapanotas.visible = false;
root.misst.visible = false;
}
private function Movimiento(_arg1:int, _arg2:int):void{
var p:int;
var V:Number;
var i = _arg1;
var j = _arg2;
NotaBorrada[j] = false;
NotaColor[j] = this[("song" + Level)].NotaColorTotal[j];
NotaPress[j] = this[("song" + Level)].NotaPressTotal[j];
NotaStarPower[j] = this[("song" + Level)].NotaStarPower[j];
if ((((NotaStarPower[j] == 1)) && ((starChanceEnter == false)))){
starChance = true;
starChanceEnter = true;
indexStarChance = j;
control.totalStar = this[("song" + Level)].LargoStar[largoIndex];
largoIndex = (largoIndex + 1);
control.starPowerFail = false;
};
if (NotasRound == true){
if (i == 1){
if ((((NotaStarPower[j] == true)) && ((starChance == true)))){
Boton[j] = new boton1s();
} else {
if (NotaTapping[j] == false){
Boton[j] = new boton1();
} else {
Boton[j] = new boton1t();
};
};
if (NotaPress[j] != 0){
BotonP[j] = new boton1p();
};
} else {
if (i == 2){
if ((((NotaStarPower[j] == true)) && ((starChance == true)))){
Boton[j] = new boton2s();
} else {
if (NotaTapping[j] == false){
Boton[j] = new boton2();
} else {
Boton[j] = new boton2t();
};
};
if (NotaPress[j] != 0){
BotonP[j] = new boton2p();
};
} else {
if (i == 3){
if ((((NotaStarPower[j] == true)) && ((starChance == true)))){
Boton[j] = new boton3s();
} else {
if (NotaTapping[j] == false){
Boton[j] = new boton3();
} else {
Boton[j] = new boton3t();
};
};
if (NotaPress[j] != 0){
BotonP[j] = new boton3p();
};
} else {
if (i == 4){
if ((((NotaStarPower[j] == true)) && ((starChance == true)))){
Boton[j] = new boton4s();
} else {
if (NotaTapping[j] == false){
Boton[j] = new boton4();
} else {
Boton[j] = new boton4t();
};
};
if (NotaPress[j] != 0){
BotonP[j] = new boton4p();
};
} else {
if (i == 5){
if ((((NotaStarPower[j] == true)) && ((starChance == true)))){
Boton[j] = new boton5s();
} else {
if (NotaTapping[j] == false){
Boton[j] = new boton5();
} else {
Boton[j] = new boton5t();
};
};
if (NotaPress[j] != 0){
BotonP[j] = new boton5p();
};
};
};
};
};
};
} else {
if (i == 1){
Boton[j] = new botonc1();
if (NotaPress[j] != 0){
BotonP[j] = new boton1p();
};
} else {
if (i == 2){
Boton[j] = new botonc2();
if (NotaPress[j] != 0){
BotonP[j] = new boton2p();
};
} else {
if (i == 3){
Boton[j] = new botonc3();
if (NotaPress[j] != 0){
BotonP[j] = new boton3p();
};
} else {
if (i == 4){
Boton[j] = new botonc4();
if (NotaPress[j] != 0){
BotonP[j] = new boton4p();
};
} else {
if (i == 5){
Boton[j] = new botonc5();
if (NotaPress[j] != 0){
BotonP[j] = new boton5p();
};
};
};
};
};
};
};
if (j == 1){
};
Boton[j].x = root[("start" + i)].x;
Boton[j].y = root[("start" + i)].y;
NotaColor[j] = this[("song" + Level)].NotaColorTotal[j];
NotaPress[j] = this[("song" + Level)].NotaPressTotal[j];
root.addChild(Boton[j]);
root.setChildIndex(Boton[j], index);
index = (index - 1);
if (index == 581){
index = 604;
};
if (((!((NotaPress[j] == 0))) && ((i == 1)))){
root.addChild(BotonP[j]);
root.setChildIndex(BotonP[j], (index - 49));
BotonP[j].x = root.start1.x;
BotonP[j].y = root.start1.y;
V = ((root["end1"].y - root.start1.y) / speed);
BotonP[j].height = (V * NotaPress[j]);
BotonP[j].rotation = (-180 + ((Math.atan(Math.abs(((root.hit1.x - root.start1.x) / (root.hit1.y - root.start1.y)))) * 180) / Math.PI));
Tweener.addTween(BotonP[j], {x:root["end1"].x, y:root["end1"].y, time:speed, onComplete:ConfigRayas, onCompleteParams:[i, j], transition:"linear"});
} else {
if (((!((NotaPress[j] == 0))) && ((i == 2)))){
root.addChild(BotonP[j]);
root.setChildIndex(BotonP[j], (index - 49));
BotonP[j].x = root.start2.x;
BotonP[j].y = root.start2.y;
V = ((root["end2"].y - root.start2.y) / speed);
BotonP[j].height = (V * NotaPress[j]);
BotonP[j].rotation = (-180 + ((Math.atan(Math.abs(((root.hit2.x - root.start2.x) / (root.hit2.y - root.start2.y)))) * 180) / Math.PI));
Tweener.addTween(BotonP[j], {x:root["end2"].x, y:root["end2"].y, time:speed, onComplete:ConfigRayas, onCompleteParams:[i, j], transition:"linear"});
} else {
if (((!((NotaPress[j] == 0))) && ((i == 3)))){
root.addChild(BotonP[j]);
root.setChildIndex(BotonP[j], (index - 49));
BotonP[j].x = root.start3.x;
BotonP[j].y = root.start3.y;
V = ((root["end3"].y - root.start3.y) / speed);
BotonP[j].height = (V * NotaPress[j]);
Tweener.addTween(BotonP[j], {x:root["end3"].x, y:root["end3"].y, time:speed, onComplete:ConfigRayas, onCompleteParams:[i, j], transition:"linear"});
} else {
if (((!((NotaPress[j] == 0))) && ((i == 4)))){
root.addChild(BotonP[j]);
root.setChildIndex(BotonP[j], (index - 49));
BotonP[j].x = root.start4.x;
BotonP[j].y = root.start4.y;
V = ((root["end4"].y - root.start4.y) / speed);
BotonP[j].height = (V * NotaPress[j]);
BotonP[j].rotation = (180 - ((Math.atan(Math.abs(((root.hit4.x - root.start4.x) / (root.hit4.y - root.start4.y)))) * 180) / Math.PI));
Tweener.addTween(BotonP[j], {x:root["end4"].x, y:root["end4"].y, time:speed, onComplete:ConfigRayas, onCompleteParams:[i, j], transition:"linear"});
} else {
if (((!((NotaPress[j] == 0))) && ((i == 5)))){
root.addChild(BotonP[j]);
root.setChildIndex(BotonP[j], (index - 49));
BotonP[j].x = root.start5.x;
BotonP[j].y = root.start5.y;
V = ((root["end5"].y - root.start5.y) / speed);
BotonP[j].height = (V * NotaPress[j]);
BotonP[j].rotation = (180 - ((Math.atan(Math.abs(((root.hit5.x - root.start5.x) / (root.hit1.y - root.start1.y)))) * 180) / Math.PI));
Tweener.addTween(BotonP[j], {x:root["end5"].x, y:root["end5"].y, time:speed, onComplete:ConfigRayas, onCompleteParams:[i, j], transition:"linear"});
};
};
};
};
};
if (NotaTapping[j] == true){
TweenFilterLite.to(Boton[j], 0, {dropShadowFilter:{color:0xFFFFFF, alpha:1, blurX:1, blurY:1, angle:90, distance:3}});
};
if ((((NotaStarPower[j] == true)) && ((starChance == true)))){
if (NotaPress[j] != 0){
BotonP[j].gotoAndStop(2);
};
} else {
if (NotaPress[j] != 0){
BotonP[j].gotoAndStop(1);
};
};
try {
if (root.getChildIndex(Boton[j]) < root.getChildIndex(BotonP[j])){
root.swapChildren(BotonP[j], Boton[j]);
};
} catch(e:Error) {
};
p = 0;
for (;p <= 12;(p = (p + 1))) {
if (root.getChildIndex(Boton[(j - p)]) > root.getChildIndex(Boton[((j - 1) - p)])){
root.swapChildren(Boton[(j - p)], Boton[((j - 1) - p)]);
};
continue;
var _slot1 = e;
continue;
};
clearInterval(hiloMovimiento[j]);
totalNotes = (totalNotes + 1);
Tweener.addTween(Boton[j], {x:root[("end" + i)].x, y:root[("end" + i)].y, time:speed, onUpdate:Animacion, onUpdateParams:[j, i], onComplete:BorraNotas, onCompleteParams:[j], transition:"linear"});
}
private function Tiempo(_arg1:Number){
var _local2 = 1;
while (this[("song" + Level)].NotaTiempo[_local2] != -1) {
if ((((((((_local2 > 1)) && ((((this[("song" + Level)].NotaTiempo[_local2] * 1000) - (this[("song" + Level)].NotaTiempo[(_local2 - 1)] * 1000)) <= tiempoTapping)))) && (!((((this[("song" + Level)].NotaTiempo[_local2] * 1000) - (this[("song" + Level)].NotaTiempo[(_local2 - 1)] * 1000)) == 0))))) && (!(((this[("song" + Level)].NotaColorTotal[_local2] + 1) == (this[("song" + Level)].NotaColorTotal[(_local2 - 1)] + 1)))))){
if (((this[("song" + Level)].NotaTiempo[_local2] * 1000) - (this[("song" + Level)].NotaTiempo[(_local2 + 1)] * 1000)) != 0){
NotaTapping[_local2] = true;
};
};
hiloMovimiento[_local2] = setInterval(Movimiento, (Math.floor(((this[("song" + Level)].NotaTiempo[_local2] + _arg1) * 1000)) - (1 - retraso)), (this[("song" + Level)].NotaColorTotal[_local2] + 1), _local2);
_local2 = (_local2 + 1);
};
notasMax = _local2;
control.comienzaControl();
hiloCancion = setInterval(Cancion, corrimientoInicial);
}
public function gameOverStory(){
root.medidor.gotoAndStop(1);
root.altavoz.combo.gotoAndStop(1);
ocultaWeas();
PUNTAJE = root.altavoz.puntaje.text;
MALAS = missTotal;
root.tap1.alpha = 0;
root.tap2.alpha = 0;
root.tap3.alpha = 0;
root.tap4.alpha = 0;
root.tap5.alpha = 0;
control.starPowerTermina();
root.altavoz.puntaje.text = "";
root.altavoz.streak.text = "";
JUGANDO = false;
root.misst.visible = false;
root.removeChild(guitar);
root.removeChild(cuerdas);
root.storyBack = true;
root.tryAgain.visible = false;
root.encore.visible = false;
root.youRock.visible = false;
root.panelResults.visible = false;
root.guitarraAux.visible = false;
root.gotoAndStop("main");
}
public function encoreGo(_arg1:int){
root.encore.visible = false;
root.removeChild(guitar);
root.removeChild(cuerdas);
root.iniciarStage();
}
private function borraLaNota(_arg1:Number){
var j = _arg1;
if ((j - control.totalStar) == indexStarChance){
StopStarChance();
};
try {
root.removeChild(Boton[j]);
} catch(e:Error) {
};
}
private function STAGE(){
var _local1:Number;
var _local2:int;
if ((((root.medidor.aguja.rotation >= -45)) && ((root.medidor.aguja.rotation <= -14)))){
root.medidor.Rred1.visible = false;
root.medidor.Rgreen2.visible = false;
root.medidor.Ryellow1.visible = false;
root.medidor.Ryellow2.visible = false;
root.medidor.Rred2.visible = true;
root.medidor.Rgreen1.visible = false;
root.medidor.Rgreen3.visible = true;
root.medidor.Ryellow3.visible = true;
if (peligro == false){
peligro = true;
};
} else {
if ((((root.medidor.aguja.rotation >= -14)) && ((root.medidor.aguja.rotation <= 14)))){
root.medidor.Rred2.visible = false;
root.medidor.Rgreen2.visible = false;
root.medidor.Rgreen3.visible = false;
root.medidor.Ryellow1.visible = false;
root.medidor.Rred1.visible = true;
root.medidor.Rgreen1.visible = true;
root.medidor.Ryellow2.visible = true;
root.medidor.Ryellow3.visible = false;
peligro = false;
} else {
if ((((root.medidor.aguja.rotation >= 14)) && ((root.medidor.aguja.rotation <= 45)))){
root.medidor.Rred2.visible = false;
root.medidor.Rgreen3.visible = false;
root.medidor.Rgreen1.visible = false;
root.medidor.Ryellow2.visible = false;
root.medidor.Rred1.visible = true;
root.medidor.Rgreen2.visible = true;
root.medidor.Ryellow1.visible = true;
root.medidor.Ryellow3.visible = false;
peligro = false;
};
};
};
if (vidaBar > 100){
vidaBar = 100;
_local1 = (((9 / 10) * vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local1, time:0.25, transition:"easeOut"});
} else {
if (vidaBar <= 0){
clearInterval(hiloStage);
vidaBar = 0;
_local1 = (((9 / 10) * vidaBar) - 45);
Tweener.addTween(root.medidor.aguja, {rotation:_local1, time:0.25, transition:"easeOut"});
FAIL = true;
goblinHit2 = false;
goblinHit1 = false;
clearInterval(hiloGoblin);
clearInterval(hiloGoblinHit1);
clearInterval(hiloGoblinHit2);
_local2 = 1;
while (_local2 <= 5) {
_local2++;
};
root.matanotas.visible = false;
Retry();
};
};
if (root.medidor.currentFrame == 7){
if (avisoFever == false){
playFeverRS = FeverRS.play();
root.fevert.visible = true;
root.fevert.y = fevertyaux;
Tweener.addTween(root.fevert, {y:(root.fevert.y + 5), time:1, delay:0, transition:"linear"});
Tweener.addTween(root.fevert, {y:(root.fevert.y - 10), time:1, delay:0.12, transition:"linear"});
avisoFever = true;
hiloLetraFever = setInterval(LetraFever, 2500);
};
};
if ((((totalNotes == (notasMax - 1))) && ((NotaBorrada[(notasMax - 1)] == true)))){
clearInterval(hiloStage);
goblinHit2 = false;
goblinHit1 = false;
clearInterval(hiloGoblin);
clearInterval(hiloGoblinHit1);
clearInterval(hiloGoblinHit2);
_local2 = 1;
while (_local2 <= 5) {
_local2++;
};
root.youRock.visible = true;
root[("santa" + Difficulty)].gotoAndPlay("gana");
root.playRocks = root.rocks.play();
root.matanotas.visible = false;
hiloClearStage = setInterval(ClearStage, 4500);
};
}
private function ClearStage(){
clearInterval(hiloClearStage);
exito();
PUNTAJE = root.altavoz.puntaje.text;
MALAS = missTotal;
root.panelResults.buenast.text = BUENAS;
root.panelResults.malast.text = MALAS;
root.panelResults.totalt.text = totalNotes;
root.panelResults.eficienciat.text = (String(Math.floor(((BUENAS * 100) / totalNotes))) + "%");
if (streakMax == 0){
root.panelResults.streakMaxt.text = "PERFECT!";
} else {
root.panelResults.streakMaxt.text = streakMax;
};
root.panelResults.scoret.text = PUNTAJE;
root.panelResults.alpha = 0;
root.panelResults.visible = true;
ocultaWeas();
Tweener.addTween(root.panelResults, {alpha:1, time:1, delay:0});
if (root.storyMode == true){
root.score = (root.score + PUNTAJE);
root.panelResults.scoreTt.text = root.score;
root.pasadas[Level] = true;
} else {
root.panelResults.scoreTt.text = PUNTAJE;
};
if ((((root.Level == 3)) && ((root.levelMarcado1 == false)))){
root.levelPasado1 = true;
root.levelMarcado1 = false;
} else {
if ((((root.Level == 6)) && ((root.levelMarcado2 == false)))){
root.levelPasado2 = true;
root.levelMarcado2 = false;
} else {
if ((((root.Level == 9)) && ((root.levelMarcado3 == false)))){
root.levelPasado3 = true;
root.levelMarcado3 = false;
};
};
};
}
private function configuraObjetos(){
var _local1:* = 1;
while (_local1 <= 3) {
if (_local1 == Difficulty){
};
_local1++;
};
}
private function exito(){
playMusic1.stop();
control.starPowerTermina();
control.destroyed();
Tweener.pauseAllTweens();
Tweener.removeAllTweens();
root.feverx4.visible = false;
Tweener.addTween(root.tap1, {alpha:0, time:8, delay:0.2});
Tweener.addTween(root.tap2, {alpha:0, time:8, delay:0.2});
Tweener.addTween(root.tap3, {alpha:0, time:8, delay:0.2});
Tweener.addTween(root.tap4, {alpha:0, time:8, delay:0.2});
Tweener.addTween(root.tap5, {alpha:0, time:8, delay:0.2});
Tweener.addTween(guitar, {alpha:0, time:8, delay:0});
Tweener.addTween(cuerdas, {alpha:0, time:8, delay:0});
var i:* = 1;
while (this[("song" + Level)].NotaTiempo[i] != -1) {
clearInterval(hiloMovimiento[i]);
i = (i + 1);
};
i = 0;
for (;i < 900;(i = (i + 1))) {
clearInterval(hiloCopones[i]);
root.removeChild(coponCentro[i]);
continue;
var _slot1 = e;
continue;
};
i = 1;
while (this[("song" + Level)].NotaTiempo[i] != -1) {
try {
root.removeChild(BotonP[i]);
} catch(e:Error) {
} catch(e:Error) {
};
try {
root.removeChild(Boton[i]);
} catch(e:Error) {
} catch(e:Error) {
};
try {
root.removeChild(Explosion[i]);
} catch(e:Error) {
} catch(e:Error) {
};
clearInterval(hiloTocaNotas[i]);
clearInterval(hiloMovimiento[i]);
i = (i + 1);
};
control.mataHilos();
clearInterval(hiloLetraFever);
}
private function goblinHitEnd1(){
goblinHit1 = false;
clearInterval(hiloGoblinHit1);
hiloGoblin = setInterval(Goblin, (35000 - (Difficulty * Level)));
}
private function goblinHitEnd2(){
teclasDefault();
var _local1:* = 1;
while (_local1 <= 5) {
if (control[("press" + _local1)] == true){
control[("press" + _local1)] = false;
control[("notaTocada" + _local1)] = false;
control.SueltaPress(_local1);
root[("tap" + _local1)].gotoAndStop(1);
} else {
control[("notaTocada" + _local1)] = false;
root[("tap" + _local1)].gotoAndStop(1);
};
_local1++;
};
goblinHit2 = false;
clearInterval(hiloGoblinHit2);
hiloGoblin = setInterval(Goblin, (35000 - (Difficulty * Level)));
}
public function Animacion(_arg1:Number, _arg2:int):void{
var _local3:Number = (1 / 119);
var _local4:Number = (3 / 119);
var _local5:Number = (12 / 119);
var _local6:Number = ((120 - 1) / (root[("end" + _arg2)].y - root[("start" + _arg2)].y));
var _local7:Number = ((_local6 * (Boton[_arg1].y - root[("start" + _arg2)].y)) + 1);
var _local8:Number = ((_local5 * _local7) - _local5);
var _local9:Number = ((_local4 * _local7) - _local4);
var _local10:Number = ((_local3 * _local7) - _local3);
if ((((NotaStarPower[_arg1] == true)) && ((starChance == true)))){
_local3 = (2 / 119);
_local4 = (6 / 119);
_local5 = (24 / 119);
_local6 = ((120 - 1) / (root[("end" + _arg2)].y - root[("start" + _arg2)].y));
_local7 = ((_local6 * (Boton[_arg1].y - root[("start" + _arg2)].y)) + 1);
_local8 = ((_local5 * _local7) - _local5);
_local9 = ((_local4 * _local7) - _local4);
_local10 = ((_local3 * _local7) - _local3);
};
if (_local7 >= 120){
_local7 = 120;
if (goblinHit1 == true){
Boton[_arg1].visible = true;
if (NotaPress[_arg1] > 0){
BotonP[_arg1].visible = true;
};
};
} else {
Boton[_arg1].gotoAndStop(Math.round(_local7));
Boton[_arg1].y = (Boton[_arg1].y + _local8);
switch (_arg2){
case 1:
Boton[_arg1].x = (Boton[_arg1].x - _local9);
break;
case 2:
Boton[_arg1].x = (Boton[_arg1].x - _local10);
break;
case 4:
Boton[_arg1].x = (Boton[_arg1].x + _local10);
break;
case 5:
Boton[_arg1].x = (Boton[_arg1].x + _local9);
break;
};
};
if (goblinHit1 == true){
frameAux[_arg1] = (frameAux[_arg1] + 1);
if (frameAux[_arg1] == 8){
if (Boton[_arg1].visible == true){
Boton[_arg1].visible = false;
if (NotaPress[_arg1] > 0){
BotonP[_arg1].visible = false;
};
frameAux[_arg1] = 0;
} else {
Boton[_arg1].visible = true;
if (NotaPress[_arg1] > 0){
BotonP[_arg1].visible = true;
};
frameAux[_arg1] = 0;
};
};
} else {
Boton[_arg1].visible = true;
if (NotaPress[_arg1] > 0){
BotonP[_arg1].visible = true;
};
};
}
private function BorraCopones(_arg1:Number):void{
CoponBorrado[_arg1] = true;
root.removeChild(coponCentro[_arg1]);
}
private function borraLaLinea(_arg1:Number){
root.removeChild(BotonP[_arg1]);
}
private function LetraFever(){
root.fevert.visible = false;
clearInterval(hiloLetraFever);
}
public function Inicializar(){
var _local4:SoundChannel;
var _local6:Number;
trace("AQUI EMPIEZO Y NO SE Q PASA");
largoIndex = 1;
root.tryAgain.visible = false;
root.transicion.visible = true;
root.areReady.visible = true;
root.panelResults.visible = false;
root.altavoz.visible = false;
root.medidor.visible = false;
root.areReady.gotoAndPlay(3);
root.guitarraCrash.visible = false;
var _local1:* = this.BasicM;
var _local2:* = this.Difficulty;
teclasDefault();
root.limitLine.visible = false;
goblinHit2 = false;
goblinHit1 = false;
clearInterval(hiloGoblin);
clearInterval(hiloGoblinHit1);
clearInterval(hiloGoblinHit2);
BUENAS = 0;
MALAS = 0;
JUGANDO = true;
PUNTAJE = 0;
peligro = false;
if (QuickPlay == true){
};
if ((((QuickPlay == false)) && ((Level >= 2)))){
};
control = new Control(root);
FAIL = false;
retraso = ((-800 * speed) + 350);
feverPlus = 0;
var _local3:readyS = new readyS();
_local4 = _local3.play();
configuraObjetos();
var _local5:* = 1;
while (_local5 <= 5) {
root[("tap" + _local5)].gotoAndStop(1);
_local5++;
};
totalNotes = 0;
switch (this.Level){
case 1:
song1 = new Song1();
music1 = new santaS1();
break;
case 2:
song2 = new Song2();
music2 = new santaS2();
break;
case 3:
song3 = new Song3();
music3 = new santaS3();
break;
case 4:
song4 = new Song4();
music4 = new santaS4();
break;
case 5:
song5 = new Song5();
music5 = new santaS5();
break;
case 6:
song6 = new Song6();
music6 = new santaS6();
break;
case 7:
song7 = new Song7();
music7 = new santaS7();
break;
case 8:
song8 = new Song8();
music8 = new santaS8();
break;
};
var _local7:Number = this[("song" + Level)].demora;
this.corrimientoInicial = this[("song" + Level)].corrimientoInicial;
ini = new ConfigIni(root, Level);
root.altavoz.puntaje.text = "";
puntajeTotal = 0;
root.altavoz.streak.text = "";
vidaBar = 50;
root.medidor.aguja.rotation = 0;
aumentador = 1;
Difficulty = _local2;
BasicMode = _local1;
index = 604;
combo = 0;
notasMax = 0;
missTotal = 0;
streakMax = 0;
root.tap1.alpha = 0;
root.tap2.alpha = 0;
root.tap3.alpha = 0;
root.tap4.alpha = 0;
root.tap5.alpha = 0;
_local6 = 1;
while (_local6 <= 4000) {
NotaBorrada[_local6] = true;
NotaTapping[_local6] = false;
frameAux[_local6] = 0;
_local6++;
};
avisoFever = false;
misstyaux = root.misst.y;
fevertyaux = root.fevert.y;
root.cuerdasAux.visible = false;
guitar = new guitarra();
cuerdas = new Cuerdas();
root.guitarraAux.visible = false;
root.addChild(guitar);
guitar.x = root.guitarraAux.x;
guitar.y = (root.guitarraAux.y - 170);
root.setChildIndex(guitar, 522);
root.addChild(cuerdas);
cuerdas.height = root.cuerdasAux.height;
cuerdas.width = root.cuerdasAux.width;
cuerdas.x = root.cuerdasAux.x;
cuerdas.y = (root.cuerdasAux.y - 170);
root.setChildIndex(cuerdas, 524);
root.setChildIndex(root.feverx4, 523);
root.setChildIndex(root.tap1, 560);
root.setChildIndex(root.tap2, 561);
root.setChildIndex(root.tap3, 562);
root.setChildIndex(root.tap4, 563);
root.setChildIndex(root.tap5, 564);
root.guitarraAux.visible = false;
root.cuerdasAux.visible = false;
guitar.alpha = 0;
cuerdas.alpha = 0;
if (_local1 == false){
guitar.gotoAndStop(3);
} else {
guitar.gotoAndStop(1);
};
Tweener.addTween(root.tap1, {alpha:1, time:8, delay:0.2});
Tweener.addTween(root.tap2, {alpha:1, time:8, delay:0.2});
Tweener.addTween(root.tap3, {alpha:1, time:8, delay:0.2});
Tweener.addTween(root.tap4, {alpha:1, time:8, delay:0.2});
Tweener.addTween(root.tap5, {alpha:1, time:8, delay:0.2});
Tweener.addTween(guitar, {alpha:1, time:8, delay:0});
Tweener.addTween(barra, {alpha:1, time:8, delay:0});
Tweener.addTween(cuerdas, {alpha:0.3, time:8, delay:0});
Tweener.addTween(guitar, {y:(guitar.y + 170), time:0.5, delay:0, transition:"linear"});
Tweener.addTween(cuerdas, {y:(cuerdas.y + 170), time:0.5, delay:0, transition:"linear"});
guitar.visible = false;
cuerdas.visible = false;
root.transicion.gotoAndPlay(2);
hiloTrans = setInterval(Trans, 950);
root.feverx4.visible = false;
root.altavoz.combo.gotoAndStop(1);
root.fevert.visible = false;
root.misst.visible = false;
root.medidor.Rred2.visible = false;
root.medidor.Rgreen2.visible = false;
root.medidor.Ryellow1.visible = false;
root.medidor.Rred1.visible = true;
root.medidor.Rgreen1.visible = true;
root.medidor.Ryellow2.visible = true;
root.setChildIndex(root.misst, (root.numChildren - 1));
root.setChildIndex(root.fevert, (root.numChildren - 1));
root.medidor.gotoAndStop(1);
configuraObjetos();
Tiempo(_local7);
}
public function continueQuick(){
root.medidor.gotoAndStop(1);
root.altavoz.combo.gotoAndStop(1);
PUNTAJE = root.altavoz.puntaje.text;
MALAS = missTotal;
control.starPowerTermina();
root.altavoz.puntaje.text = "";
root.altavoz.streak.text = "";
root.tap1.alpha = 0;
root.tap2.alpha = 0;
root.tap3.alpha = 0;
root.tap4.alpha = 0;
root.tap5.alpha = 0;
JUGANDO = false;
root.misst.visible = false;
root.removeChild(guitar);
root.removeChild(cuerdas);
Level = 1;
root.quickBack = true;
root.gotoAndStop("main");
}
public function TocaNotas(_arg1:Number){
control.ExplosionRemove(_arg1);
clearInterval(hiloTocaNotas[_arg1]);
}
private function GoblinHit2(){
var _local1:int;
if (BasicMode == false){
AdvancedKeysA[0] = AdvancedKeys[0];
AdvancedKeysA[1] = AdvancedKeys[1];
AdvancedKeysA[3] = AdvancedKeys[3];
AdvancedKeysA[4] = AdvancedKeys[4];
_local1 = AdvancedKeys[0];
AdvancedKeys[0] = AdvancedKeys[4];
AdvancedKeys[4] = _local1;
_local1 = AdvancedKeys[1];
AdvancedKeys[1] = AdvancedKeys[3];
AdvancedKeys[3] = _local1;
} else {
BasicKeysA[0] = BasicKeys[0];
BasicKeysA[1] = BasicKeys[1];
BasicKeysA[3] = BasicKeys[3];
BasicKeysA[4] = BasicKeys[4];
_local1 = BasicKeys[0];
BasicKeys[0] = BasicKeys[4];
BasicKeys[4] = _local1;
_local1 = BasicKeys[1];
BasicKeys[1] = BasicKeys[3];
BasicKeys[3] = _local1;
};
root.tap1.x = 177.1;
root.tap5.x = -254.7;
root.tap2.x = 70;
root.tap4.x = -147.6;
goblinHit2 = false;
}
private function ConfigRayas(_arg1:Number, _arg2:Number):void{
Tweener.addTween(BotonP[_arg2], {x:root[("endp" + _arg1)].x, y:root[("endp" + _arg1)].y, time:speed, onComplete:ConfigRayas2, onCompleteParams:[_arg1, _arg2], transition:"linear"});
}
private function Apretar(){
root.start3.apretar = true;
clearInterval(hiloApretar);
}
public function gameOverQuick(){
root.medidor.gotoAndStop(1);
root.altavoz.combo.gotoAndStop(1);
ocultaWeas();
PUNTAJE = root.altavoz.puntaje.text;
MALAS = missTotal;
control.starPowerTermina();
root.altavoz.puntaje.text = "";
root.altavoz.streak.text = "";
root.tap1.alpha = 0;
root.tap2.alpha = 0;
root.tap3.alpha = 0;
root.tap4.alpha = 0;
root.tap5.alpha = 0;
JUGANDO = false;
root.misst.visible = false;
root.removeChild(guitar);
root.removeChild(cuerdas);
Level = 1;
root.gotoAndStop("main");
}
private function grinch(){
GoblinHit();
clearInterval(hiloGrinch);
clearInterval(hiloBorraGrinchA);
}
private function BorraRayas(_arg1:Number){
Tweener.removeTweens(BotonP[_arg1]);
borraLaLinea(_arg1);
}
public function encore(_arg1:int){
root.Level = _arg1;
root.encore.visible = true;
Tweener.addTween(root.encore, {alpha:0, time:2, delay:3});
Tweener.addTween(root.encore, {time:0, delay:4, onComplete:encoreGo, onCompleteParams:[_arg1]});
}
private function ConfigRayas2(_arg1:Number, _arg2:Number):void{
Tweener.addTween(BotonP[_arg2], {x:root[("endpp" + _arg1)].x, y:root[("endpp" + _arg1)].y, time:speed, onComplete:BorraRayas, onCompleteParams:[_arg2], transition:"linear"});
}
public function StopStarChance(){
starChanceEnter = false;
starChance = false;
}
private function Goblin(){
var _local2:*;
var _local1:int = Math.ceil((Math.random() * 3));
if ((((Level < 5)) && ((_local1 == 3)))){
_local1 = 2;
} else {
if ((((((Difficulty > 1)) && ((Level >= 5)))) && ((_local1 == 3)))){
_local1 = 3;
} else {
if ((((((Difficulty == 1)) && ((Level >= 7)))) && ((_local1 == 3)))){
_local1 = 3;
};
};
};
if ((((_local1 == 1)) || ((_local1 == 2)))){
hiloGoblinHit1 = setInterval(goblinHitEnd1, 15000);
} else {
if (_local1 == 3){
GoblinHit2();
clearInterval(hiloBorraGrinchA);
_local2 = 1;
while (_local2 <= 5) {
if (control[("press" + _local2)] == true){
control[("press" + _local2)] = false;
control[("notaTocada" + _local2)] = false;
control.SueltaPress(_local2);
root[("tap" + _local2)].gotoAndStop(1);
} else {
control[("notaTocada" + _local2)] = false;
root[("tap" + _local2)].gotoAndStop(1);
};
_local2++;
};
hiloGoblinHit2 = setInterval(goblinHitEnd2, 9000);
};
};
clearInterval(hiloGoblin);
}
}
}//package
Section 154
//Cuerdas (Cuerdas)
package {
import flash.display.*;
public dynamic class Cuerdas extends MovieClip {
}
}//package
Section 155
//elegirs (elegirs)
package {
import flash.media.*;
public dynamic class elegirs extends Sound {
}
}//package
Section 156
//explosion (explosion)
package {
import flash.display.*;
public dynamic class explosion extends MovieClip {
}
}//package
Section 157
//explosion3 (explosion3)
package {
import flash.display.*;
public dynamic class explosion3 extends MovieClip {
}
}//package
Section 158
//feverRS (feverRS)
package {
import flash.media.*;
public dynamic class feverRS extends Sound {
}
}//package
Section 159
//feverS (feverS)
package {
import flash.media.*;
public dynamic class feverS extends Sound {
}
}//package
Section 160
//focusRectSkin (focusRectSkin)
package {
import flash.display.*;
public dynamic class focusRectSkin extends MovieClip {
}
}//package
Section 161
//fs1 (fs1)
package {
import flash.media.*;
public dynamic class fs1 extends Sound {
}
}//package
Section 162
//fs2 (fs2)
package {
import flash.media.*;
public dynamic class fs2 extends Sound {
}
}//package
Section 163
//fs3 (fs3)
package {
import flash.media.*;
public dynamic class fs3 extends Sound {
}
}//package
Section 164
//guitarra (guitarra)
package {
import flash.display.*;
public dynamic class guitarra extends MovieClip {
public var mascara:MovieClip;
public function guitarra(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package
Section 165
//introM (introM)
package {
import flash.media.*;
public dynamic class introM extends Sound {
}
}//package
Section 166
//introSanta1 (introSanta1)
package {
import flash.media.*;
public dynamic class introSanta1 extends Sound {
}
}//package
Section 167
//laugh (laugh)
package {
import flash.media.*;
public dynamic class laugh extends Sound {
}
}//package
Section 168
//lineaMov (lineaMov)
package {
import flash.display.*;
public dynamic class lineaMov extends MovieClip {
}
}//package
Section 169
//List_skin (List_skin)
package {
import flash.display.*;
public dynamic class List_skin extends MovieClip {
}
}//package
Section 170
//logo (logo)
package {
import flash.display.*;
public dynamic class logo extends MovieClip {
}
}//package
Section 171
//loopStory (loopStory)
package {
import flash.media.*;
public dynamic class loopStory extends Sound {
}
}//package
Section 172
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 173
//nota6s (nota6s)
package {
import flash.media.*;
public dynamic class nota6s extends Sound {
}
}//package
Section 174
//publicos (publicos)
package {
import flash.media.*;
public dynamic class publicos extends Sound {
}
}//package
Section 175
//readyS (readyS)
package {
import flash.media.*;
public dynamic class readyS extends Sound {
}
}//package
Section 176
//santaS1 (santaS1)
package {
import flash.media.*;
public dynamic class santaS1 extends Sound {
}
}//package
Section 177
//santaS2 (santaS2)
package {
import flash.media.*;
public dynamic class santaS2 extends Sound {
}
}//package
Section 178
//santaS3 (santaS3)
package {
import flash.media.*;
public dynamic class santaS3 extends Sound {
}
}//package
Section 179
//santaS4 (santaS4)
package {
import flash.media.*;
public dynamic class santaS4 extends Sound {
}
}//package
Section 180
//santaS5 (santaS5)
package {
import flash.media.*;
public dynamic class santaS5 extends Sound {
}
}//package
Section 181
//santaS6 (santaS6)
package {
import flash.media.*;
public dynamic class santaS6 extends Sound {
}
}//package
Section 182
//santaS7 (santaS7)
package {
import flash.media.*;
public dynamic class santaS7 extends Sound {
}
}//package
Section 183
//santaS8 (santaS8)
package {
import flash.media.*;
public dynamic class santaS8 extends Sound {
}
}//package
Section 184
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_disabledSkin extends MovieClip {
}
}//package
Section 185
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_downSkin extends MovieClip {
}
}//package
Section 186
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_overSkin extends MovieClip {
}
}//package
Section 187
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_upSkin extends MovieClip {
}
}//package
Section 188
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_disabledSkin extends MovieClip {
}
}//package
Section 189
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_downSkin extends MovieClip {
}
}//package
Section 190
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_overSkin extends MovieClip {
}
}//package
Section 191
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_upSkin extends MovieClip {
}
}//package
Section 192
//ScrollBar_thumbIcon (ScrollBar_thumbIcon)
package {
import flash.display.*;
public dynamic class ScrollBar_thumbIcon extends MovieClip {
}
}//package
Section 193
//ScrollThumb_downSkin (ScrollThumb_downSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_downSkin extends MovieClip {
}
}//package
Section 194
//ScrollThumb_overSkin (ScrollThumb_overSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_overSkin extends MovieClip {
}
}//package
Section 195
//ScrollThumb_upSkin (ScrollThumb_upSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_upSkin extends MovieClip {
}
}//package
Section 196
//ScrollTrack_skin (ScrollTrack_skin)
package {
import flash.display.*;
public dynamic class ScrollTrack_skin extends MovieClip {
}
}//package
Section 197
//Smash (Smash)
package {
import flash.media.*;
public dynamic class Smash extends Sound {
}
}//package
Section 198
//Song1 (Song1)
package {
public class Song1 {
public var NotaColorTotal:Array;
public var NotaTiempo:Array;
public var demora:Number;// = 0
public var LargoStar:Array;
public var NotaStarPower:Array;
public var NotaPressTotal:Array;
public var corrimientoInicial:Number;// = 320
public function Song1(){
NotaColorTotal = new Array();
NotaPressTotal = new Array();
NotaTiempo = new Array();
NotaStarPower = new Array();
LargoStar = new Array();
}
public function mediumStarPower(){
NotaStarPower[1] = 0;
NotaStarPower[2] = 0;
NotaStarPower[3] = 0;
NotaStarPower[4] = 0;
NotaStarPower[5] = 0;
NotaStarPower[6] = 0;
NotaStarPower[7] = 0;
NotaStarPower[8] = 0;
NotaStarPower[9] = 0;
NotaStarPower[10] = 0;
NotaStarPower[11] = 0;
NotaStarPower[12] = 0;
NotaStarPower[13] = 0;
NotaStarPower[14] = 0;
NotaStarPower[15] = 0;
NotaStarPower[16] = 0;
NotaStarPower[17] = 1;
NotaStarPower[18] = 1;
NotaStarPower[19] = 1;
NotaStarPower[20] = 1;
NotaStarPower[21] = 1;
NotaStarPower[22] = 1;
NotaStarPower[23] = 1;
NotaStarPower[24] = 1;
NotaStarPower[25] = 1;
NotaStarPower[26] = 0;
NotaStarPower[27] = 0;
NotaStarPower[28] = 0;
NotaStarPower[29] = 0;
NotaStarPower[30] = 0;
NotaStarPower[31] = 0;
NotaStarPower[32] = 0;
NotaStarPower[33] = 0;
NotaStarPower[34] = 0;
NotaStarPower[35] = 0;
NotaStarPower[36] = 1;
NotaStarPower[37] = 1;
NotaStarPower[38] = 1;
NotaStarPower[39] = 1;
NotaStarPower[40] = 1;
NotaStarPower[41] = 1;
NotaStarPower[42] = 1;
NotaStarPower[43] = 0;
NotaStarPower[44] = 0;
NotaStarPower[45] = 0;
NotaStarPower[46] = 0;
NotaStarPower[47] = 0;
NotaStarPower[48] = 0;
NotaStarPower[49] = 0;
NotaStarPower[50] = 0;
NotaStarPower[51] = 0;
NotaStarPower[52] = 0;
NotaStarPower[53] = 0;
NotaStarPower[54] = 0;
NotaStarPower[55] = 0;
NotaStarPower[56] = 0;
NotaStarPower[57] = 0;
NotaStarPower[58] = 0;
NotaStarPower[59] = 0;
NotaStarPower[60] = 0;
NotaStarPower[61] = 0;
NotaStarPower[62] = 0;
NotaStarPower[63] = 0;
NotaStarPower[64] = 0;
NotaStarPower[65] = 0;
NotaStarPower[66] = 0;
NotaStarPower[67] = 0;
NotaStarPower[68] = 0;
NotaStarPower[69] = 1;
NotaStarPower[70] = 1;
NotaStarPower[71] = 1;
NotaStarPower[72] = 1;
NotaStarPower[73] = 1;
NotaStarPower[74] = 1;
NotaStarPower[75] = 1;
NotaStarPower[76] = 1;
NotaStarPower[77] = 1;
NotaStarPower[78] = 1;
NotaStarPower[79] = 1;
NotaStarPower[80] = 1;
NotaStarPower[81] = 1;
NotaStarPower[82] = 1;
NotaStarPower[83] = 1;
NotaStarPower[84] = 1;
NotaStarPower[85] = 0;
NotaStarPower[86] = 0;
NotaStarPower[87] = 0;
NotaStarPower[88] = 0;
NotaStarPower[89] = 0;
NotaStarPower[90] = 0;
NotaStarPower[91] = 0;
NotaStarPower[92] = 0;
NotaStarPower[93] = 0;
NotaStarPower[94] = 0;
NotaStarPower[95] = 0;
NotaStarPower[96] = 0;
NotaStarPower[97] = 0;
NotaStarPower[98] = 0;
NotaStarPower[99] = 0;
NotaStarPower[100] = 0;
NotaStarPower[101] = 0;
NotaStarPower[102] = 0;
NotaStarPower[103] = 0;
NotaStarPower[104] = 0;
NotaStarPower[105] = 0;
NotaStarPower[106] = 0;
NotaStarPower[107] = 0;
NotaStarPower[108] = 0;
NotaStarPower[109] = 0;
NotaStarPower[110] = 0;
NotaStarPower[111] = 0;
NotaStarPower[112] = 0;
NotaStarPower[113] = 0;
NotaStarPower[114] = 0;
NotaStarPower[115] = 0;
NotaStarPower[116] = 0;
NotaStarPower[117] = 0;
NotaStarPower[118] = 0;
NotaStarPower[119] = 1;
NotaStarPower[120] = 1;
NotaStarPower[121] = 1;
NotaStarPower[122] = 1;
NotaStarPower[123] = 1;
NotaStarPower[124] = 1;
NotaStarPower[125] = 1;
NotaStarPower[126] = 1;
NotaStarPower[127] = 0;
NotaStarPower[128] = 0;
NotaStarPower[129] = 0;
NotaStarPower[130] = 0;
NotaStarPower[131] = 0;
NotaStarPower[132] = 0;
NotaStarPower[133] = 0;
NotaStarPower[134] = 0;
NotaStarPower[135] = 0;
NotaStarPower[136] = 0;
NotaStarPower[137] = 0;
NotaStarPower[138] = 0;
NotaStarPower[139] = 0;
NotaStarPower[140] = 0;
NotaStarPower[141] = 0;
NotaStarPower[142] = 0;
NotaStarPower[143] = 0;
NotaStarPower[144] = 0;
NotaStarPower[145] = 0;
NotaStarPower[146] = 0;
NotaStarPower[147] = 0;
NotaStarPower[148] = 0;
NotaStarPower[149] = 0;
NotaStarPower[150] = 0;
NotaStarPower[151] = 0;
NotaStarPower[152] = 0;
NotaStarPower[153] = 0;
NotaStarPower[154] = 0;
NotaStarPower[155] = 0;
NotaStarPower[156] = 0;
NotaStarPower[157] = 0;
NotaStarPower[158] = 0;
NotaStarPower[159] = 0;
NotaStarPower[160] = 0;
NotaStarPower[161] = 0;
NotaStarPower[162] = 0;
NotaStarPower[163] = 0;
NotaStarPower[164] = 0;
NotaStarPower[165] = 0;
NotaStarPower[166] = 0;
NotaStarPower[167] = 0;
NotaStarPower[168] = 0;
NotaStarPower[169] = 0;
NotaStarPower[170] = 0;
NotaStarPower[171] = 0;
NotaStarPower[172] = 0;
NotaStarPower[173] = 0;
NotaStarPower[174] = 0;
NotaStarPower[175] = 0;
NotaStarPower[176] = 0;
NotaStarPower[177] = 0;
NotaStarPower[178] = 0;
NotaStarPower[179] = 0;
NotaStarPower[180] = 0;
NotaStarPower[181] = 0;
NotaStarPower[182] = 0;
NotaStarPower[183] = 0;
NotaStarPower[184] = 0;
NotaStarPower[185] = 0;
NotaStarPower[186] = 0;
NotaStarPower[187] = 0;
NotaStarPower[188] = 0;
NotaStarPower[189] = 0;
NotaStarPower[190] = 0;
NotaStarPower[191] = 0;
NotaStarPower[192] = 0;
NotaStarPower[193] = 0;
NotaStarPower[194] = 0;
NotaStarPower[195] = 0;
NotaStarPower[196] = 0;
NotaStarPower[197] = 0;
NotaStarPower[198] = 0;
NotaStarPower[199] = 0;
NotaStarPower[200] = 0;
NotaStarPower[201] = 0;
NotaStarPower[202] = 0;
NotaStarPower[203] = 0;
NotaStarPower[204] = 0;
NotaStarPower[205] = 0;
NotaStarPower[206] = 0;
NotaStarPower[207] = 0;
NotaStarPower[208] = 0;
NotaStarPower[209] = 0;
NotaStarPower[210] = 0;
NotaStarPower[211] = 0;
NotaStarPower[212] = 0;
NotaStarPower[213] = 0;
NotaStarPower[214] = 1;
NotaStarPower[215] = 1;
NotaStarPower[216] = 1;
NotaStarPower[217] = 1;
NotaStarPower[218] = 1;
NotaStarPower[219] = 1;
NotaStarPower[220] = 1;
NotaStarPower[221] = 1;
NotaStarPower[222] = 0;
NotaStarPower[223] = 0;
NotaStarPower[224] = 0;
NotaStarPower[225] = 0;
NotaStarPower[226] = 0;
NotaStarPower[227] = 0;
NotaStarPower[228] = 0;
NotaStarPower[229] = 0;
NotaStarPower[230] = 0;
NotaStarPower[231] = 0;
NotaStarPower[232] = 0;
NotaStarPower[233] = 0;
NotaStarPower[234] = 0;
NotaStarPower[235] = 0;
NotaStarPower[236] = 0;
NotaStarPower[237] = 0;
NotaStarPower[238] = 0;
NotaStarPower[239] = 0;
NotaStarPower[240] = 0;
NotaStarPower[241] = 0;
NotaStarPower[242] = 0;
NotaStarPower[243] = 0;
NotaStarPower[244] = 0;
NotaStarPower[245] = 0;
NotaStarPower[246] = 0;
NotaStarPower[247] = 0;
NotaStarPower[248] = 0;
NotaStarPower[249] = 0;
NotaStarPower[250] = 0;
NotaStarPower[251] = 0;
NotaStarPower[252] = 0;
NotaStarPower[253] = 0;
NotaStarPower[254] = 0;
NotaStarPower[0xFF] = 0;
NotaStarPower[0x0100] = 0;
NotaStarPower[0x0101] = 0;
NotaStarPower[258] = 0;
NotaStarPower[259] = 0;
NotaStarPower[260] = 0;
NotaStarPower[261] = 0;
NotaStarPower[262] = 0;
NotaStarPower[263] = 0;
NotaStarPower[264] = 0;
NotaStarPower[265] = 0;
NotaStarPower[266] = 0;
NotaStarPower[267] = 0;
NotaStarPower[268] = 0;
NotaStarPower[269] = 0;
NotaStarPower[270] = 0;
NotaStarPower[271] = 0;
NotaStarPower[272] = 0;
NotaStarPower[273] = 0;
NotaStarPower[274] = 0;
NotaStarPower[275] = 0;
NotaStarPower[276] = 0;
NotaStarPower[277] = 0;
NotaStarPower[278] = 0;
NotaStarPower[279] = 0;
NotaStarPower[280] = 0;
NotaStarPower[281] = 0;
NotaStarPower[282] = 0;
NotaStarPower[283] = 0;
NotaStarPower[284] = 0;
NotaStarPower[285] = 0;
NotaStarPower[286] = 0;
NotaStarPower[287] = 0;
NotaStarPower[288] = 0;
NotaStarPower[289] = 0;
NotaStarPower[290] = 0;
NotaStarPower[291] = 0;
NotaStarPower[292] = 0;
NotaStarPower[293] = 0;
NotaStarPower[294] = 1;
NotaStarPower[295] = 1;
NotaStarPower[296] = 1;
NotaStarPower[297] = 1;
NotaStarPower[298] = 1;
NotaStarPower[299] = 1;
NotaStarPower[300] = 1;
NotaStarPower[301] = 1;
NotaStarPower[302] = 1;
NotaStarPower[303] = 1;
NotaStarPower[304] = 1;
NotaStarPower[305] = 1;
NotaStarPower[306] = 1;
NotaStarPower[307] = 1;
NotaStarPower[308] = 1;
NotaStarPower[309] = 0;
NotaStarPower[310] = 0;
NotaStarPower[311] = 0;
NotaStarPower[312] = 0;
NotaStarPower[313] = 0;
NotaStarPower[314] = 0;
NotaStarPower[315] = 0;
NotaStarPower[316] = 0;
NotaStarPower[317] = 0;
NotaStarPower[318] = 0;
NotaStarPower[319] = 0;
NotaStarPower[320] = 0;
NotaStarPower[321] = 0;
NotaStarPower[322] = 0;
NotaStarPower[323] = 0;
NotaStarPower[324] = 0;
NotaStarPower[325] = 0;
NotaStarPower[326] = 0;
NotaStarPower[327] = 0;
NotaStarPower[328] = 0;
NotaStarPower[329] = 0;
NotaStarPower[330] = 0;
NotaStarPower[331] = 0;
NotaStarPower[332] = 0;
NotaStarPower[333] = 0;
NotaStarPower[334] = 0;
NotaStarPower[335] = 0;
NotaStarPower[336] = 0;
NotaStarPower[337] = 0;
NotaStarPower[338] = 0;
NotaStarPower[339] = 0;
NotaStarPower[340] = 0;
NotaStarPower[341] = 0;
NotaStarPower[342] = 0;
NotaStarPower[343] = 0;
NotaStarPower[344] = 0;
NotaStarPower[345] = 0;
NotaStarPower[346] = 0;
NotaStarPower[347] = 0;
NotaStarPower[348] = 0;
NotaStarPower[349] = 0;
NotaStarPower[350] = 0;
NotaStarPower[351] = 0;
NotaStarPower[352] = 0;
NotaStarPower[353] = 0;
NotaStarPower[354] = 0;
NotaStarPower[355] = 0;
NotaStarPower[356] = 0;
NotaStarPower[357] = 0;
NotaStarPower[358] = 0;
NotaStarPower[359] = 0;
NotaStarPower[360] = 0;
NotaStarPower[361] = 0;
NotaStarPower[362] = 1;
NotaStarPower[363] = 1;
NotaStarPower[364] = 1;
NotaStarPower[365] = 1;
NotaStarPower[366] = 1;
NotaStarPower[367] = 1;
NotaStarPower[368] = 1;
NotaStarPower[369] = 1;
NotaStarPower[370] = 1;
NotaStarPower[371] = 1;
NotaStarPower[372] = 1;
NotaStarPower[373] = 0;
NotaStarPower[374] = 0;
NotaStarPower[375] = 0;
NotaStarPower[376] = 0;
NotaStarPower[377] = 0;
NotaStarPower[378] = 0;
NotaStarPower[379] = 0;
NotaStarPower[380] = 0;
NotaStarPower[381] = 0;
NotaStarPower[382] = 0;
NotaStarPower[383] = 0;
NotaStarPower[384] = 0;
NotaStarPower[385] = 0;
NotaStarPower[386] = 0;
NotaStarPower[387] = 0;
NotaStarPower[388] = 0;
NotaStarPower[389] = 0;
NotaStarPower[390] = 0;
NotaStarPower[391] = 0;
NotaStarPower[392] = 0;
NotaStarPower[393] = 0;
NotaStarPower[394] = 0;
NotaStarPower[395] = 0;
NotaStarPower[396] = 0;
NotaStarPower[397] = 0;
NotaStarPower[398] = 0;
NotaStarPower[399] = 0;
NotaStarPower[400] = 0;
NotaStarPower[401] = 0;
NotaStarPower[402] = 0;
NotaStarPower[403] = 0;
NotaStarPower[404] = 0;
NotaStarPower[405] = 0;
NotaStarPower[406] = 0;
NotaStarPower[407] = 0;
NotaStarPower[408] = 0;
NotaStarPower[409] = 0;
NotaStarPower[410] = 0;
NotaStarPower[411] = 0;
NotaStarPower[412] = 0;
NotaStarPower[413] = 0;
NotaStarPower[414] = 0;
NotaStarPower[415] = 0;
NotaStarPower[416] = 0;
NotaStarPower[417] = 0;
NotaStarPower[418] = 0;
NotaStarPower[419] = 0;
NotaStarPower[420] = 0;
NotaStarPower[421] = 0;
NotaStarPower[422] = 0;
NotaStarPower[423] = 0;
NotaStarPower[424] = 0;
NotaStarPower[425] = 0;
NotaStarPower[426] = 0;
LargoStar[1] = 9;
LargoStar[2] = 8;
LargoStar[3] = 16;
LargoStar[4] = 8;
LargoStar[5] = 8;
LargoStar[6] = 15;
LargoStar[7] = 10;
}
public function mediumPress(){
NotaPressTotal[1] = 0.25;
NotaPressTotal[2] = 0;
NotaPressTotal[3] = 0;
NotaPressTotal[4] = 0;
NotaPressTotal[5] = 0;
NotaPressTotal[6] = 0;
NotaPressTotal[7] = 0;
NotaPressTotal[8] = 0;
NotaPressTotal[9] = 0.25;
NotaPressTotal[10] = 0;
NotaPressTotal[11] = 0;
NotaPressTotal[12] = 0;
NotaPressTotal[13] = 0;
NotaPressTotal[14] = 0;
NotaPressTotal[15] = 0;
NotaPressTotal[16] = 0;
NotaPressTotal[17] = 0.4375;
NotaPressTotal[18] = 0.375;
NotaPressTotal[19] = 0;
NotaPressTotal[20] = 0.8125;
NotaPressTotal[21] = 0;
NotaPressTotal[22] = 0.5625;
NotaPressTotal[23] = 0.5625;
NotaPressTotal[24] = 0.4375;
NotaPressTotal[25] = 0.5625;
NotaPressTotal[26] = 0;
NotaPressTotal[27] = 0.6875;
NotaPressTotal[28] = 0.6875;
NotaPressTotal[29] = 0;
NotaPressTotal[30] = 0;
NotaPressTotal[31] = 0.75;
NotaPressTotal[32] = 0.75;
NotaPressTotal[33] = 0;
NotaPressTotal[34] = 2.125;
NotaPressTotal[35] = 0;
NotaPressTotal[36] = 0;
NotaPressTotal[37] = 0;
NotaPressTotal[38] = 0;
NotaPressTotal[39] = 0;
NotaPressTotal[40] = 0;
NotaPressTotal[41] = 0;
NotaPressTotal[42] = 0;
NotaPressTotal[43] = 0;
NotaPressTotal[44] = 0;
NotaPressTotal[45] = 0;
NotaPressTotal[46] = 0;
NotaPressTotal[47] = 0;
NotaPressTotal[48] = 0;
NotaPressTotal[49] = 0;
NotaPressTotal[50] = 0;
NotaPressTotal[51] = 0;
NotaPressTotal[52] = 0;
NotaPressTotal[53] = 0;
NotaPressTotal[54] = 0;
NotaPressTotal[55] = 0;
NotaPressTotal[56] = 0;
NotaPressTotal[57] = 0;
NotaPressTotal[58] = 0;
NotaPressTotal[59] = 0.8125;
NotaPressTotal[60] = 0;
NotaPressTotal[61] = 0;
NotaPressTotal[62] = 0;
NotaPressTotal[63] = 0;
NotaPressTotal[64] = 0;
NotaPressTotal[65] = 0;
NotaPressTotal[66] = 0;
NotaPressTotal[67] = 0.875;
NotaPressTotal[68] = 0.875;
NotaPressTotal[69] = 0;
NotaPressTotal[70] = 0;
NotaPressTotal[71] = 0.1875;
NotaPressTotal[72] = 0.5;
NotaPressTotal[73] = 0.5;
NotaPressTotal[74] = 0;
NotaPressTotal[75] = 0.375;
NotaPressTotal[76] = 0;
NotaPressTotal[77] = 0;
NotaPressTotal[78] = 0;
NotaPressTotal[79] = 0;
NotaPressTotal[80] = 0.3125;
NotaPressTotal[81] = 0.5;
NotaPressTotal[82] = 0.5;
NotaPressTotal[83] = 1.375;
NotaPressTotal[84] = 1.375;
NotaPressTotal[85] = 0.4375;
NotaPressTotal[86] = 0.375;
NotaPressTotal[87] = 0;
NotaPressTotal[88] = 0.8125;
NotaPressTotal[89] = 0;
NotaPressTotal[90] = 0.5625;
NotaPressTotal[91] = 0.5625;
NotaPressTotal[92] = 0.4375;
NotaPressTotal[93] = 0.5625;
NotaPressTotal[94] = 0;
NotaPressTotal[95] = 0.6875;
NotaPressTotal[96] = 0.6875;
NotaPressTotal[97] = 0;
NotaPressTotal[98] = 0;
NotaPressTotal[99] = 0.75;
NotaPressTotal[100] = 0.75;
NotaPressTotal[101] = 0;
NotaPressTotal[102] = 2.125;
NotaPressTotal[103] = 0;
NotaPressTotal[104] = 0;
NotaPressTotal[105] = 0;
NotaPressTotal[106] = 0;
NotaPressTotal[107] = 0;
NotaPressTotal[108] = 0;
NotaPressTotal[109] = 0;
NotaPressTotal[110] = 0;
NotaPressTotal[111] = 0;
NotaPressTotal[112] = 0;
NotaPressTotal[113] = 0;
NotaPressTotal[114] = 0;
NotaPressTotal[115] = 0;
NotaPressTotal[116] = 0;
NotaPressTotal[117] = 0;
NotaPressTotal[118] = 0;
NotaPressTotal[119] = 0;
NotaPressTotal[120] = 0;
NotaPressTotal[121] = 0;
NotaPressTotal[122] = 0;
NotaPressTotal[123] = 0;
NotaPressTotal[124] = 0;
NotaPressTotal[125] = 0;
NotaPressTotal[126] = 0.8125;
NotaPressTotal[127] = 0;
NotaPressTotal[128] = 0;
NotaPressTotal[129] = 0;
NotaPressTotal[130] = 0;
NotaPressTotal[131] = 0;
NotaPressTotal[132] = 0;
NotaPressTotal[133] = 0;
NotaPressTotal[134] = 0.875;
NotaPressTotal[135] = 0.875;
NotaPressTotal[136] = 0;
NotaPressTotal[137] = 0;
NotaPressTotal[138] = 0.1875;
NotaPressTotal[139] = 0.5;
NotaPressTotal[140] = 0.5;
NotaPressTotal[141] = 0;
NotaPressTotal[142] = 0.375;
NotaPressTotal[143] = 0;
NotaPressTotal[144] = 0;
NotaPressTotal[145] = 0;
NotaPressTotal[146] = 0;
NotaPressTotal[147] = 0.3125;
NotaPressTotal[148] = 0.5;
NotaPressTotal[149] = 1.3125;
NotaPressTotal[150] = 1.3125;
NotaPressTotal[151] = 0.5;
NotaPressTotal[152] = 0.5;
NotaPressTotal[153] = 0.5;
NotaPressTotal[154] = 0.5;
NotaPressTotal[155] = 0.4375;
NotaPressTotal[156] = 0;
NotaPressTotal[157] = 0;
NotaPressTotal[158] = 0;
NotaPressTotal[159] = 0.3125;
NotaPressTotal[160] = 0.3125;
NotaPressTotal[161] = 0;
NotaPressTotal[162] = 0;
NotaPressTotal[163] = 0;
NotaPressTotal[164] = 0;
NotaPressTotal[165] = 0;
NotaPressTotal[166] = 0;
NotaPressTotal[167] = 0;
NotaPressTotal[168] = 0.4375;
NotaPressTotal[169] = 0.4375;
NotaPressTotal[170] = 0.4375;
NotaPressTotal[171] = 0.4375;
NotaPressTotal[172] = 0.375;
NotaPressTotal[173] = 0;
NotaPressTotal[174] = 0.25;
NotaPressTotal[175] = 0.4375;
NotaPressTotal[176] = 0.375;
NotaPressTotal[177] = 0.375;
NotaPressTotal[178] = 0;
NotaPressTotal[179] = 0;
NotaPressTotal[180] = 0;
NotaPressTotal[181] = 0;
NotaPressTotal[182] = 0;
NotaPressTotal[183] = 0;
NotaPressTotal[184] = 0.3125;
NotaPressTotal[185] = 0.4375;
NotaPressTotal[186] = 0.4375;
NotaPressTotal[187] = 0.4375;
NotaPressTotal[188] = 0.4375;
NotaPressTotal[189] = 0.5;
NotaPressTotal[190] = 0.5;
NotaPressTotal[191] = 0.4375;
NotaPressTotal[192] = 0.4375;
NotaPressTotal[193] = 0.4375;
NotaPressTotal[194] = 0.4375;
NotaPressTotal[195] = 0.375;
NotaPressTotal[196] = 0.5;
NotaPressTotal[197] = 0.4375;
NotaPressTotal[198] = 0.4375;
NotaPressTotal[199] = 1.0625;
NotaPressTotal[200] = 1.0625;
NotaPressTotal[201] = 0;
NotaPressTotal[202] = 0;
NotaPressTotal[203] = 0.3125;
NotaPressTotal[204] = 0.5;
NotaPressTotal[205] = 0.5;
NotaPressTotal[206] = 1.25;
NotaPressTotal[207] = 1.25;
NotaPressTotal[208] = 0.6875;
NotaPressTotal[209] = 0.6875;
NotaPressTotal[210] = 0;
NotaPressTotal[211] = 0;
NotaPressTotal[212] = 0.6875;
NotaPressTotal[213] = 0.6875;
NotaPressTotal[214] = 0.625;
NotaPressTotal[215] = 0;
NotaPressTotal[216] = 0;
NotaPressTotal[217] = 0;
NotaPressTotal[218] = 0;
NotaPressTotal[219] = 0;
NotaPressTotal[220] = 0.625;
NotaPressTotal[221] = 0.625;
NotaPressTotal[222] = 0;
NotaPressTotal[223] = 0;
NotaPressTotal[224] = 0;
NotaPressTotal[225] = 0;
NotaPressTotal[226] = 0;
NotaPressTotal[227] = 0;
NotaPressTotal[228] = 0;
NotaPressTotal[229] = 0;
NotaPressTotal[230] = 0;
NotaPressTotal[231] = 0;
NotaPressTotal[232] = 0;
NotaPressTotal[233] = 0;
NotaPressTotal[234] = 0;
NotaPressTotal[235] = 0.1875;
NotaPressTotal[236] = 0;
NotaPressTotal[237] = 0;
NotaPressTotal[238] = 0;
NotaPressTotal[239] = 0;
NotaPressTotal[240] = 0.5;
NotaPressTotal[241] = 0.5;
NotaPressTotal[242] = 0.4375;
NotaPressTotal[243] = 0.375;
NotaPressTotal[244] = 0;
NotaPressTotal[245] = 0.8125;
NotaPressTotal[246] = 0;
NotaPressTotal[247] = 0.5625;
NotaPressTotal[248] = 0.5625;
NotaPressTotal[249] = 0.4375;
NotaPressTotal[250] = 0.5625;
NotaPressTotal[251] = 0;
NotaPressTotal[252] = 0.6875;
NotaPressTotal[253] = 0.6875;
NotaPressTotal[254] = 0;
NotaPressTotal[0xFF] = 0;
NotaPressTotal[0x0100] = 0.75;
NotaPressTotal[0x0101] = 0.75;
NotaPressTotal[258] = 0;
NotaPressTotal[259] = 2.125;
NotaPressTotal[260] = 0;
NotaPressTotal[261] = 0;
NotaPressTotal[262] = 0;
NotaPressTotal[263] = 0;
NotaPressTotal[264] = 0;
NotaPressTotal[265] = 0;
NotaPressTotal[266] = 0;
NotaPressTotal[267] = 0;
NotaPressTotal[268] = 0;
NotaPressTotal[269] = 0;
NotaPressTotal[270] = 0;
NotaPressTotal[271] = 0;
NotaPressTotal[272] = 0;
NotaPressTotal[273] = 0;
NotaPressTotal[274] = 0;
NotaPressTotal[275] = 0;
NotaPressTotal[276] = 0;
NotaPressTotal[277] = 0;
NotaPressTotal[278] = 0;
NotaPressTotal[279] = 0;
NotaPressTotal[280] = 0;
NotaPressTotal[281] = 0;
NotaPressTotal[282] = 0;
NotaPressTotal[283] = 0.8125;
NotaPressTotal[284] = 0.8125;
NotaPressTotal[285] = 0;
NotaPressTotal[286] = 0;
NotaPressTotal[287] = 0;
NotaPressTotal[288] = 0;
NotaPressTotal[289] = 0;
NotaPressTotal[290] = 0;
NotaPressTotal[291] = 0;
NotaPressTotal[292] = 0.875;
NotaPressTotal[293] = 0.875;
NotaPressTotal[294] = 0;
NotaPressTotal[295] = 0;
NotaPressTotal[296] = 0.1875;
NotaPressTotal[297] = 0.5;
NotaPressTotal[298] = 0;
NotaPressTotal[299] = 0.375;
NotaPressTotal[300] = 0;
NotaPressTotal[301] = 0;
NotaPressTotal[302] = 0;
NotaPressTotal[303] = 0;
NotaPressTotal[304] = 0.3125;
NotaPressTotal[305] = 0.5;
NotaPressTotal[306] = 0.5;
NotaPressTotal[307] = 1.0625;
NotaPressTotal[308] = 1.0625;
NotaPressTotal[309] = 0.1875;
NotaPressTotal[310] = 0.5;
NotaPressTotal[311] = 0.5;
NotaPressTotal[312] = 0;
NotaPressTotal[313] = 0.375;
NotaPressTotal[314] = 0;
NotaPressTotal[315] = 0;
NotaPressTotal[316] = 0;
NotaPressTotal[317] = 0;
NotaPressTotal[318] = 0.3125;
NotaPressTotal[319] = 0.5;
NotaPressTotal[320] = 0.5;
NotaPressTotal[321] = 1.0625;
NotaPressTotal[322] = 1.0625;
NotaPressTotal[323] = 0;
NotaPressTotal[324] = 1.25;
NotaPressTotal[325] = 1.25;
NotaPressTotal[326] = 0;
NotaPressTotal[327] = 0;
NotaPressTotal[328] = 0;
NotaPressTotal[329] = 0;
NotaPressTotal[330] = 0;
NotaPressTotal[331] = 0;
NotaPressTotal[332] = 0;
NotaPressTotal[333] = 0;
NotaPressTotal[334] = 0.5;
NotaPressTotal[335] = 0;
NotaPressTotal[336] = 0;
NotaPressTotal[337] = 0;
NotaPressTotal[338] = 0;
NotaPressTotal[339] = 0;
NotaPressTotal[340] = 0;
NotaPressTotal[341] = 0;
NotaPressTotal[342] = 0;
NotaPressTotal[343] = 0.5625;
NotaPressTotal[344] = 0.5625;
NotaPressTotal[345] = 0;
NotaPressTotal[346] = 0;
NotaPressTotal[347] = 1.0625;
NotaPressTotal[348] = 0;
NotaPressTotal[349] = 0;
NotaPressTotal[350] = 0;
NotaPressTotal[351] = 0;
NotaPressTotal[352] = 0;
NotaPressTotal[353] = 0;
NotaPressTotal[354] = 0;
NotaPressTotal[355] = 0;
NotaPressTotal[356] = 0;
NotaPressTotal[357] = 0;
NotaPressTotal[358] = 0;
NotaPressTotal[359] = 0;
NotaPressTotal[360] = 0.625;
NotaPressTotal[361] = 0;
NotaPressTotal[362] = 0;
NotaPressTotal[363] = 0;
NotaPressTotal[364] = 0;
NotaPressTotal[365] = 0;
NotaPressTotal[366] = 0;
NotaPressTotal[367] = 0;
NotaPressTotal[368] = 0;
NotaPressTotal[369] = 0;
NotaPressTotal[370] = 0;
NotaPressTotal[371] = 0;
NotaPressTotal[372] = 0.625;
NotaPressTotal[373] = 0;
NotaPressTotal[374] = 0;
NotaPressTotal[375] = 0;
NotaPressTotal[376] = 0;
NotaPressTotal[377] = 0;
NotaPressTotal[378] = 0;
NotaPressTotal[379] = 0;
NotaPressTotal[380] = 0;
NotaPressTotal[381] = 0;
NotaPressTotal[382] = 0;
NotaPressTotal[383] = 0;
NotaPressTotal[384] = 0;
NotaPressTotal[385] = 0;
NotaPressTotal[386] = 0;
NotaPressTotal[387] = 0;
NotaPressTotal[388] = 0;
NotaPressTotal[389] = 0;
NotaPressTotal[390] = 0;
NotaPressTotal[391] = 0;
NotaPressTotal[392] = 0.25;
NotaPressTotal[393] = 0;
NotaPressTotal[394] = 0;
NotaPressTotal[395] = 0;
NotaPressTotal[396] = 0;
NotaPressTotal[397] = 0;
NotaPressTotal[398] = 0;
NotaPressTotal[399] = 0;
NotaPressTotal[400] = 0;
NotaPressTotal[401] = 0;
NotaPressTotal[402] = 0;
NotaPressTotal[403] = 0;
NotaPressTotal[404] = 0;
NotaPressTotal[405] = 0;
NotaPressTotal[406] = 0;
NotaPressTotal[407] = 0;
NotaPressTotal[408] = 0;
NotaPressTotal[409] = 0;
NotaPressTotal[410] = 0;
NotaPressTotal[411] = 0;
NotaPressTotal[412] = 0;
NotaPressTotal[413] = 0;
NotaPressTotal[414] = 0;
NotaPressTotal[415] = 0.25;
NotaPressTotal[416] = 0.25;
NotaPressTotal[417] = 0;
NotaPressTotal[418] = 0;
NotaPressTotal[419] = 0;
NotaPressTotal[420] = 0;
NotaPressTotal[421] = 0;
NotaPressTotal[422] = 0;
NotaPressTotal[423] = 0;
NotaPressTotal[424] = 0;
NotaPressTotal[425] = 0;
NotaPressTotal[426] = 0;
}
public function hardPress(){
NotaPressTotal[1] = 0.25;
NotaPressTotal[2] = 0.25;
NotaPressTotal[3] = 0;
NotaPressTotal[4] = 0;
NotaPressTotal[5] = 0;
NotaPressTotal[6] = 0;
NotaPressTotal[7] = 0;
NotaPressTotal[8] = 0;
NotaPressTotal[9] = 0;
NotaPressTotal[10] = 0;
NotaPressTotal[11] = 0.25;
NotaPressTotal[12] = 0.25;
NotaPressTotal[13] = 0;
NotaPressTotal[14] = 0;
NotaPressTotal[15] = 0;
NotaPressTotal[16] = 0;
NotaPressTotal[17] = 0;
NotaPressTotal[18] = 0;
NotaPressTotal[19] = 0;
NotaPressTotal[20] = 0;
NotaPressTotal[21] = 0.4375;
NotaPressTotal[22] = 0.375;
NotaPressTotal[23] = 0;
NotaPressTotal[24] = 0.8125;
NotaPressTotal[25] = 0;
NotaPressTotal[26] = 0.5625;
NotaPressTotal[27] = 0.5625;
NotaPressTotal[28] = 0.4375;
NotaPressTotal[29] = 0.5625;
NotaPressTotal[30] = 0;
NotaPressTotal[31] = 0.6875;
NotaPressTotal[32] = 0.6875;
NotaPressTotal[33] = 0;
NotaPressTotal[34] = 0;
NotaPressTotal[35] = 0.75;
NotaPressTotal[36] = 0.75;
NotaPressTotal[37] = 0;
NotaPressTotal[38] = 2.125;
NotaPressTotal[39] = 0;
NotaPressTotal[40] = 0;
NotaPressTotal[41] = 0;
NotaPressTotal[42] = 0;
NotaPressTotal[43] = 0;
NotaPressTotal[44] = 0;
NotaPressTotal[45] = 0;
NotaPressTotal[46] = 0;
NotaPressTotal[47] = 0;
NotaPressTotal[48] = 0;
NotaPressTotal[49] = 0;
NotaPressTotal[50] = 0;
NotaPressTotal[51] = 0;
NotaPressTotal[52] = 0;
NotaPressTotal[53] = 0;
NotaPressTotal[54] = 0;
NotaPressTotal[55] = 0;
NotaPressTotal[56] = 0;
NotaPressTotal[57] = 0;
NotaPressTotal[58] = 0;
NotaPressTotal[59] = 0;
NotaPressTotal[60] = 0;
NotaPressTotal[61] = 0;
NotaPressTotal[62] = 0;
NotaPressTotal[63] = 0;
NotaPressTotal[64] = 0.8125;
NotaPressTotal[65] = 0;
NotaPressTotal[66] = 0;
NotaPressTotal[67] = 0;
NotaPressTotal[68] = 0;
NotaPressTotal[69] = 0;
NotaPressTotal[70] = 0;
NotaPressTotal[71] = 0;
NotaPressTotal[72] = 0.875;
NotaPressTotal[73] = 0.875;
NotaPressTotal[74] = 0;
NotaPressTotal[75] = 0;
NotaPressTotal[76] = 0.1875;
NotaPressTotal[77] = 0.5;
NotaPressTotal[78] = 0.5;
NotaPressTotal[79] = 0;
NotaPressTotal[80] = 0.375;
NotaPressTotal[81] = 0;
NotaPressTotal[82] = 0;
NotaPressTotal[83] = 0;
NotaPressTotal[84] = 0;
NotaPressTotal[85] = 0.3125;
NotaPressTotal[86] = 0.5;
NotaPressTotal[87] = 0.5;
NotaPressTotal[88] = 1.375;
NotaPressTotal[89] = 1.375;
NotaPressTotal[90] = 0.4375;
NotaPressTotal[91] = 0.375;
NotaPressTotal[92] = 0;
NotaPressTotal[93] = 0.8125;
NotaPressTotal[94] = 0;
NotaPressTotal[95] = 0.5625;
NotaPressTotal[96] = 0.5625;
NotaPressTotal[97] = 0.4375;
NotaPressTotal[98] = 0.5625;
NotaPressTotal[99] = 0;
NotaPressTotal[100] = 0.6875;
NotaPressTotal[101] = 0.6875;
NotaPressTotal[102] = 0;
NotaPressTotal[103] = 0;
NotaPressTotal[104] = 0.75;
NotaPressTotal[105] = 0.75;
NotaPressTotal[106] = 0;
NotaPressTotal[107] = 2.125;
NotaPressTotal[108] = 0;
NotaPressTotal[109] = 0;
NotaPressTotal[110] = 0;
NotaPressTotal[111] = 0;
NotaPressTotal[112] = 0;
NotaPressTotal[113] = 0;
NotaPressTotal[114] = 0;
NotaPressTotal[115] = 0;
NotaPressTotal[116] = 0;
NotaPressTotal[117] = 0;
NotaPressTotal[118] = 0;
NotaPressTotal[119] = 0;
NotaPressTotal[120] = 0;
NotaPressTotal[121] = 0;
NotaPressTotal[122] = 0;
NotaPressTotal[123] = 0;
NotaPressTotal[124] = 0;
NotaPressTotal[125] = 0;
NotaPressTotal[126] = 0;
NotaPressTotal[127] = 0;
NotaPressTotal[128] = 0;
NotaPressTotal[129] = 0;
NotaPressTotal[130] = 0;
NotaPressTotal[131] = 0;
NotaPressTotal[132] = 0;
NotaPressTotal[133] = 0.8125;
NotaPressTotal[134] = 0;
NotaPressTotal[135] = 0;
NotaPressTotal[136] = 0;
NotaPressTotal[137] = 0;
NotaPressTotal[138] = 0;
NotaPressTotal[139] = 0;
NotaPressTotal[140] = 0;
NotaPressTotal[141] = 0.875;
NotaPressTotal[142] = 0.875;
NotaPressTotal[143] = 0;
NotaPressTotal[144] = 0;
NotaPressTotal[145] = 0.1875;
NotaPressTotal[146] = 0.5;
NotaPressTotal[147] = 0.5;
NotaPressTotal[148] = 0;
NotaPressTotal[149] = 0.375;
NotaPressTotal[150] = 0;
NotaPressTotal[151] = 0;
NotaPressTotal[152] = 0;
NotaPressTotal[153] = 0;
NotaPressTotal[154] = 0.3125;
NotaPressTotal[155] = 0.5;
NotaPressTotal[156] = 0.5;
NotaPressTotal[157] = 1.375;
NotaPressTotal[158] = 1.375;
NotaPressTotal[159] = 0.5;
NotaPressTotal[160] = 0.5;
NotaPressTotal[161] = 0.5;
NotaPressTotal[162] = 0.5;
NotaPressTotal[163] = 0.4375;
NotaPressTotal[164] = 0;
NotaPressTotal[165] = 0;
NotaPressTotal[166] = 0;
NotaPressTotal[167] = 0.3125;
NotaPressTotal[168] = 0.3125;
NotaPressTotal[169] = 0;
NotaPressTotal[170] = 0;
NotaPressTotal[171] = 0;
NotaPressTotal[172] = 0;
NotaPressTotal[173] = 0;
NotaPressTotal[174] = 0;
NotaPressTotal[175] = 0;
NotaPressTotal[176] = 0.4375;
NotaPressTotal[177] = 0.4375;
NotaPressTotal[178] = 0.4375;
NotaPressTotal[179] = 0.4375;
NotaPressTotal[180] = 0.375;
NotaPressTotal[181] = 0.375;
NotaPressTotal[182] = 0;
NotaPressTotal[183] = 0.25;
NotaPressTotal[184] = 0.4375;
NotaPressTotal[185] = 0.375;
NotaPressTotal[186] = 0.375;
NotaPressTotal[187] = 0;
NotaPressTotal[188] = 0;
NotaPressTotal[189] = 0;
NotaPressTotal[190] = 0;
NotaPressTotal[191] = 0;
NotaPressTotal[192] = 0;
NotaPressTotal[193] = 0.3125;
NotaPressTotal[194] = 0.4375;
NotaPressTotal[195] = 0.4375;
NotaPressTotal[196] = 0.4375;
NotaPressTotal[197] = 0.4375;
NotaPressTotal[198] = 0.4375;
NotaPressTotal[199] = 0.4375;
NotaPressTotal[200] = 0.4375;
NotaPressTotal[201] = 0.4375;
NotaPressTotal[202] = 0.4375;
NotaPressTotal[203] = 0.4375;
NotaPressTotal[204] = 0.375;
NotaPressTotal[205] = 0.5;
NotaPressTotal[206] = 0;
NotaPressTotal[207] = 0;
NotaPressTotal[208] = 0;
NotaPressTotal[209] = 0;
NotaPressTotal[210] = 0;
NotaPressTotal[211] = 0;
NotaPressTotal[212] = 0;
NotaPressTotal[213] = 0;
NotaPressTotal[214] = 0;
NotaPressTotal[215] = 0;
NotaPressTotal[216] = 0;
NotaPressTotal[217] = 0;
NotaPressTotal[218] = 0;
NotaPressTotal[219] = 0;
NotaPressTotal[220] = 0;
NotaPressTotal[221] = 0;
NotaPressTotal[222] = 0;
NotaPressTotal[223] = 0;
NotaPressTotal[224] = 0;
NotaPressTotal[225] = 0;
NotaPressTotal[226] = 0;
NotaPressTotal[227] = 0;
NotaPressTotal[228] = 0;
NotaPressTotal[229] = 0;
NotaPressTotal[230] = 0;
NotaPressTotal[231] = 0;
NotaPressTotal[232] = 0;
NotaPressTotal[233] = 0;
NotaPressTotal[234] = 0;
NotaPressTotal[235] = 0;
NotaPressTotal[236] = 0.4375;
NotaPressTotal[237] = 0.6875;
NotaPressTotal[238] = 0.6875;
NotaPressTotal[239] = 0;
NotaPressTotal[240] = 0;
NotaPressTotal[241] = 0.6875;
NotaPressTotal[242] = 0.6875;
NotaPressTotal[243] = 0.625;
NotaPressTotal[244] = 0;
NotaPressTotal[245] = 0;
NotaPressTotal[246] = 0;
NotaPressTotal[247] = 0;
NotaPressTotal[248] = 0;
NotaPressTotal[249] = 0.625;
NotaPressTotal[250] = 0.625;
NotaPressTotal[251] = 0;
NotaPressTotal[252] = 0;
NotaPressTotal[253] = 0;
NotaPressTotal[254] = 0;
NotaPressTotal[0xFF] = 0;
NotaPressTotal[0x0100] = 0;
NotaPressTotal[0x0101] = 0;
NotaPressTotal[258] = 0;
NotaPressTotal[259] = 0;
NotaPressTotal[260] = 0;
NotaPressTotal[261] = 0;
NotaPressTotal[262] = 0;
NotaPressTotal[263] = 0.1875;
NotaPressTotal[264] = 0;
NotaPressTotal[265] = 0;
NotaPressTotal[266] = 0;
NotaPressTotal[267] = 0;
NotaPressTotal[268] = 0.5;
NotaPressTotal[269] = 0.5;
NotaPressTotal[270] = 0.4375;
NotaPressTotal[271] = 0.375;
NotaPressTotal[272] = 0;
NotaPressTotal[273] = 0.8125;
NotaPressTotal[274] = 0;
NotaPressTotal[275] = 0.5625;
NotaPressTotal[276] = 0.5625;
NotaPressTotal[277] = 0.4375;
NotaPressTotal[278] = 0.5625;
NotaPressTotal[279] = 0;
NotaPressTotal[280] = 0.6875;
NotaPressTotal[281] = 0.6875;
NotaPressTotal[282] = 0;
NotaPressTotal[283] = 0;
NotaPressTotal[284] = 0.75;
NotaPressTotal[285] = 0.75;
NotaPressTotal[286] = 0;
NotaPressTotal[287] = 2.125;
NotaPressTotal[288] = 0;
NotaPressTotal[289] = 0;
NotaPressTotal[290] = 0;
NotaPressTotal[291] = 0;
NotaPressTotal[292] = 0;
NotaPressTotal[293] = 0;
NotaPressTotal[294] = 0;
NotaPressTotal[295] = 0;
NotaPressTotal[296] = 0;
NotaPressTotal[297] = 0;
NotaPressTotal[298] = 0;
NotaPressTotal[299] = 0;
NotaPressTotal[300] = 0;
NotaPressTotal[301] = 0;
NotaPressTotal[302] = 0;
NotaPressTotal[303] = 0;
NotaPressTotal[304] = 0;
NotaPressTotal[305] = 0;
NotaPressTotal[306] = 0;
NotaPressTotal[307] = 0;
NotaPressTotal[308] = 0;
NotaPressTotal[309] = 0;
NotaPressTotal[310] = 0;
NotaPressTotal[311] = 0;
NotaPressTotal[312] = 0.8125;
NotaPressTotal[313] = 0;
NotaPressTotal[314] = 0;
NotaPressTotal[315] = 0;
NotaPressTotal[316] = 0;
NotaPressTotal[317] = 0;
NotaPressTotal[318] = 0;
NotaPressTotal[319] = 0;
NotaPressTotal[320] = 0.875;
NotaPressTotal[321] = 0.875;
NotaPressTotal[322] = 0;
NotaPressTotal[323] = 0;
NotaPressTotal[324] = 0.1875;
NotaPressTotal[325] = 0.5;
NotaPressTotal[326] = 0.5;
NotaPressTotal[327] = 0;
NotaPressTotal[328] = 0.375;
NotaPressTotal[329] = 0;
NotaPressTotal[330] = 0;
NotaPressTotal[331] = 0;
NotaPressTotal[332] = 0;
NotaPressTotal[333] = 0.3125;
NotaPressTotal[334] = 0.5;
NotaPressTotal[335] = 0.5;
NotaPressTotal[336] = 1.375;
NotaPressTotal[337] = 1.375;
NotaPressTotal[338] = 0;
NotaPressTotal[339] = 0.3125;
NotaPressTotal[340] = 0;
NotaPressTotal[341] = 0.375;
NotaPressTotal[342] = 0;
NotaPressTotal[343] = 0;
NotaPressTotal[344] = 0;
NotaPressTotal[345] = 0;
NotaPressTotal[346] = 0.3125;
NotaPressTotal[347] = 0.5;
NotaPressTotal[348] = 0.5;
NotaPressTotal[349] = 1.0625;
NotaPressTotal[350] = 1.0625;
NotaPressTotal[351] = 0;
NotaPressTotal[352] = 1.25;
NotaPressTotal[353] = 1.25;
NotaPressTotal[354] = 0;
NotaPressTotal[355] = 0;
NotaPressTotal[356] = 0;
NotaPressTotal[357] = 0;
NotaPressTotal[358] = 0;
NotaPressTotal[359] = 0;
NotaPressTotal[360] = 0.5;
NotaPressTotal[361] = 0;
NotaPressTotal[362] = 0;
NotaPressTotal[363] = 0;
NotaPressTotal[364] = 0;
NotaPressTotal[365] = 0;
NotaPressTotal[366] = 0;
NotaPressTotal[367] = 0;
NotaPressTotal[368] = 0;
NotaPressTotal[369] = 0.5625;
NotaPressTotal[370] = 0.5625;
NotaPressTotal[371] = 0;
NotaPressTotal[372] = 0;
NotaPressTotal[373] = 1.0625;
NotaPressTotal[374] = 0;
NotaPressTotal[375] = 0;
NotaPressTotal[376] = 0;
NotaPressTotal[377] = 0;
NotaPressTotal[378] = 0;
NotaPressTotal[379] = 0;
NotaPressTotal[380] = 0;
NotaPressTotal[381] = 0;
NotaPressTotal[382] = 0;
NotaPressTotal[383] = 0;
NotaPressTotal[384] = 0;
NotaPressTotal[385] = 0;
NotaPressTotal[386] = 0;
NotaPressTotal[387] = 0;
NotaPressTotal[388] = 0;
NotaPressTotal[389] = 0;
NotaPressTotal[390] = 0;
NotaPressTotal[391] = 0.625;
NotaPressTotal[392] = 0;
NotaPressTotal[393] = 0;
NotaPressTotal[394] = 0;
NotaPressTotal[395] = 0;
NotaPressTotal[396] = 0;
NotaPressTotal[397] = 0;
NotaPressTotal[398] = 0;
NotaPressTotal[399] = 0;
NotaPressTotal[400] = 0;
NotaPressTotal[401] = 0;
NotaPressTotal[402] = 0;
NotaPressTotal[403] = 0;
NotaPressTotal[404] = 0.625;
NotaPressTotal[405] = 0;
NotaPressTotal[406] = 0;
NotaPressTotal[407] = 0;
NotaPressTotal[408] = 0;
NotaPressTotal[409] = 0;
NotaPressTotal[410] = 0;
NotaPressTotal[411] = 0;
NotaPressTotal[412] = 0;
NotaPressTotal[413] = 0;
NotaPressTotal[414] = 0;
NotaPressTotal[415] = 0;
NotaPressTotal[416] = 0;
NotaPressTotal[417] = 0;
NotaPressTotal[418] = 0;
NotaPressTotal[419] = 0;
NotaPressTotal[420] = 0;
NotaPressTotal[421] = 0;
NotaPressTotal[422] = 0;
NotaPressTotal[423] = 0;
NotaPressTotal[424] = 0.25;
NotaPressTotal[425] = 0.25;
NotaPressTotal[426] = 0;
NotaPressTotal[427] = 0;
NotaPressTotal[428] = 0;
NotaPressTotal[429] = 0;
NotaPressTotal[430] = 0;
NotaPressTotal[431] = 0;
NotaPressTotal[432] = 0;
NotaPressTotal[433] = 0;
NotaPressTotal[434] = 0;
NotaPressTotal[435] = 0;
NotaPressTotal[436] = 0;
NotaPressTotal[437] = 0;
NotaPressTotal[438] = 0;
NotaPressTotal[439] = 0;
NotaPressTotal[440] = 0;
NotaPressTotal[441] = 0;
NotaPressTotal[442] = 0;
NotaPressTotal[443] = 0;
NotaPressTotal[444] = 0;
NotaPressTotal[445] = 0;
NotaPressTotal[446] = 0;
NotaPressTotal[447] = 0;
NotaPressTotal[448] = 0;
NotaPressTotal[449] = 0.25;
NotaPressTotal[450] = 0.25;
NotaPressTotal[451] = 0;
NotaPressTotal[452] = 0;
NotaPressTotal[453] = 0;
NotaPressTotal[454] = 0;
NotaPressTotal[455] = 0;
NotaPressTotal[456] = 0;
NotaPressTotal[457] = 0;
NotaPressTotal[458] = 0;
NotaPressTotal[459] = 0;
NotaPressTotal[460] = 0;
}
public function mediumColores(){
NotaColorTotal[1] = 2;
NotaColorTotal[2] = 3;
NotaColorTotal[3] = 0;
NotaColorTotal[4] = 3;
NotaColorTotal[5] = 3;
NotaColorTotal[6] = 2;
NotaColorTotal[7] = 3;
NotaColorTotal[8] = 0;
NotaColorTotal[9] = 2;
NotaColorTotal[10] = 3;
NotaColorTotal[11] = 0;
NotaColorTotal[12] = 3;
NotaColorTotal[13] = 3;
NotaColorTotal[14] = 2;
NotaColorTotal[15] = 3;
NotaColorTotal[16] = 0;
NotaColorTotal[17] = 3;
NotaColorTotal[18] = 1;
NotaColorTotal[19] = 2;
NotaColorTotal[20] = 0;
NotaColorTotal[21] = 3;
NotaColorTotal[22] = 1;
NotaColorTotal[23] = 2;
NotaColorTotal[24] = 1;
NotaColorTotal[25] = 0;
NotaColorTotal[26] = 0;
NotaColorTotal[27] = 1;
NotaColorTotal[28] = 3;
NotaColorTotal[29] = 0;
NotaColorTotal[30] = 1;
NotaColorTotal[31] = 2;
NotaColorTotal[32] = 3;
NotaColorTotal[33] = 1;
NotaColorTotal[34] = 3;
NotaColorTotal[35] = 2;
NotaColorTotal[36] = 3;
NotaColorTotal[37] = 1;
NotaColorTotal[38] = 0;
NotaColorTotal[39] = 1;
NotaColorTotal[40] = 1;
NotaColorTotal[41] = 2;
NotaColorTotal[42] = 0;
NotaColorTotal[43] = 2;
NotaColorTotal[44] = 3;
NotaColorTotal[45] = 1;
NotaColorTotal[46] = 0;
NotaColorTotal[47] = 1;
NotaColorTotal[48] = 1;
NotaColorTotal[49] = 2;
NotaColorTotal[50] = 3;
NotaColorTotal[51] = 1;
NotaColorTotal[52] = 0;
NotaColorTotal[53] = 2;
NotaColorTotal[54] = 1;
NotaColorTotal[55] = 1;
NotaColorTotal[56] = 1;
NotaColorTotal[57] = 0;
NotaColorTotal[58] = 1;
NotaColorTotal[59] = 3;
NotaColorTotal[60] = 2;
NotaColorTotal[61] = 1;
NotaColorTotal[62] = 0;
NotaColorTotal[63] = 1;
NotaColorTotal[64] = 1;
NotaColorTotal[65] = 0;
NotaColorTotal[66] = 1;
NotaColorTotal[67] = 2;
NotaColorTotal[68] = 3;
NotaColorTotal[69] = 1;
NotaColorTotal[70] = 2;
NotaColorTotal[71] = 0;
NotaColorTotal[72] = 1;
NotaColorTotal[73] = 3;
NotaColorTotal[74] = 0;
NotaColorTotal[75] = 1;
NotaColorTotal[76] = 2;
NotaColorTotal[77] = 0;
NotaColorTotal[78] = 1;
NotaColorTotal[79] = 2;
NotaColorTotal[80] = 0;
NotaColorTotal[81] = 0;
NotaColorTotal[82] = 2;
NotaColorTotal[83] = 0;
NotaColorTotal[84] = 1;
NotaColorTotal[85] = 3;
NotaColorTotal[86] = 1;
NotaColorTotal[87] = 2;
NotaColorTotal[88] = 0;
NotaColorTotal[89] = 3;
NotaColorTotal[90] = 1;
NotaColorTotal[91] = 2;
NotaColorTotal[92] = 1;
NotaColorTotal[93] = 0;
NotaColorTotal[94] = 0;
NotaColorTotal[95] = 1;
NotaColorTotal[96] = 3;
NotaColorTotal[97] = 0;
NotaColorTotal[98] = 1;
NotaColorTotal[99] = 2;
NotaColorTotal[100] = 3;
NotaColorTotal[101] = 1;
NotaColorTotal[102] = 3;
NotaColorTotal[103] = 2;
NotaColorTotal[104] = 3;
NotaColorTotal[105] = 1;
NotaColorTotal[106] = 0;
NotaColorTotal[107] = 1;
NotaColorTotal[108] = 1;
NotaColorTotal[109] = 2;
NotaColorTotal[110] = 0;
NotaColorTotal[111] = 2;
NotaColorTotal[112] = 3;
NotaColorTotal[113] = 1;
NotaColorTotal[114] = 0;
NotaColorTotal[115] = 1;
NotaColorTotal[116] = 1;
NotaColorTotal[117] = 2;
NotaColorTotal[118] = 1;
NotaColorTotal[119] = 0;
NotaColorTotal[120] = 2;
NotaColorTotal[121] = 1;
NotaColorTotal[122] = 1;
NotaColorTotal[123] = 1;
NotaColorTotal[124] = 0;
NotaColorTotal[125] = 1;
NotaColorTotal[126] = 3;
NotaColorTotal[127] = 2;
NotaColorTotal[128] = 1;
NotaColorTotal[129] = 0;
NotaColorTotal[130] = 1;
NotaColorTotal[131] = 1;
NotaColorTotal[132] = 0;
NotaColorTotal[133] = 1;
NotaColorTotal[134] = 2;
NotaColorTotal[135] = 3;
NotaColorTotal[136] = 1;
NotaColorTotal[137] = 2;
NotaColorTotal[138] = 0;
NotaColorTotal[139] = 1;
NotaColorTotal[140] = 3;
NotaColorTotal[141] = 0;
NotaColorTotal[142] = 1;
NotaColorTotal[143] = 2;
NotaColorTotal[144] = 0;
NotaColorTotal[145] = 1;
NotaColorTotal[146] = 2;
NotaColorTotal[147] = 0;
NotaColorTotal[148] = 1;
NotaColorTotal[149] = 0;
NotaColorTotal[150] = 1;
NotaColorTotal[151] = 1;
NotaColorTotal[152] = 3;
NotaColorTotal[153] = 2;
NotaColorTotal[154] = 3;
NotaColorTotal[155] = 3;
NotaColorTotal[156] = 2;
NotaColorTotal[157] = 2;
NotaColorTotal[158] = 2;
NotaColorTotal[159] = 2;
NotaColorTotal[160] = 3;
NotaColorTotal[161] = 1;
NotaColorTotal[162] = 2;
NotaColorTotal[163] = 0;
NotaColorTotal[164] = 1;
NotaColorTotal[165] = 2;
NotaColorTotal[166] = 3;
NotaColorTotal[167] = 0;
NotaColorTotal[168] = 0;
NotaColorTotal[169] = 2;
NotaColorTotal[170] = 1;
NotaColorTotal[171] = 2;
NotaColorTotal[172] = 3;
NotaColorTotal[173] = 2;
NotaColorTotal[174] = 2;
NotaColorTotal[175] = 0;
NotaColorTotal[176] = 1;
NotaColorTotal[177] = 3;
NotaColorTotal[178] = 2;
NotaColorTotal[179] = 3;
NotaColorTotal[180] = 2;
NotaColorTotal[181] = 3;
NotaColorTotal[182] = 2;
NotaColorTotal[183] = 3;
NotaColorTotal[184] = 1;
NotaColorTotal[185] = 2;
NotaColorTotal[186] = 3;
NotaColorTotal[187] = 1;
NotaColorTotal[188] = 3;
NotaColorTotal[189] = 0;
NotaColorTotal[190] = 1;
NotaColorTotal[191] = 2;
NotaColorTotal[192] = 3;
NotaColorTotal[193] = 1;
NotaColorTotal[194] = 2;
NotaColorTotal[195] = 1;
NotaColorTotal[196] = 0;
NotaColorTotal[197] = 0;
NotaColorTotal[198] = 3;
NotaColorTotal[199] = 1;
NotaColorTotal[200] = 3;
NotaColorTotal[201] = 1;
NotaColorTotal[202] = 2;
NotaColorTotal[203] = 3;
NotaColorTotal[204] = 2;
NotaColorTotal[205] = 3;
NotaColorTotal[206] = 0;
NotaColorTotal[207] = 3;
NotaColorTotal[208] = 1;
NotaColorTotal[209] = 3;
NotaColorTotal[210] = 2;
NotaColorTotal[211] = 2;
NotaColorTotal[212] = 0;
NotaColorTotal[213] = 1;
NotaColorTotal[214] = 3;
NotaColorTotal[215] = 1;
NotaColorTotal[216] = 3;
NotaColorTotal[217] = 2;
NotaColorTotal[218] = 3;
NotaColorTotal[219] = 2;
NotaColorTotal[220] = 0;
NotaColorTotal[221] = 1;
NotaColorTotal[222] = 1;
NotaColorTotal[223] = 2;
NotaColorTotal[224] = 3;
NotaColorTotal[225] = 2;
NotaColorTotal[226] = 2;
NotaColorTotal[227] = 1;
NotaColorTotal[228] = 1;
NotaColorTotal[229] = 0;
NotaColorTotal[230] = 3;
NotaColorTotal[231] = 1;
NotaColorTotal[232] = 2;
NotaColorTotal[233] = 1;
NotaColorTotal[234] = 1;
NotaColorTotal[235] = 3;
NotaColorTotal[236] = 2;
NotaColorTotal[237] = 2;
NotaColorTotal[238] = 0;
NotaColorTotal[239] = 1;
NotaColorTotal[240] = 1;
NotaColorTotal[241] = 3;
NotaColorTotal[242] = 3;
NotaColorTotal[243] = 1;
NotaColorTotal[244] = 2;
NotaColorTotal[245] = 0;
NotaColorTotal[246] = 3;
NotaColorTotal[247] = 1;
NotaColorTotal[248] = 2;
NotaColorTotal[249] = 1;
NotaColorTotal[250] = 0;
NotaColorTotal[251] = 0;
NotaColorTotal[252] = 1;
NotaColorTotal[253] = 3;
NotaColorTotal[254] = 0;
NotaColorTotal[0xFF] = 1;
NotaColorTotal[0x0100] = 2;
NotaColorTotal[0x0101] = 3;
NotaColorTotal[258] = 1;
NotaColorTotal[259] = 3;
NotaColorTotal[260] = 2;
NotaColorTotal[261] = 3;
NotaColorTotal[262] = 1;
NotaColorTotal[263] = 0;
NotaColorTotal[264] = 1;
NotaColorTotal[265] = 1;
NotaColorTotal[266] = 2;
NotaColorTotal[267] = 0;
NotaColorTotal[268] = 2;
NotaColorTotal[269] = 3;
NotaColorTotal[270] = 1;
NotaColorTotal[271] = 0;
NotaColorTotal[272] = 1;
NotaColorTotal[273] = 1;
NotaColorTotal[274] = 2;
NotaColorTotal[275] = 0;
NotaColorTotal[276] = 1;
NotaColorTotal[277] = 2;
NotaColorTotal[278] = 1;
NotaColorTotal[279] = 1;
NotaColorTotal[280] = 1;
NotaColorTotal[281] = 0;
NotaColorTotal[282] = 1;
NotaColorTotal[283] = 1;
NotaColorTotal[284] = 3;
NotaColorTotal[285] = 2;
NotaColorTotal[286] = 1;
NotaColorTotal[287] = 0;
NotaColorTotal[288] = 1;
NotaColorTotal[289] = 1;
NotaColorTotal[290] = 0;
NotaColorTotal[291] = 1;
NotaColorTotal[292] = 2;
NotaColorTotal[293] = 3;
NotaColorTotal[294] = 1;
NotaColorTotal[295] = 2;
NotaColorTotal[296] = 0;
NotaColorTotal[297] = 3;
NotaColorTotal[298] = 0;
NotaColorTotal[299] = 1;
NotaColorTotal[300] = 2;
NotaColorTotal[301] = 0;
NotaColorTotal[302] = 1;
NotaColorTotal[303] = 2;
NotaColorTotal[304] = 0;
NotaColorTotal[305] = 0;
NotaColorTotal[306] = 2;
NotaColorTotal[307] = 0;
NotaColorTotal[308] = 1;
NotaColorTotal[309] = 1;
NotaColorTotal[310] = 2;
NotaColorTotal[311] = 3;
NotaColorTotal[312] = 0;
NotaColorTotal[313] = 1;
NotaColorTotal[314] = 2;
NotaColorTotal[315] = 0;
NotaColorTotal[316] = 1;
NotaColorTotal[317] = 2;
NotaColorTotal[318] = 0;
NotaColorTotal[319] = 0;
NotaColorTotal[320] = 2;
NotaColorTotal[321] = 0;
NotaColorTotal[322] = 1;
NotaColorTotal[323] = 0;
NotaColorTotal[324] = 0;
NotaColorTotal[325] = 2;
NotaColorTotal[326] = 0;
NotaColorTotal[327] = 0;
NotaColorTotal[328] = 1;
NotaColorTotal[329] = 1;
NotaColorTotal[330] = 1;
NotaColorTotal[331] = 2;
NotaColorTotal[332] = 1;
NotaColorTotal[333] = 2;
NotaColorTotal[334] = 3;
NotaColorTotal[335] = 2;
NotaColorTotal[336] = 2;
NotaColorTotal[337] = 1;
NotaColorTotal[338] = 1;
NotaColorTotal[339] = 0;
NotaColorTotal[340] = 0;
NotaColorTotal[341] = 1;
NotaColorTotal[342] = 1;
NotaColorTotal[343] = 0;
NotaColorTotal[344] = 2;
NotaColorTotal[345] = 1;
NotaColorTotal[346] = 3;
NotaColorTotal[347] = 0;
NotaColorTotal[348] = 1;
NotaColorTotal[349] = 1;
NotaColorTotal[350] = 1;
NotaColorTotal[351] = 2;
NotaColorTotal[352] = 1;
NotaColorTotal[353] = 2;
NotaColorTotal[354] = 3;
NotaColorTotal[355] = 1;
NotaColorTotal[356] = 0;
NotaColorTotal[357] = 1;
NotaColorTotal[358] = 1;
NotaColorTotal[359] = 3;
NotaColorTotal[360] = 3;
NotaColorTotal[361] = 3;
NotaColorTotal[362] = 1;
NotaColorTotal[363] = 1;
NotaColorTotal[364] = 0;
NotaColorTotal[365] = 1;
NotaColorTotal[366] = 3;
NotaColorTotal[367] = 1;
NotaColorTotal[368] = 2;
NotaColorTotal[369] = 1;
NotaColorTotal[370] = 0;
NotaColorTotal[371] = 1;
NotaColorTotal[372] = 0;
NotaColorTotal[373] = 1;
NotaColorTotal[374] = 0;
NotaColorTotal[375] = 0;
NotaColorTotal[376] = 1;
NotaColorTotal[377] = 1;
NotaColorTotal[378] = 0;
NotaColorTotal[379] = 0;
NotaColorTotal[380] = 3;
NotaColorTotal[381] = 3;
NotaColorTotal[382] = 1;
NotaColorTotal[383] = 1;
NotaColorTotal[384] = 2;
NotaColorTotal[385] = 1;
NotaColorTotal[386] = 2;
NotaColorTotal[387] = 0;
NotaColorTotal[388] = 0;
NotaColorTotal[389] = 1;
NotaColorTotal[390] = 1;
NotaColorTotal[391] = 2;
NotaColorTotal[392] = 3;
NotaColorTotal[393] = 2;
NotaColorTotal[394] = 2;
NotaColorTotal[395] = 1;
NotaColorTotal[396] = 3;
NotaColorTotal[397] = 1;
NotaColorTotal[398] = 0;
NotaColorTotal[399] = 1;
NotaColorTotal[400] = 0;
NotaColorTotal[401] = 2;
NotaColorTotal[402] = 1;
NotaColorTotal[403] = 3;
NotaColorTotal[404] = 3;
NotaColorTotal[405] = 1;
NotaColorTotal[406] = 2;
NotaColorTotal[407] = 1;
NotaColorTotal[408] = 0;
NotaColorTotal[409] = 1;
NotaColorTotal[410] = 3;
NotaColorTotal[411] = 1;
NotaColorTotal[412] = 2;
NotaColorTotal[413] = 1;
NotaColorTotal[414] = 0;
NotaColorTotal[415] = 0;
NotaColorTotal[416] = 1;
NotaColorTotal[417] = 2;
NotaColorTotal[418] = 3;
NotaColorTotal[419] = 1;
NotaColorTotal[420] = 2;
NotaColorTotal[421] = 1;
NotaColorTotal[422] = 0;
NotaColorTotal[423] = 1;
NotaColorTotal[424] = 0;
NotaColorTotal[425] = 1;
NotaColorTotal[426] = 0;
}
public function easyPress(){
NotaPressTotal[1] = 0.25;
NotaPressTotal[2] = 0;
NotaPressTotal[3] = 0;
NotaPressTotal[4] = 0;
NotaPressTotal[5] = 0;
NotaPressTotal[6] = 0;
NotaPressTotal[7] = 0;
NotaPressTotal[8] = 0;
NotaPressTotal[9] = 0;
NotaPressTotal[10] = 0;
NotaPressTotal[11] = 0.25;
NotaPressTotal[12] = 0;
NotaPressTotal[13] = 0;
NotaPressTotal[14] = 0;
NotaPressTotal[15] = 0;
NotaPressTotal[16] = 0;
NotaPressTotal[17] = 0;
NotaPressTotal[18] = 0;
NotaPressTotal[19] = 0;
NotaPressTotal[20] = 0;
NotaPressTotal[21] = 0.4375;
NotaPressTotal[22] = 0.375;
NotaPressTotal[23] = 0;
NotaPressTotal[24] = 0.8125;
NotaPressTotal[25] = 0;
NotaPressTotal[26] = 0.5625;
NotaPressTotal[27] = 0.5625;
NotaPressTotal[28] = 0.4375;
NotaPressTotal[29] = 0.5625;
NotaPressTotal[30] = 0;
NotaPressTotal[31] = 0.6875;
NotaPressTotal[32] = 0;
NotaPressTotal[33] = 0;
NotaPressTotal[34] = 0.75;
NotaPressTotal[35] = 0;
NotaPressTotal[36] = 2.125;
NotaPressTotal[37] = 0;
NotaPressTotal[38] = 0;
NotaPressTotal[39] = 0;
NotaPressTotal[40] = 0;
NotaPressTotal[41] = 0;
NotaPressTotal[42] = 0;
NotaPressTotal[43] = 0;
NotaPressTotal[44] = 0;
NotaPressTotal[45] = 0;
NotaPressTotal[46] = 0;
NotaPressTotal[47] = 0;
NotaPressTotal[48] = 0;
NotaPressTotal[49] = 0;
NotaPressTotal[50] = 0;
NotaPressTotal[51] = 0;
NotaPressTotal[52] = 0;
NotaPressTotal[53] = 0;
NotaPressTotal[54] = 0;
NotaPressTotal[55] = 0;
NotaPressTotal[56] = 0;
NotaPressTotal[57] = 0;
NotaPressTotal[58] = 0;
NotaPressTotal[59] = 0;
NotaPressTotal[60] = 0.8125;
NotaPressTotal[61] = 0;
NotaPressTotal[62] = 0;
NotaPressTotal[63] = 0;
NotaPressTotal[64] = 0;
NotaPressTotal[65] = 0;
NotaPressTotal[66] = 0;
NotaPressTotal[67] = 0;
NotaPressTotal[68] = 0.875;
NotaPressTotal[69] = 0;
NotaPressTotal[70] = 0;
NotaPressTotal[71] = 0.1875;
NotaPressTotal[72] = 0.5;
NotaPressTotal[73] = 0.5;
NotaPressTotal[74] = 0;
NotaPressTotal[75] = 0.375;
NotaPressTotal[76] = 0;
NotaPressTotal[77] = 0;
NotaPressTotal[78] = 0;
NotaPressTotal[79] = 0;
NotaPressTotal[80] = 0.3125;
NotaPressTotal[81] = 0.5;
NotaPressTotal[82] = 0.5;
NotaPressTotal[83] = 1.375;
NotaPressTotal[84] = 1.375;
NotaPressTotal[85] = 0.4375;
NotaPressTotal[86] = 0.375;
NotaPressTotal[87] = 0;
NotaPressTotal[88] = 0.8125;
NotaPressTotal[89] = 0;
NotaPressTotal[90] = 0.5625;
NotaPressTotal[91] = 0.5625;
NotaPressTotal[92] = 0.4375;
NotaPressTotal[93] = 0.5625;
NotaPressTotal[94] = 0;
NotaPressTotal[95] = 0.6875;
NotaPressTotal[96] = 0;
NotaPressTotal[97] = 0;
NotaPressTotal[98] = 0.75;
NotaPressTotal[99] = 0;
NotaPressTotal[100] = 2.125;
NotaPressTotal[101] = 0;
NotaPressTotal[102] = 0;
NotaPressTotal[103] = 0;
NotaPressTotal[104] = 0;
NotaPressTotal[105] = 0;
NotaPressTotal[106] = 0;
NotaPressTotal[107] = 0;
NotaPressTotal[108] = 0;
NotaPressTotal[109] = 0;
NotaPressTotal[110] = 0;
NotaPressTotal[111] = 0;
NotaPressTotal[112] = 0;
NotaPressTotal[113] = 0;
NotaPressTotal[114] = 0;
NotaPressTotal[115] = 0;
NotaPressTotal[116] = 0;
NotaPressTotal[117] = 0;
NotaPressTotal[118] = 0;
NotaPressTotal[119] = 0;
NotaPressTotal[120] = 0;
NotaPressTotal[121] = 0;
NotaPressTotal[122] = 0;
NotaPressTotal[123] = 0;
NotaPressTotal[124] = 0.8125;
NotaPressTotal[125] = 0;
NotaPressTotal[126] = 0;
NotaPressTotal[127] = 0;
NotaPressTotal[128] = 0;
NotaPressTotal[129] = 0;
NotaPressTotal[130] = 0;
NotaPressTotal[131] = 0;
NotaPressTotal[132] = 0.875;
NotaPressTotal[133] = 0;
NotaPressTotal[134] = 0;
NotaPressTotal[135] = 0.1875;
NotaPressTotal[136] = 0.5;
NotaPressTotal[137] = 0.5;
NotaPressTotal[138] = 0;
NotaPressTotal[139] = 0.375;
NotaPressTotal[140] = 0;
NotaPressTotal[141] = 0;
NotaPressTotal[142] = 0;
NotaPressTotal[143] = 0;
NotaPressTotal[144] = 0.3125;
NotaPressTotal[145] = 0.5;
NotaPressTotal[146] = 1.3125;
NotaPressTotal[147] = 1.3125;
NotaPressTotal[148] = 0.5;
NotaPressTotal[149] = 0.5;
NotaPressTotal[150] = 0.5;
NotaPressTotal[151] = 0.4375;
NotaPressTotal[152] = 0.4375;
NotaPressTotal[153] = 0.4375;
NotaPressTotal[154] = 0.4375;
NotaPressTotal[155] = 0.4375;
NotaPressTotal[156] = 0.5;
NotaPressTotal[157] = 0.5625;
NotaPressTotal[158] = 0.4375;
NotaPressTotal[159] = 0.4375;
NotaPressTotal[160] = 0.4375;
NotaPressTotal[161] = 0.375;
NotaPressTotal[162] = 0.375;
NotaPressTotal[163] = 0.4375;
NotaPressTotal[164] = 0;
NotaPressTotal[165] = 0;
NotaPressTotal[166] = 0.4375;
NotaPressTotal[167] = 0;
NotaPressTotal[168] = 0.4375;
NotaPressTotal[169] = 0.4375;
NotaPressTotal[170] = 0.4375;
NotaPressTotal[171] = 0.4375;
NotaPressTotal[172] = 0.4375;
NotaPressTotal[173] = 0.4375;
NotaPressTotal[174] = 0.4375;
NotaPressTotal[175] = 0.375;
NotaPressTotal[176] = 0.5;
NotaPressTotal[177] = 0.4375;
NotaPressTotal[178] = 0.4375;
NotaPressTotal[179] = 1;
NotaPressTotal[180] = 1;
NotaPressTotal[181] = 0;
NotaPressTotal[182] = 0;
NotaPressTotal[183] = 0.3125;
NotaPressTotal[184] = 0.4375;
NotaPressTotal[185] = 1.1875;
NotaPressTotal[186] = 0.6875;
NotaPressTotal[187] = 0.6875;
NotaPressTotal[188] = 0;
NotaPressTotal[189] = 0;
NotaPressTotal[190] = 0.6875;
NotaPressTotal[191] = 0.6875;
NotaPressTotal[192] = 0.625;
NotaPressTotal[193] = 0;
NotaPressTotal[194] = 0;
NotaPressTotal[195] = 0;
NotaPressTotal[196] = 0;
NotaPressTotal[197] = 0;
NotaPressTotal[198] = 0.625;
NotaPressTotal[199] = 0.625;
NotaPressTotal[200] = 0;
NotaPressTotal[201] = 0;
NotaPressTotal[202] = 0;
NotaPressTotal[203] = 0;
NotaPressTotal[204] = 0;
NotaPressTotal[205] = 0;
NotaPressTotal[206] = 0;
NotaPressTotal[207] = 0;
NotaPressTotal[208] = 0;
NotaPressTotal[209] = 0;
NotaPressTotal[210] = 0.1875;
NotaPressTotal[211] = 0;
NotaPressTotal[212] = 0;
NotaPressTotal[213] = 0;
NotaPressTotal[214] = 0;
NotaPressTotal[215] = 0.5;
NotaPressTotal[216] = 0.5;
NotaPressTotal[217] = 0.4375;
NotaPressTotal[218] = 0.375;
NotaPressTotal[219] = 0;
NotaPressTotal[220] = 0.8125;
NotaPressTotal[221] = 0;
NotaPressTotal[222] = 0.5625;
NotaPressTotal[223] = 0.5625;
NotaPressTotal[224] = 0.4375;
NotaPressTotal[225] = 0.5625;
NotaPressTotal[226] = 0;
NotaPressTotal[227] = 0.6875;
NotaPressTotal[228] = 0;
NotaPressTotal[229] = 0;
NotaPressTotal[230] = 0.75;
NotaPressTotal[231] = 0;
NotaPressTotal[232] = 2.125;
NotaPressTotal[233] = 0;
NotaPressTotal[234] = 0;
NotaPressTotal[235] = 0;
NotaPressTotal[236] = 0;
NotaPressTotal[237] = 0;
NotaPressTotal[238] = 0;
NotaPressTotal[239] = 0;
NotaPressTotal[240] = 0;
NotaPressTotal[241] = 0;
NotaPressTotal[242] = 0;
NotaPressTotal[243] = 0;
NotaPressTotal[244] = 0;
NotaPressTotal[245] = 0;
NotaPressTotal[246] = 0;
NotaPressTotal[247] = 0;
NotaPressTotal[248] = 0;
NotaPressTotal[249] = 0;
NotaPressTotal[250] = 0;
NotaPressTotal[251] = 0;
NotaPressTotal[252] = 0;
NotaPressTotal[253] = 0;
NotaPressTotal[254] = 0;
NotaPressTotal[0xFF] = 0;
NotaPressTotal[0x0100] = 0.8125;
NotaPressTotal[0x0101] = 0;
NotaPressTotal[258] = 0;
NotaPressTotal[259] = 0;
NotaPressTotal[260] = 0;
NotaPressTotal[261] = 0;
NotaPressTotal[262] = 0;
NotaPressTotal[263] = 0;
NotaPressTotal[264] = 0.875;
NotaPressTotal[265] = 0;
NotaPressTotal[266] = 0;
NotaPressTotal[267] = 0.1875;
NotaPressTotal[268] = 0.5;
NotaPressTotal[269] = 0.5;
NotaPressTotal[270] = 0;
NotaPressTotal[271] = 0.375;
NotaPressTotal[272] = 0;
NotaPressTotal[273] = 0;
NotaPressTotal[274] = 0;
NotaPressTotal[275] = 0;
NotaPressTotal[276] = 0.3125;
NotaPressTotal[277] = 0.5;
NotaPressTotal[278] = 0.5;
NotaPressTotal[279] = 1.0625;
NotaPressTotal[280] = 1.0625;
NotaPressTotal[281] = 0.1875;
NotaPressTotal[282] = 0.5;
NotaPressTotal[283] = 0.5;
NotaPressTotal[284] = 0;
NotaPressTotal[285] = 0.375;
NotaPressTotal[286] = 0;
NotaPressTotal[287] = 0;
NotaPressTotal[288] = 0;
NotaPressTotal[289] = 0;
NotaPressTotal[290] = 0.3125;
NotaPressTotal[291] = 0.5;
NotaPressTotal[292] = 0.5;
NotaPressTotal[293] = 1.0625;
NotaPressTotal[294] = 1.0625;
NotaPressTotal[295] = 0;
NotaPressTotal[296] = 1.25;
NotaPressTotal[297] = 1.25;
NotaPressTotal[298] = 0;
NotaPressTotal[299] = 0;
NotaPressTotal[300] = 0;
NotaPressTotal[301] = 0;
NotaPressTotal[302] = 0;
NotaPressTotal[303] = 0;
NotaPressTotal[304] = 0;
NotaPressTotal[305] = 0;
NotaPressTotal[306] = 0.5;
NotaPressTotal[307] = 0;
NotaPressTotal[308] = 0;
NotaPressTotal[309] = 0;
NotaPressTotal[310] = 0;
NotaPressTotal[311] = 0;
NotaPressTotal[312] = 0;
NotaPressTotal[313] = 0;
NotaPressTotal[314] = 0;
NotaPressTotal[315] = 0;
NotaPressTotal[316] = 0;
NotaPressTotal[317] = 0.5625;
NotaPressTotal[318] = 0.5625;
NotaPressTotal[319] = 0;
NotaPressTotal[320] = 0;
NotaPressTotal[321] = 1.0625;
NotaPressTotal[322] = 0;
NotaPressTotal[323] = 0;
NotaPressTotal[324] = 0;
NotaPressTotal[325] = 0;
NotaPressTotal[326] = 0;
NotaPressTotal[327] = 0;
NotaPressTotal[328] = 0;
NotaPressTotal[329] = 0;
NotaPressTotal[330] = 0;
NotaPressTotal[331] = 0;
NotaPressTotal[332] = 0;
NotaPressTotal[333] = 0;
NotaPressTotal[334] = 0.625;
NotaPressTotal[335] = 0;
NotaPressTotal[336] = 0;
NotaPressTotal[337] = 0;
NotaPressTotal[338] = 0;
NotaPressTotal[339] = 0;
NotaPressTotal[340] = 0;
NotaPressTotal[341] = 0;
NotaPressTotal[342] = 0;
NotaPressTotal[343] = 0;
NotaPressTotal[344] = 0;
NotaPressTotal[345] = 0;
NotaPressTotal[346] = 0.625;
NotaPressTotal[347] = 0;
NotaPressTotal[348] = 0;
NotaPressTotal[349] = 0;
NotaPressTotal[350] = 0;
NotaPressTotal[351] = 0;
NotaPressTotal[352] = 0;
NotaPressTotal[353] = 0;
NotaPressTotal[354] = 0;
NotaPressTotal[355] = 0;
NotaPressTotal[356] = 0;
NotaPressTotal[357] = 0;
NotaPressTotal[358] = 0;
NotaPressTotal[359] = 0;
NotaPressTotal[360] = 0;
NotaPressTotal[361] = 0;
NotaPressTotal[362] = 0;
NotaPressTotal[363] = 0;
NotaPressTotal[364] = 0;
NotaPressTotal[365] = 0;
NotaPressTotal[366] = 0;
NotaPressTotal[367] = 0.25;
NotaPressTotal[368] = 0;
NotaPressTotal[369] = 0;
NotaPressTotal[370] = 0;
NotaPressTotal[371] = 0;
NotaPressTotal[372] = 0;
NotaPressTotal[373] = 0;
NotaPressTotal[374] = 0;
NotaPressTotal[375] = 0;
NotaPressTotal[376] = 0;
NotaPressTotal[377] = 0;
NotaPressTotal[378] = 0;
NotaPressTotal[379] = 0;
NotaPressTotal[380] = 0;
NotaPressTotal[381] = 0;
NotaPressTotal[382] = 0;
NotaPressTotal[383] = 0;
NotaPressTotal[384] = 0;
NotaPressTotal[385] = 0;
NotaPressTotal[386] = 0;
NotaPressTotal[387] = 0;
NotaPressTotal[388] = 0;
NotaPressTotal[389] = 0;
NotaPressTotal[390] = 0.25;
NotaPressTotal[391] = 0.25;
NotaPressTotal[392] = 0;
NotaPressTotal[393] = 0;
NotaPressTotal[394] = 0;
NotaPressTotal[395] = 0;
NotaPressTotal[396] = 0;
NotaPressTotal[397] = 0;
NotaPressTotal[398] = 0;
NotaPressTotal[399] = 0;
NotaPressTotal[400] = 0;
NotaPressTotal[401] = 0;
}
public function mediumTiempos(){
NotaTiempo[1] = 12.75;
NotaTiempo[2] = 13.25;
NotaTiempo[3] = 13.4375;
NotaTiempo[4] = 14.875;
NotaTiempo[5] = 15.1875;
NotaTiempo[6] = 15.625;
NotaTiempo[7] = 16;
NotaTiempo[8] = 16.25;
NotaTiempo[9] = 18.4375;
NotaTiempo[10] = 18.875;
NotaTiempo[11] = 19.0625;
NotaTiempo[12] = 20.5;
NotaTiempo[13] = 20.8125;
NotaTiempo[14] = 21.25;
NotaTiempo[15] = 21.625;
NotaTiempo[16] = 21.875;
NotaTiempo[17] = 24;
NotaTiempo[18] = 24.6875;
NotaTiempo[19] = 25.25;
NotaTiempo[20] = 25.4375;
NotaTiempo[21] = 26.5625;
NotaTiempo[22] = 26.8125;
NotaTiempo[23] = 26.8125;
NotaTiempo[24] = 27.5625;
NotaTiempo[25] = 28.25;
NotaTiempo[26] = 29.375;
NotaTiempo[27] = 29.625;
NotaTiempo[28] = 29.625;
NotaTiempo[29] = 30.8125;
NotaTiempo[30] = 30.8125;
NotaTiempo[31] = 31.125;
NotaTiempo[32] = 31.125;
NotaTiempo[33] = 32.125;
NotaTiempo[34] = 32.375;
NotaTiempo[35] = 34.875;
NotaTiempo[36] = 35.25;
NotaTiempo[37] = 35.625;
NotaTiempo[38] = 36;
NotaTiempo[39] = 36.375;
NotaTiempo[40] = 36.75;
NotaTiempo[41] = 37.25;
NotaTiempo[42] = 37.4375;
NotaTiempo[43] = 37.8125;
NotaTiempo[44] = 38.125;
NotaTiempo[45] = 38.5;
NotaTiempo[46] = 38.875;
NotaTiempo[47] = 39.25;
NotaTiempo[48] = 39.5625;
NotaTiempo[49] = 40;
NotaTiempo[50] = 40;
NotaTiempo[51] = 40.1875;
NotaTiempo[52] = 40.5625;
NotaTiempo[53] = 40.75;
NotaTiempo[54] = 40.9375;
NotaTiempo[55] = 41.3125;
NotaTiempo[56] = 41.6875;
NotaTiempo[57] = 42;
NotaTiempo[58] = 42.1875;
NotaTiempo[59] = 42.375;
NotaTiempo[60] = 43.4375;
NotaTiempo[61] = 43.625;
NotaTiempo[62] = 43.875;
NotaTiempo[63] = 44.1875;
NotaTiempo[64] = 44.4375;
NotaTiempo[65] = 44.875;
NotaTiempo[66] = 45.0625;
NotaTiempo[67] = 45.25;
NotaTiempo[68] = 45.25;
NotaTiempo[69] = 46.3125;
NotaTiempo[70] = 46.5;
NotaTiempo[71] = 46.6875;
NotaTiempo[72] = 47;
NotaTiempo[73] = 47;
NotaTiempo[74] = 47.625;
NotaTiempo[75] = 48;
NotaTiempo[76] = 48.5;
NotaTiempo[77] = 48.6875;
NotaTiempo[78] = 49.0625;
NotaTiempo[79] = 49.3125;
NotaTiempo[80] = 49.5625;
NotaTiempo[81] = 50.125;
NotaTiempo[82] = 50.125;
NotaTiempo[83] = 50.8125;
NotaTiempo[84] = 50.8125;
NotaTiempo[85] = 63.5;
NotaTiempo[86] = 64.1875;
NotaTiempo[87] = 64.75;
NotaTiempo[88] = 64.9375;
NotaTiempo[89] = 66.0625;
NotaTiempo[90] = 66.3125;
NotaTiempo[91] = 66.3125;
NotaTiempo[92] = 67.0625;
NotaTiempo[93] = 67.75;
NotaTiempo[94] = 68.875;
NotaTiempo[95] = 69.125;
NotaTiempo[96] = 69.125;
NotaTiempo[97] = 70.3125;
NotaTiempo[98] = 70.3125;
NotaTiempo[99] = 70.625;
NotaTiempo[100] = 70.625;
NotaTiempo[101] = 71.625;
NotaTiempo[102] = 71.875;
NotaTiempo[103] = 74.375;
NotaTiempo[104] = 74.75;
NotaTiempo[105] = 75.125;
NotaTiempo[106] = 75.5;
NotaTiempo[107] = 75.875;
NotaTiempo[108] = 76.25;
NotaTiempo[109] = 76.75;
NotaTiempo[110] = 76.9375;
NotaTiempo[111] = 77.3125;
NotaTiempo[112] = 77.625;
NotaTiempo[113] = 78;
NotaTiempo[114] = 78.375;
NotaTiempo[115] = 78.75;
NotaTiempo[116] = 79.0625;
NotaTiempo[117] = 79.5;
NotaTiempo[118] = 79.6875;
NotaTiempo[119] = 80.0625;
NotaTiempo[120] = 80.25;
NotaTiempo[121] = 80.4375;
NotaTiempo[122] = 80.8125;
NotaTiempo[123] = 81.1875;
NotaTiempo[124] = 81.5;
NotaTiempo[125] = 81.6875;
NotaTiempo[126] = 81.875;
NotaTiempo[127] = 82.9375;
NotaTiempo[128] = 83.125;
NotaTiempo[129] = 83.375;
NotaTiempo[130] = 83.6875;
NotaTiempo[131] = 83.9375;
NotaTiempo[132] = 84.375;
NotaTiempo[133] = 84.5625;
NotaTiempo[134] = 84.75;
NotaTiempo[135] = 84.75;
NotaTiempo[136] = 85.8125;
NotaTiempo[137] = 86;
NotaTiempo[138] = 86.1875;
NotaTiempo[139] = 86.5;
NotaTiempo[140] = 86.5;
NotaTiempo[141] = 87.125;
NotaTiempo[142] = 87.5;
NotaTiempo[143] = 88;
NotaTiempo[144] = 88.1875;
NotaTiempo[145] = 88.625;
NotaTiempo[146] = 88.8125;
NotaTiempo[147] = 89.0625;
NotaTiempo[148] = 89.625;
NotaTiempo[149] = 90.3125;
NotaTiempo[150] = 90.3125;
NotaTiempo[151] = 91.875;
NotaTiempo[152] = 91.875;
NotaTiempo[153] = 92.5625;
NotaTiempo[154] = 92.5625;
NotaTiempo[155] = 93.875;
NotaTiempo[156] = 94.5625;
NotaTiempo[157] = 94.75;
NotaTiempo[158] = 94.9375;
NotaTiempo[159] = 95.25;
NotaTiempo[160] = 95.25;
NotaTiempo[161] = 95.75;
NotaTiempo[162] = 95.875;
NotaTiempo[163] = 96.125;
NotaTiempo[164] = 96.5;
NotaTiempo[165] = 96.75;
NotaTiempo[166] = 96.75;
NotaTiempo[167] = 97;
NotaTiempo[168] = 97.4375;
NotaTiempo[169] = 97.4375;
NotaTiempo[170] = 98.1875;
NotaTiempo[171] = 98.1875;
NotaTiempo[172] = 98.875;
NotaTiempo[173] = 99.5625;
NotaTiempo[174] = 99.75;
NotaTiempo[175] = 100.3125;
NotaTiempo[176] = 101;
NotaTiempo[177] = 101;
NotaTiempo[178] = 101.6875;
NotaTiempo[179] = 101.6875;
NotaTiempo[180] = 101.875;
NotaTiempo[181] = 101.875;
NotaTiempo[182] = 102.0625;
NotaTiempo[183] = 102.0625;
NotaTiempo[184] = 102.375;
NotaTiempo[185] = 103.0625;
NotaTiempo[186] = 103.0625;
NotaTiempo[187] = 103.8125;
NotaTiempo[188] = 104.5;
NotaTiempo[189] = 105.1875;
NotaTiempo[190] = 105.1875;
NotaTiempo[191] = 105.9375;
NotaTiempo[192] = 105.9375;
NotaTiempo[193] = 106.625;
NotaTiempo[194] = 106.625;
NotaTiempo[195] = 107.3125;
NotaTiempo[196] = 108;
NotaTiempo[197] = 108.6875;
NotaTiempo[198] = 108.6875;
NotaTiempo[199] = 109.3125;
NotaTiempo[200] = 109.3125;
NotaTiempo[201] = 110.5625;
NotaTiempo[202] = 110.875;
NotaTiempo[203] = 111.1875;
NotaTiempo[204] = 111.75;
NotaTiempo[205] = 111.75;
NotaTiempo[206] = 112.5;
NotaTiempo[207] = 112.5;
NotaTiempo[208] = 114.375;
NotaTiempo[209] = 114.375;
NotaTiempo[210] = 115.375;
NotaTiempo[211] = 115.5625;
NotaTiempo[212] = 115.875;
NotaTiempo[213] = 115.875;
NotaTiempo[214] = 117.25;
NotaTiempo[215] = 118.125;
NotaTiempo[216] = 118.3125;
NotaTiempo[217] = 118.5;
NotaTiempo[218] = 118.6875;
NotaTiempo[219] = 118.875;
NotaTiempo[220] = 119.0625;
NotaTiempo[221] = 119.0625;
NotaTiempo[222] = 120.0625;
NotaTiempo[223] = 120.4375;
NotaTiempo[224] = 120.625;
NotaTiempo[225] = 120.8125;
NotaTiempo[226] = 120.9375;
NotaTiempo[227] = 121.125;
NotaTiempo[228] = 121.25;
NotaTiempo[229] = 121.4375;
NotaTiempo[230] = 121.75;
NotaTiempo[231] = 122;
NotaTiempo[232] = 122;
NotaTiempo[233] = 122.375;
NotaTiempo[234] = 122.5;
NotaTiempo[235] = 122.8125;
NotaTiempo[236] = 123.1875;
NotaTiempo[237] = 123.3125;
NotaTiempo[238] = 123.5625;
NotaTiempo[239] = 123.875;
NotaTiempo[240] = 124.1875;
NotaTiempo[241] = 124.1875;
NotaTiempo[242] = 125.625;
NotaTiempo[243] = 126.3125;
NotaTiempo[244] = 126.875;
NotaTiempo[245] = 127.0625;
NotaTiempo[246] = 128.1875;
NotaTiempo[247] = 128.4375;
NotaTiempo[248] = 128.4375;
NotaTiempo[249] = 129.1875;
NotaTiempo[250] = 129.875;
NotaTiempo[251] = 131;
NotaTiempo[252] = 131.25;
NotaTiempo[253] = 131.25;
NotaTiempo[254] = 132.375;
NotaTiempo[0xFF] = 132.375;
NotaTiempo[0x0100] = 132.75;
NotaTiempo[0x0101] = 132.75;
NotaTiempo[258] = 133.75;
NotaTiempo[259] = 134;
NotaTiempo[260] = 136.5;
NotaTiempo[261] = 136.8125;
NotaTiempo[262] = 137.25;
NotaTiempo[263] = 137.625;
NotaTiempo[264] = 138;
NotaTiempo[265] = 138.375;
NotaTiempo[266] = 138.875;
NotaTiempo[267] = 139.0625;
NotaTiempo[268] = 139.4375;
NotaTiempo[269] = 139.75;
NotaTiempo[270] = 140.125;
NotaTiempo[271] = 140.5;
NotaTiempo[272] = 140.875;
NotaTiempo[273] = 141.1875;
NotaTiempo[274] = 141.625;
NotaTiempo[275] = 141.8125;
NotaTiempo[276] = 142.1875;
NotaTiempo[277] = 142.375;
NotaTiempo[278] = 142.5625;
NotaTiempo[279] = 142.9375;
NotaTiempo[280] = 143.3125;
NotaTiempo[281] = 143.625;
NotaTiempo[282] = 143.8125;
NotaTiempo[283] = 144;
NotaTiempo[284] = 144;
NotaTiempo[285] = 145.0625;
NotaTiempo[286] = 145.25;
NotaTiempo[287] = 145.5;
NotaTiempo[288] = 145.75;
NotaTiempo[289] = 146;
NotaTiempo[290] = 146.5;
NotaTiempo[291] = 146.6875;
NotaTiempo[292] = 146.875;
NotaTiempo[293] = 146.875;
NotaTiempo[294] = 147.9375;
NotaTiempo[295] = 148.125;
NotaTiempo[296] = 148.3125;
NotaTiempo[297] = 148.625;
NotaTiempo[298] = 149.25;
NotaTiempo[299] = 149.625;
NotaTiempo[300] = 150.125;
NotaTiempo[301] = 150.3125;
NotaTiempo[302] = 150.6875;
NotaTiempo[303] = 150.9375;
NotaTiempo[304] = 151.1875;
NotaTiempo[305] = 151.75;
NotaTiempo[306] = 151.75;
NotaTiempo[307] = 152.4375;
NotaTiempo[308] = 152.4375;
NotaTiempo[309] = 153.75;
NotaTiempo[310] = 154.125;
NotaTiempo[311] = 154.125;
NotaTiempo[312] = 154.8125;
NotaTiempo[313] = 155.125;
NotaTiempo[314] = 155.625;
NotaTiempo[315] = 155.8125;
NotaTiempo[316] = 156.25;
NotaTiempo[317] = 156.4375;
NotaTiempo[318] = 156.6875;
NotaTiempo[319] = 157.25;
NotaTiempo[320] = 157.25;
NotaTiempo[321] = 157.9375;
NotaTiempo[322] = 157.9375;
NotaTiempo[323] = 159.5;
NotaTiempo[324] = 159.875;
NotaTiempo[325] = 159.875;
NotaTiempo[326] = 161.4375;
NotaTiempo[327] = 161.5625;
NotaTiempo[328] = 161.75;
NotaTiempo[329] = 161.875;
NotaTiempo[330] = 162.0625;
NotaTiempo[331] = 162.0625;
NotaTiempo[332] = 162.1875;
NotaTiempo[333] = 162.1875;
NotaTiempo[334] = 162.375;
NotaTiempo[335] = 163.125;
NotaTiempo[336] = 163.25;
NotaTiempo[337] = 163.4375;
NotaTiempo[338] = 163.5625;
NotaTiempo[339] = 163.75;
NotaTiempo[340] = 163.875;
NotaTiempo[341] = 164.0625;
NotaTiempo[342] = 164.1875;
NotaTiempo[343] = 164.4375;
NotaTiempo[344] = 164.4375;
NotaTiempo[345] = 165.1875;
NotaTiempo[346] = 165.1875;
NotaTiempo[347] = 165.5;
NotaTiempo[348] = 166.9375;
NotaTiempo[349] = 167.125;
NotaTiempo[350] = 167.3125;
NotaTiempo[351] = 167.3125;
NotaTiempo[352] = 167.5;
NotaTiempo[353] = 167.5;
NotaTiempo[354] = 167.9375;
NotaTiempo[355] = 168.25;
NotaTiempo[356] = 168.5625;
NotaTiempo[357] = 168.9375;
NotaTiempo[358] = 169.3125;
NotaTiempo[359] = 169.3125;
NotaTiempo[360] = 169.8125;
NotaTiempo[361] = 170.625;
NotaTiempo[362] = 170.9375;
NotaTiempo[363] = 171.125;
NotaTiempo[364] = 171.3125;
NotaTiempo[365] = 171.5;
NotaTiempo[366] = 171.6875;
NotaTiempo[367] = 171.9375;
NotaTiempo[368] = 172.125;
NotaTiempo[369] = 172.3125;
NotaTiempo[370] = 172.5625;
NotaTiempo[371] = 172.5625;
NotaTiempo[372] = 172.875;
NotaTiempo[373] = 173.6875;
NotaTiempo[374] = 174.0625;
NotaTiempo[375] = 174.25;
NotaTiempo[376] = 174.375;
NotaTiempo[377] = 174.5625;
NotaTiempo[378] = 174.75;
NotaTiempo[379] = 174.9375;
NotaTiempo[380] = 175.125;
NotaTiempo[381] = 175.3125;
NotaTiempo[382] = 175.5;
NotaTiempo[383] = 175.625;
NotaTiempo[384] = 175.8125;
NotaTiempo[385] = 176.0625;
NotaTiempo[386] = 176.0625;
NotaTiempo[387] = 176.5;
NotaTiempo[388] = 176.875;
NotaTiempo[389] = 176.875;
NotaTiempo[390] = 177.1875;
NotaTiempo[391] = 177.5;
NotaTiempo[392] = 177.8125;
NotaTiempo[393] = 178.3125;
NotaTiempo[394] = 178.4375;
NotaTiempo[395] = 178.6875;
NotaTiempo[396] = 178.6875;
NotaTiempo[397] = 179.0625;
NotaTiempo[398] = 179.3125;
NotaTiempo[399] = 179.3125;
NotaTiempo[400] = 179.625;
NotaTiempo[401] = 179.625;
NotaTiempo[402] = 180;
NotaTiempo[403] = 180;
NotaTiempo[404] = 180.375;
NotaTiempo[405] = 180.6875;
NotaTiempo[406] = 181.0625;
NotaTiempo[407] = 181.4375;
NotaTiempo[408] = 181.8125;
NotaTiempo[409] = 181.8125;
NotaTiempo[410] = 182.1875;
NotaTiempo[411] = 182.5;
NotaTiempo[412] = 182.5;
NotaTiempo[413] = 182.875;
NotaTiempo[414] = 183.25;
NotaTiempo[415] = 183.5625;
NotaTiempo[416] = 183.5625;
NotaTiempo[417] = 184;
NotaTiempo[418] = 184.25;
NotaTiempo[419] = 184.5625;
NotaTiempo[420] = 184.5625;
NotaTiempo[421] = 184.9375;
NotaTiempo[422] = 185.0625;
NotaTiempo[423] = 185.5625;
NotaTiempo[424] = 185.6875;
NotaTiempo[425] = 186.3125;
NotaTiempo[426] = 186.4375;
NotaTiempo[427] = -1;
}
public function NotasColoresTotales(_arg1:int){
if (_arg1 == 1){
easyColores();
} else {
if (_arg1 == 2){
trace("Q SHUSHA");
mediumColores();
} else {
if (_arg1 == 3){
hardColores();
};
};
};
}
public function hardStarPower(){
NotaStarPower[1] = 0;
NotaStarPower[2] = 0;
NotaStarPower[3] = 0;
NotaStarPower[4] = 0;
NotaStarPower[5] = 0;
NotaStarPower[6] = 0;
NotaStarPower[7] = 0;
NotaStarPower[8] = 0;
NotaStarPower[9] = 0;
NotaStarPower[10] = 0;
NotaStarPower[11] = 0;
NotaStarPower[12] = 0;
NotaStarPower[13] = 0;
NotaStarPower[14] = 0;
NotaStarPower[15] = 0;
NotaStarPower[16] = 0;
NotaStarPower[17] = 0;
NotaStarPower[18] = 0;
NotaStarPower[19] = 0;
NotaStarPower[20] = 0;
NotaStarPower[21] = 1;
NotaStarPower[22] = 1;
NotaStarPower[23] = 1;
NotaStarPower[24] = 1;
NotaStarPower[25] = 1;
NotaStarPower[26] = 1;
NotaStarPower[27] = 1;
NotaStarPower[28] = 1;
NotaStarPower[29] = 1;
NotaStarPower[30] = 0;
NotaStarPower[31] = 0;
NotaStarPower[32] = 0;
NotaStarPower[33] = 0;
NotaStarPower[34] = 0;
NotaStarPower[35] = 0;
NotaStarPower[36] = 0;
NotaStarPower[37] = 0;
NotaStarPower[38] = 0;
NotaStarPower[39] = 1;
NotaStarPower[40] = 1;
NotaStarPower[41] = 1;
NotaStarPower[42] = 1;
NotaStarPower[43] = 1;
NotaStarPower[44] = 1;
NotaStarPower[45] = 1;
NotaStarPower[46] = 1;
NotaStarPower[47] = 0;
NotaStarPower[48] = 0;
NotaStarPower[49] = 0;
NotaStarPower[50] = 0;
NotaStarPower[51] = 0;
NotaStarPower[52] = 0;
NotaStarPower[53] = 0;
NotaStarPower[54] = 0;
NotaStarPower[55] = 0;
NotaStarPower[56] = 0;
NotaStarPower[57] = 0;
NotaStarPower[58] = 0;
NotaStarPower[59] = 0;
NotaStarPower[60] = 0;
NotaStarPower[61] = 0;
NotaStarPower[62] = 0;
NotaStarPower[63] = 0;
NotaStarPower[64] = 0;
NotaStarPower[65] = 0;
NotaStarPower[66] = 0;
NotaStarPower[67] = 0;
NotaStarPower[68] = 0;
NotaStarPower[69] = 0;
NotaStarPower[70] = 0;
NotaStarPower[71] = 0;
NotaStarPower[72] = 0;
NotaStarPower[73] = 0;
NotaStarPower[74] = 1;
NotaStarPower[75] = 1;
NotaStarPower[76] = 1;
NotaStarPower[77] = 1;
NotaStarPower[78] = 1;
NotaStarPower[79] = 1;
NotaStarPower[80] = 1;
NotaStarPower[81] = 1;
NotaStarPower[82] = 1;
NotaStarPower[83] = 1;
NotaStarPower[84] = 1;
NotaStarPower[85] = 1;
NotaStarPower[86] = 1;
NotaStarPower[87] = 1;
NotaStarPower[88] = 1;
NotaStarPower[89] = 1;
NotaStarPower[90] = 0;
NotaStarPower[91] = 0;
NotaStarPower[92] = 0;
NotaStarPower[93] = 0;
NotaStarPower[94] = 0;
NotaStarPower[95] = 0;
NotaStarPower[96] = 0;
NotaStarPower[97] = 0;
NotaStarPower[98] = 0;
NotaStarPower[99] = 0;
NotaStarPower[100] = 0;
NotaStarPower[101] = 0;
NotaStarPower[102] = 0;
NotaStarPower[103] = 0;
NotaStarPower[104] = 0;
NotaStarPower[105] = 0;
NotaStarPower[106] = 0;
NotaStarPower[107] = 0;
NotaStarPower[108] = 0;
NotaStarPower[109] = 0;
NotaStarPower[110] = 0;
NotaStarPower[111] = 0;
NotaStarPower[112] = 0;
NotaStarPower[113] = 0;
NotaStarPower[114] = 0;
NotaStarPower[115] = 0;
NotaStarPower[116] = 0;
NotaStarPower[117] = 0;
NotaStarPower[118] = 0;
NotaStarPower[119] = 0;
NotaStarPower[120] = 0;
NotaStarPower[121] = 0;
NotaStarPower[122] = 0;
NotaStarPower[123] = 0;
NotaStarPower[124] = 0;
NotaStarPower[125] = 1;
NotaStarPower[126] = 1;
NotaStarPower[127] = 1;
NotaStarPower[128] = 1;
NotaStarPower[129] = 1;
NotaStarPower[130] = 1;
NotaStarPower[131] = 1;
NotaStarPower[132] = 1;
NotaStarPower[133] = 1;
NotaStarPower[134] = 0;
NotaStarPower[135] = 0;
NotaStarPower[136] = 0;
NotaStarPower[137] = 0;
NotaStarPower[138] = 0;
NotaStarPower[139] = 0;
NotaStarPower[140] = 0;
NotaStarPower[141] = 0;
NotaStarPower[142] = 0;
NotaStarPower[143] = 0;
NotaStarPower[144] = 0;
NotaStarPower[145] = 0;
NotaStarPower[146] = 0;
NotaStarPower[147] = 0;
NotaStarPower[148] = 0;
NotaStarPower[149] = 0;
NotaStarPower[150] = 0;
NotaStarPower[151] = 0;
NotaStarPower[152] = 0;
NotaStarPower[153] = 0;
NotaStarPower[154] = 0;
NotaStarPower[155] = 0;
NotaStarPower[156] = 0;
NotaStarPower[157] = 0;
NotaStarPower[158] = 0;
NotaStarPower[159] = 0;
NotaStarPower[160] = 0;
NotaStarPower[161] = 0;
NotaStarPower[162] = 0;
NotaStarPower[163] = 0;
NotaStarPower[164] = 0;
NotaStarPower[165] = 0;
NotaStarPower[166] = 0;
NotaStarPower[167] = 0;
NotaStarPower[168] = 0;
NotaStarPower[169] = 0;
NotaStarPower[170] = 0;
NotaStarPower[171] = 0;
NotaStarPower[172] = 0;
NotaStarPower[173] = 0;
NotaStarPower[174] = 0;
NotaStarPower[175] = 0;
NotaStarPower[176] = 0;
NotaStarPower[177] = 0;
NotaStarPower[178] = 0;
NotaStarPower[179] = 0;
NotaStarPower[180] = 0;
NotaStarPower[181] = 0;
NotaStarPower[182] = 0;
NotaStarPower[183] = 0;
NotaStarPower[184] = 0;
NotaStarPower[185] = 0;
NotaStarPower[186] = 0;
NotaStarPower[187] = 0;
NotaStarPower[188] = 0;
NotaStarPower[189] = 0;
NotaStarPower[190] = 0;
NotaStarPower[191] = 0;
NotaStarPower[192] = 0;
NotaStarPower[193] = 0;
NotaStarPower[194] = 0;
NotaStarPower[195] = 0;
NotaStarPower[196] = 0;
NotaStarPower[197] = 0;
NotaStarPower[198] = 0;
NotaStarPower[199] = 0;
NotaStarPower[200] = 0;
NotaStarPower[201] = 0;
NotaStarPower[202] = 0;
NotaStarPower[203] = 0;
NotaStarPower[204] = 0;
NotaStarPower[205] = 0;
NotaStarPower[206] = 0;
NotaStarPower[207] = 0;
NotaStarPower[208] = 0;
NotaStarPower[209] = 0;
NotaStarPower[210] = 0;
NotaStarPower[211] = 0;
NotaStarPower[212] = 0;
NotaStarPower[213] = 0;
NotaStarPower[214] = 0;
NotaStarPower[215] = 0;
NotaStarPower[216] = 0;
NotaStarPower[217] = 0;
NotaStarPower[218] = 0;
NotaStarPower[219] = 0;
NotaStarPower[220] = 0;
NotaStarPower[221] = 0;
NotaStarPower[222] = 0;
NotaStarPower[223] = 0;
NotaStarPower[224] = 0;
NotaStarPower[225] = 0;
NotaStarPower[226] = 0;
NotaStarPower[227] = 0;
NotaStarPower[228] = 0;
NotaStarPower[229] = 0;
NotaStarPower[230] = 0;
NotaStarPower[231] = 0;
NotaStarPower[232] = 0;
NotaStarPower[233] = 0;
NotaStarPower[234] = 0;
NotaStarPower[235] = 0;
NotaStarPower[236] = 0;
NotaStarPower[237] = 0;
NotaStarPower[238] = 0;
NotaStarPower[239] = 0;
NotaStarPower[240] = 0;
NotaStarPower[241] = 0;
NotaStarPower[242] = 0;
NotaStarPower[243] = 1;
NotaStarPower[244] = 1;
NotaStarPower[245] = 1;
NotaStarPower[246] = 1;
NotaStarPower[247] = 1;
NotaStarPower[248] = 1;
NotaStarPower[249] = 1;
NotaStarPower[250] = 1;
NotaStarPower[251] = 0;
NotaStarPower[252] = 0;
NotaStarPower[253] = 0;
NotaStarPower[254] = 0;
NotaStarPower[0xFF] = 0;
NotaStarPower[0x0100] = 0;
NotaStarPower[0x0101] = 0;
NotaStarPower[258] = 0;
NotaStarPower[259] = 0;
NotaStarPower[260] = 0;
NotaStarPower[261] = 0;
NotaStarPower[262] = 0;
NotaStarPower[263] = 0;
NotaStarPower[264] = 0;
NotaStarPower[265] = 0;
NotaStarPower[266] = 0;
NotaStarPower[267] = 0;
NotaStarPower[268] = 0;
NotaStarPower[269] = 0;
NotaStarPower[270] = 0;
NotaStarPower[271] = 0;
NotaStarPower[272] = 0;
NotaStarPower[273] = 0;
NotaStarPower[274] = 0;
NotaStarPower[275] = 0;
NotaStarPower[276] = 0;
NotaStarPower[277] = 0;
NotaStarPower[278] = 0;
NotaStarPower[279] = 0;
NotaStarPower[280] = 0;
NotaStarPower[281] = 0;
NotaStarPower[282] = 0;
NotaStarPower[283] = 0;
NotaStarPower[284] = 0;
NotaStarPower[285] = 0;
NotaStarPower[286] = 0;
NotaStarPower[287] = 0;
NotaStarPower[288] = 0;
NotaStarPower[289] = 0;
NotaStarPower[290] = 0;
NotaStarPower[291] = 0;
NotaStarPower[292] = 0;
NotaStarPower[293] = 0;
NotaStarPower[294] = 0;
NotaStarPower[295] = 0;
NotaStarPower[296] = 0;
NotaStarPower[297] = 0;
NotaStarPower[298] = 0;
NotaStarPower[299] = 0;
NotaStarPower[300] = 0;
NotaStarPower[301] = 0;
NotaStarPower[302] = 0;
NotaStarPower[303] = 0;
NotaStarPower[304] = 0;
NotaStarPower[305] = 0;
NotaStarPower[306] = 0;
NotaStarPower[307] = 0;
NotaStarPower[308] = 0;
NotaStarPower[309] = 0;
NotaStarPower[310] = 0;
NotaStarPower[311] = 0;
NotaStarPower[312] = 0;
NotaStarPower[313] = 0;
NotaStarPower[314] = 0;
NotaStarPower[315] = 0;
NotaStarPower[316] = 0;
NotaStarPower[317] = 0;
NotaStarPower[318] = 0;
NotaStarPower[319] = 0;
NotaStarPower[320] = 0;
NotaStarPower[321] = 0;
NotaStarPower[322] = 1;
NotaStarPower[323] = 1;
NotaStarPower[324] = 1;
NotaStarPower[325] = 1;
NotaStarPower[326] = 1;
NotaStarPower[327] = 1;
NotaStarPower[328] = 1;
NotaStarPower[329] = 1;
NotaStarPower[330] = 1;
NotaStarPower[331] = 1;
NotaStarPower[332] = 1;
NotaStarPower[333] = 1;
NotaStarPower[334] = 1;
NotaStarPower[335] = 1;
NotaStarPower[336] = 1;
NotaStarPower[337] = 1;
NotaStarPower[338] = 0;
NotaStarPower[339] = 0;
NotaStarPower[340] = 0;
NotaStarPower[341] = 0;
NotaStarPower[342] = 0;
NotaStarPower[343] = 0;
NotaStarPower[344] = 0;
NotaStarPower[345] = 0;
NotaStarPower[346] = 0;
NotaStarPower[347] = 0;
NotaStarPower[348] = 0;
NotaStarPower[349] = 0;
NotaStarPower[350] = 0;
NotaStarPower[351] = 0;
NotaStarPower[352] = 0;
NotaStarPower[353] = 0;
NotaStarPower[354] = 0;
NotaStarPower[355] = 0;
NotaStarPower[356] = 0;
NotaStarPower[357] = 0;
NotaStarPower[358] = 0;
NotaStarPower[359] = 0;
NotaStarPower[360] = 0;
NotaStarPower[361] = 0;
NotaStarPower[362] = 0;
NotaStarPower[363] = 0;
NotaStarPower[364] = 0;
NotaStarPower[365] = 0;
NotaStarPower[366] = 0;
NotaStarPower[367] = 0;
NotaStarPower[368] = 0;
NotaStarPower[369] = 0;
NotaStarPower[370] = 0;
NotaStarPower[371] = 0;
NotaStarPower[372] = 0;
NotaStarPower[373] = 0;
NotaStarPower[374] = 0;
NotaStarPower[375] = 0;
NotaStarPower[376] = 0;
NotaStarPower[377] = 0;
NotaStarPower[378] = 0;
NotaStarPower[379] = 0;
NotaStarPower[380] = 0;
NotaStarPower[381] = 0;
NotaStarPower[382] = 0;
NotaStarPower[383] = 0;
NotaStarPower[384] = 0;
NotaStarPower[385] = 0;
NotaStarPower[386] = 0;
NotaStarPower[387] = 0;
NotaStarPower[388] = 0;
NotaStarPower[389] = 0;
NotaStarPower[390] = 0;
NotaStarPower[391] = 0;
NotaStarPower[392] = 0;
NotaStarPower[393] = 1;
NotaStarPower[394] = 1;
NotaStarPower[395] = 1;
NotaStarPower[396] = 1;
NotaStarPower[397] = 1;
NotaStarPower[398] = 1;
NotaStarPower[399] = 1;
NotaStarPower[400] = 1;
NotaStarPower[401] = 1;
NotaStarPower[402] = 1;
NotaStarPower[403] = 1;
NotaStarPower[404] = 1;
NotaStarPower[405] = 0;
NotaStarPower[406] = 0;
NotaStarPower[407] = 0;
NotaStarPower[408] = 0;
NotaStarPower[409] = 0;
NotaStarPower[410] = 0;
NotaStarPower[411] = 0;
NotaStarPower[412] = 0;
NotaStarPower[413] = 0;
NotaStarPower[414] = 0;
NotaStarPower[415] = 0;
NotaStarPower[416] = 0;
NotaStarPower[417] = 0;
NotaStarPower[418] = 0;
NotaStarPower[419] = 0;
NotaStarPower[420] = 0;
NotaStarPower[421] = 0;
NotaStarPower[422] = 0;
NotaStarPower[423] = 0;
NotaStarPower[424] = 0;
NotaStarPower[425] = 0;
NotaStarPower[426] = 0;
NotaStarPower[427] = 0;
NotaStarPower[428] = 0;
NotaStarPower[429] = 0;
NotaStarPower[430] = 0;
NotaStarPower[431] = 0;
NotaStarPower[432] = 0;
NotaStarPower[433] = 0;
NotaStarPower[434] = 0;
NotaStarPower[435] = 0;
NotaStarPower[436] = 0;
NotaStarPower[437] = 0;
NotaStarPower[438] = 0;
NotaStarPower[439] = 0;
NotaStarPower[440] = 0;
NotaStarPower[441] = 0;
NotaStarPower[442] = 0;
NotaStarPower[443] = 0;
NotaStarPower[444] = 0;
NotaStarPower[445] = 0;
NotaStarPower[446] = 0;
NotaStarPower[447] = 0;
NotaStarPower[448] = 0;
NotaStarPower[449] = 0;
NotaStarPower[450] = 0;
NotaStarPower[451] = 0;
NotaStarPower[452] = 0;
NotaStarPower[453] = 0;
NotaStarPower[454] = 0;
NotaStarPower[455] = 0;
NotaStarPower[456] = 0;
NotaStarPower[457] = 0;
NotaStarPower[458] = 0;
NotaStarPower[459] = 0;
NotaStarPower[460] = 0;
LargoStar[1] = 9;
LargoStar[2] = 8;
LargoStar[3] = 16;
LargoStar[4] = 9;
LargoStar[5] = 8;
LargoStar[6] = 16;
LargoStar[7] = 12;
}
public function hardTiempos(){
NotaTiempo[1] = 12.75;
NotaTiempo[2] = 12.75;
NotaTiempo[3] = 13.25;
NotaTiempo[4] = 13.4375;
NotaTiempo[5] = 14.875;
NotaTiempo[6] = 15.1875;
NotaTiempo[7] = 15.1875;
NotaTiempo[8] = 15.625;
NotaTiempo[9] = 16;
NotaTiempo[10] = 16.25;
NotaTiempo[11] = 18.4375;
NotaTiempo[12] = 18.4375;
NotaTiempo[13] = 18.875;
NotaTiempo[14] = 19.0625;
NotaTiempo[15] = 20.5;
NotaTiempo[16] = 20.8125;
NotaTiempo[17] = 20.8125;
NotaTiempo[18] = 21.25;
NotaTiempo[19] = 21.625;
NotaTiempo[20] = 21.875;
NotaTiempo[21] = 24;
NotaTiempo[22] = 24.6875;
NotaTiempo[23] = 25.25;
NotaTiempo[24] = 25.4375;
NotaTiempo[25] = 26.5;
NotaTiempo[26] = 26.8125;
NotaTiempo[27] = 26.8125;
NotaTiempo[28] = 27.5625;
NotaTiempo[29] = 28.25;
NotaTiempo[30] = 29.375;
NotaTiempo[31] = 29.625;
NotaTiempo[32] = 29.625;
NotaTiempo[33] = 30.8125;
NotaTiempo[34] = 30.8125;
NotaTiempo[35] = 31.125;
NotaTiempo[36] = 31.125;
NotaTiempo[37] = 32.125;
NotaTiempo[38] = 32.375;
NotaTiempo[39] = 34.875;
NotaTiempo[40] = 35.25;
NotaTiempo[41] = 35.625;
NotaTiempo[42] = 36;
NotaTiempo[43] = 36.375;
NotaTiempo[44] = 36.75;
NotaTiempo[45] = 37.25;
NotaTiempo[46] = 37.4375;
NotaTiempo[47] = 37.8125;
NotaTiempo[48] = 38.125;
NotaTiempo[49] = 38.5;
NotaTiempo[50] = 38.875;
NotaTiempo[51] = 39.25;
NotaTiempo[52] = 39.5625;
NotaTiempo[53] = 40;
NotaTiempo[54] = 40;
NotaTiempo[55] = 40.1875;
NotaTiempo[56] = 40.5625;
NotaTiempo[57] = 40.5625;
NotaTiempo[58] = 40.75;
NotaTiempo[59] = 40.9375;
NotaTiempo[60] = 41.3125;
NotaTiempo[61] = 41.6875;
NotaTiempo[62] = 42;
NotaTiempo[63] = 42.1875;
NotaTiempo[64] = 42.375;
NotaTiempo[65] = 43.4375;
NotaTiempo[66] = 43.625;
NotaTiempo[67] = 43.875;
NotaTiempo[68] = 44.1875;
NotaTiempo[69] = 44.4375;
NotaTiempo[70] = 44.875;
NotaTiempo[71] = 45.0625;
NotaTiempo[72] = 45.25;
NotaTiempo[73] = 45.25;
NotaTiempo[74] = 46.3125;
NotaTiempo[75] = 46.5;
NotaTiempo[76] = 46.6875;
NotaTiempo[77] = 47;
NotaTiempo[78] = 47;
NotaTiempo[79] = 47.625;
NotaTiempo[80] = 48;
NotaTiempo[81] = 48.5;
NotaTiempo[82] = 48.6875;
NotaTiempo[83] = 49.0625;
NotaTiempo[84] = 49.3125;
NotaTiempo[85] = 49.5625;
NotaTiempo[86] = 50.125;
NotaTiempo[87] = 50.125;
NotaTiempo[88] = 50.8125;
NotaTiempo[89] = 50.8125;
NotaTiempo[90] = 63.5;
NotaTiempo[91] = 64.1875;
NotaTiempo[92] = 64.75;
NotaTiempo[93] = 64.9375;
NotaTiempo[94] = 66;
NotaTiempo[95] = 66.3125;
NotaTiempo[96] = 66.3125;
NotaTiempo[97] = 67.0625;
NotaTiempo[98] = 67.75;
NotaTiempo[99] = 68.875;
NotaTiempo[100] = 69.125;
NotaTiempo[101] = 69.125;
NotaTiempo[102] = 70.3125;
NotaTiempo[103] = 70.3125;
NotaTiempo[104] = 70.625;
NotaTiempo[105] = 70.625;
NotaTiempo[106] = 71.625;
NotaTiempo[107] = 71.9375;
NotaTiempo[108] = 74.375;
NotaTiempo[109] = 74.75;
NotaTiempo[110] = 75.125;
NotaTiempo[111] = 75.5;
NotaTiempo[112] = 75.875;
NotaTiempo[113] = 76.25;
NotaTiempo[114] = 76.75;
NotaTiempo[115] = 76.9375;
NotaTiempo[116] = 77.3125;
NotaTiempo[117] = 77.625;
NotaTiempo[118] = 78;
NotaTiempo[119] = 78.375;
NotaTiempo[120] = 78.75;
NotaTiempo[121] = 79.0625;
NotaTiempo[122] = 79.5;
NotaTiempo[123] = 79.5;
NotaTiempo[124] = 79.6875;
NotaTiempo[125] = 80.0625;
NotaTiempo[126] = 80.0625;
NotaTiempo[127] = 80.25;
NotaTiempo[128] = 80.4375;
NotaTiempo[129] = 80.8125;
NotaTiempo[130] = 81.1875;
NotaTiempo[131] = 81.5;
NotaTiempo[132] = 81.6875;
NotaTiempo[133] = 81.875;
NotaTiempo[134] = 82.9375;
NotaTiempo[135] = 83.125;
NotaTiempo[136] = 83.375;
NotaTiempo[137] = 83.6875;
NotaTiempo[138] = 83.9375;
NotaTiempo[139] = 84.375;
NotaTiempo[140] = 84.5625;
NotaTiempo[141] = 84.75;
NotaTiempo[142] = 84.75;
NotaTiempo[143] = 85.8125;
NotaTiempo[144] = 86;
NotaTiempo[145] = 86.1875;
NotaTiempo[146] = 86.5;
NotaTiempo[147] = 86.5;
NotaTiempo[148] = 87.125;
NotaTiempo[149] = 87.5;
NotaTiempo[150] = 88;
NotaTiempo[151] = 88.1875;
NotaTiempo[152] = 88.5625;
NotaTiempo[153] = 88.8125;
NotaTiempo[154] = 89.0625;
NotaTiempo[155] = 89.625;
NotaTiempo[156] = 89.625;
NotaTiempo[157] = 90.3125;
NotaTiempo[158] = 90.3125;
NotaTiempo[159] = 91.875;
NotaTiempo[160] = 91.875;
NotaTiempo[161] = 92.5625;
NotaTiempo[162] = 92.5625;
NotaTiempo[163] = 93.875;
NotaTiempo[164] = 94.5625;
NotaTiempo[165] = 94.75;
NotaTiempo[166] = 94.9375;
NotaTiempo[167] = 95.25;
NotaTiempo[168] = 95.25;
NotaTiempo[169] = 95.75;
NotaTiempo[170] = 96;
NotaTiempo[171] = 96.1875;
NotaTiempo[172] = 96.5;
NotaTiempo[173] = 96.75;
NotaTiempo[174] = 96.75;
NotaTiempo[175] = 97;
NotaTiempo[176] = 97.4375;
NotaTiempo[177] = 97.4375;
NotaTiempo[178] = 98.1875;
NotaTiempo[179] = 98.1875;
NotaTiempo[180] = 98.875;
NotaTiempo[181] = 98.875;
NotaTiempo[182] = 99.5625;
NotaTiempo[183] = 99.75;
NotaTiempo[184] = 100.3125;
NotaTiempo[185] = 101;
NotaTiempo[186] = 101;
NotaTiempo[187] = 101.6875;
NotaTiempo[188] = 101.6875;
NotaTiempo[189] = 101.875;
NotaTiempo[190] = 101.875;
NotaTiempo[191] = 102.0625;
NotaTiempo[192] = 102.0625;
NotaTiempo[193] = 102.375;
NotaTiempo[194] = 103.0625;
NotaTiempo[195] = 103.0625;
NotaTiempo[196] = 103.8125;
NotaTiempo[197] = 104.5625;
NotaTiempo[198] = 105.25;
NotaTiempo[199] = 105.25;
NotaTiempo[200] = 105.9375;
NotaTiempo[201] = 105.9375;
NotaTiempo[202] = 106.625;
NotaTiempo[203] = 106.625;
NotaTiempo[204] = 107.3125;
NotaTiempo[205] = 108;
NotaTiempo[206] = 108.75;
NotaTiempo[207] = 108.875;
NotaTiempo[208] = 109;
NotaTiempo[209] = 109.125;
NotaTiempo[210] = 109.3125;
NotaTiempo[211] = 109.4375;
NotaTiempo[212] = 109.5625;
NotaTiempo[213] = 109.6875;
NotaTiempo[214] = 109.8125;
NotaTiempo[215] = 109.9375;
NotaTiempo[216] = 110.0625;
NotaTiempo[217] = 110.1875;
NotaTiempo[218] = 110.625;
NotaTiempo[219] = 110.875;
NotaTiempo[220] = 111.1875;
NotaTiempo[221] = 111.3125;
NotaTiempo[222] = 111.4375;
NotaTiempo[223] = 111.5625;
NotaTiempo[224] = 111.8125;
NotaTiempo[225] = 111.9375;
NotaTiempo[226] = 112.0625;
NotaTiempo[227] = 112.1875;
NotaTiempo[228] = 112.5625;
NotaTiempo[229] = 112.6875;
NotaTiempo[230] = 112.8125;
NotaTiempo[231] = 112.9375;
NotaTiempo[232] = 113.0625;
NotaTiempo[233] = 113.1875;
NotaTiempo[234] = 113.3125;
NotaTiempo[235] = 113.4375;
NotaTiempo[236] = 113.5625;
NotaTiempo[237] = 114.375;
NotaTiempo[238] = 114.375;
NotaTiempo[239] = 115.375;
NotaTiempo[240] = 115.5625;
NotaTiempo[241] = 115.875;
NotaTiempo[242] = 115.875;
NotaTiempo[243] = 117.25;
NotaTiempo[244] = 118.125;
NotaTiempo[245] = 118.3125;
NotaTiempo[246] = 118.5;
NotaTiempo[247] = 118.6875;
NotaTiempo[248] = 118.875;
NotaTiempo[249] = 119.0625;
NotaTiempo[250] = 119.0625;
NotaTiempo[251] = 120.0625;
NotaTiempo[252] = 120.375;
NotaTiempo[253] = 120.625;
NotaTiempo[254] = 120.8125;
NotaTiempo[0xFF] = 120.9375;
NotaTiempo[0x0100] = 121.125;
NotaTiempo[0x0101] = 121.375;
NotaTiempo[258] = 121.8125;
NotaTiempo[259] = 121.8125;
NotaTiempo[260] = 122;
NotaTiempo[261] = 122.375;
NotaTiempo[262] = 122.5;
NotaTiempo[263] = 122.8125;
NotaTiempo[264] = 123.1875;
NotaTiempo[265] = 123.3125;
NotaTiempo[266] = 123.5625;
NotaTiempo[267] = 123.875;
NotaTiempo[268] = 124.1875;
NotaTiempo[269] = 124.1875;
NotaTiempo[270] = 125.625;
NotaTiempo[271] = 126.3125;
NotaTiempo[272] = 126.875;
NotaTiempo[273] = 127.0625;
NotaTiempo[274] = 128.125;
NotaTiempo[275] = 128.4375;
NotaTiempo[276] = 128.4375;
NotaTiempo[277] = 129.1875;
NotaTiempo[278] = 129.875;
NotaTiempo[279] = 131;
NotaTiempo[280] = 131.25;
NotaTiempo[281] = 131.25;
NotaTiempo[282] = 132.4375;
NotaTiempo[283] = 132.4375;
NotaTiempo[284] = 132.75;
NotaTiempo[285] = 132.75;
NotaTiempo[286] = 133.75;
NotaTiempo[287] = 134.0625;
NotaTiempo[288] = 136.5;
NotaTiempo[289] = 136.875;
NotaTiempo[290] = 137.25;
NotaTiempo[291] = 137.625;
NotaTiempo[292] = 138;
NotaTiempo[293] = 138.375;
NotaTiempo[294] = 138.875;
NotaTiempo[295] = 139.0625;
NotaTiempo[296] = 139.4375;
NotaTiempo[297] = 139.75;
NotaTiempo[298] = 140.125;
NotaTiempo[299] = 140.5;
NotaTiempo[300] = 140.875;
NotaTiempo[301] = 141.1875;
NotaTiempo[302] = 141.1875;
NotaTiempo[303] = 141.625;
NotaTiempo[304] = 141.8125;
NotaTiempo[305] = 142.1875;
NotaTiempo[306] = 142.375;
NotaTiempo[307] = 142.5625;
NotaTiempo[308] = 142.9375;
NotaTiempo[309] = 143.3125;
NotaTiempo[310] = 143.625;
NotaTiempo[311] = 143.8125;
NotaTiempo[312] = 144;
NotaTiempo[313] = 145.0625;
NotaTiempo[314] = 145.25;
NotaTiempo[315] = 145.5;
NotaTiempo[316] = 145.8125;
NotaTiempo[317] = 146.0625;
NotaTiempo[318] = 146.5;
NotaTiempo[319] = 146.6875;
NotaTiempo[320] = 146.875;
NotaTiempo[321] = 146.875;
NotaTiempo[322] = 147.9375;
NotaTiempo[323] = 148.125;
NotaTiempo[324] = 148.3125;
NotaTiempo[325] = 148.625;
NotaTiempo[326] = 148.625;
NotaTiempo[327] = 149.25;
NotaTiempo[328] = 149.625;
NotaTiempo[329] = 150.125;
NotaTiempo[330] = 150.3125;
NotaTiempo[331] = 150.6875;
NotaTiempo[332] = 150.9375;
NotaTiempo[333] = 151.1875;
NotaTiempo[334] = 151.75;
NotaTiempo[335] = 151.75;
NotaTiempo[336] = 152.4375;
NotaTiempo[337] = 152.4375;
NotaTiempo[338] = 154;
NotaTiempo[339] = 154.3125;
NotaTiempo[340] = 154.9375;
NotaTiempo[341] = 155.25;
NotaTiempo[342] = 155.75;
NotaTiempo[343] = 156;
NotaTiempo[344] = 156.3125;
NotaTiempo[345] = 156.5;
NotaTiempo[346] = 156.75;
NotaTiempo[347] = 157.3125;
NotaTiempo[348] = 157.3125;
NotaTiempo[349] = 158;
NotaTiempo[350] = 158;
NotaTiempo[351] = 159.5;
NotaTiempo[352] = 159.875;
NotaTiempo[353] = 159.875;
NotaTiempo[354] = 161.4375;
NotaTiempo[355] = 161.5625;
NotaTiempo[356] = 161.75;
NotaTiempo[357] = 161.875;
NotaTiempo[358] = 162.0625;
NotaTiempo[359] = 162.1875;
NotaTiempo[360] = 162.375;
NotaTiempo[361] = 163.125;
NotaTiempo[362] = 163.25;
NotaTiempo[363] = 163.4375;
NotaTiempo[364] = 163.5625;
NotaTiempo[365] = 163.75;
NotaTiempo[366] = 163.875;
NotaTiempo[367] = 164.0625;
NotaTiempo[368] = 164.1875;
NotaTiempo[369] = 164.4375;
NotaTiempo[370] = 164.4375;
NotaTiempo[371] = 165.1875;
NotaTiempo[372] = 165.1875;
NotaTiempo[373] = 165.5;
NotaTiempo[374] = 166.875;
NotaTiempo[375] = 167.0625;
NotaTiempo[376] = 167.25;
NotaTiempo[377] = 167.25;
NotaTiempo[378] = 167.4375;
NotaTiempo[379] = 167.4375;
NotaTiempo[380] = 168;
NotaTiempo[381] = 168;
NotaTiempo[382] = 168.1875;
NotaTiempo[383] = 168.3125;
NotaTiempo[384] = 168.5;
NotaTiempo[385] = 168.625;
NotaTiempo[386] = 168.8125;
NotaTiempo[387] = 168.9375;
NotaTiempo[388] = 169.1875;
NotaTiempo[389] = 169.3125;
NotaTiempo[390] = 169.4375;
NotaTiempo[391] = 169.75;
NotaTiempo[392] = 170.5625;
NotaTiempo[393] = 170.9375;
NotaTiempo[394] = 171.125;
NotaTiempo[395] = 171.3125;
NotaTiempo[396] = 171.5;
NotaTiempo[397] = 171.6875;
NotaTiempo[398] = 171.6875;
NotaTiempo[399] = 171.875;
NotaTiempo[400] = 172.0625;
NotaTiempo[401] = 172.25;
NotaTiempo[402] = 172.5625;
NotaTiempo[403] = 172.5625;
NotaTiempo[404] = 172.875;
NotaTiempo[405] = 173.6875;
NotaTiempo[406] = 174.0625;
NotaTiempo[407] = 174.25;
NotaTiempo[408] = 174.375;
NotaTiempo[409] = 174.5625;
NotaTiempo[410] = 174.75;
NotaTiempo[411] = 174.9375;
NotaTiempo[412] = 175.125;
NotaTiempo[413] = 175.3125;
NotaTiempo[414] = 175.5;
NotaTiempo[415] = 175.625;
NotaTiempo[416] = 175.8125;
NotaTiempo[417] = 176.0625;
NotaTiempo[418] = 176.0625;
NotaTiempo[419] = 176.5;
NotaTiempo[420] = 176.875;
NotaTiempo[421] = 176.875;
NotaTiempo[422] = 177.1875;
NotaTiempo[423] = 177.5;
NotaTiempo[424] = 177.8125;
NotaTiempo[425] = 177.8125;
NotaTiempo[426] = 178.3125;
NotaTiempo[427] = 178.4375;
NotaTiempo[428] = 178.6875;
NotaTiempo[429] = 178.6875;
NotaTiempo[430] = 179.0625;
NotaTiempo[431] = 179.3125;
NotaTiempo[432] = 179.3125;
NotaTiempo[433] = 179.625;
NotaTiempo[434] = 179.625;
NotaTiempo[435] = 180;
NotaTiempo[436] = 180;
NotaTiempo[437] = 180.3125;
NotaTiempo[438] = 180.3125;
NotaTiempo[439] = 180.6875;
NotaTiempo[440] = 181.0625;
NotaTiempo[441] = 181.4375;
NotaTiempo[442] = 181.8125;
NotaTiempo[443] = 181.8125;
NotaTiempo[444] = 182.1875;
NotaTiempo[445] = 182.5;
NotaTiempo[446] = 182.5;
NotaTiempo[447] = 182.875;
NotaTiempo[448] = 183.25;
NotaTiempo[449] = 183.5625;
NotaTiempo[450] = 183.5625;
NotaTiempo[451] = 184;
NotaTiempo[452] = 184.25;
NotaTiempo[453] = 184.5625;
NotaTiempo[454] = 184.5625;
NotaTiempo[455] = 184.9375;
NotaTiempo[456] = 185.0625;
NotaTiempo[457] = 185.5625;
NotaTiempo[458] = 185.6875;
NotaTiempo[459] = 186.3125;
NotaTiempo[460] = 186.4375;
NotaTiempo[461] = -1;
}
public function hardColores(){
NotaColorTotal[1] = 1;
NotaColorTotal[2] = 2;
NotaColorTotal[3] = 3;
NotaColorTotal[4] = 0;
NotaColorTotal[5] = 3;
NotaColorTotal[6] = 2;
NotaColorTotal[7] = 3;
NotaColorTotal[8] = 1;
NotaColorTotal[9] = 3;
NotaColorTotal[10] = 0;
NotaColorTotal[11] = 1;
NotaColorTotal[12] = 2;
NotaColorTotal[13] = 3;
NotaColorTotal[14] = 0;
NotaColorTotal[15] = 3;
NotaColorTotal[16] = 2;
NotaColorTotal[17] = 3;
NotaColorTotal[18] = 1;
NotaColorTotal[19] = 3;
NotaColorTotal[20] = 0;
NotaColorTotal[21] = 4;
NotaColorTotal[22] = 1;
NotaColorTotal[23] = 2;
NotaColorTotal[24] = 0;
NotaColorTotal[25] = 3;
NotaColorTotal[26] = 1;
NotaColorTotal[27] = 2;
NotaColorTotal[28] = 1;
NotaColorTotal[29] = 0;
NotaColorTotal[30] = 0;
NotaColorTotal[31] = 1;
NotaColorTotal[32] = 3;
NotaColorTotal[33] = 0;
NotaColorTotal[34] = 1;
NotaColorTotal[35] = 2;
NotaColorTotal[36] = 3;
NotaColorTotal[37] = 1;
NotaColorTotal[38] = 4;
NotaColorTotal[39] = 3;
NotaColorTotal[40] = 4;
NotaColorTotal[41] = 1;
NotaColorTotal[42] = 0;
NotaColorTotal[43] = 1;
NotaColorTotal[44] = 1;
NotaColorTotal[45] = 2;
NotaColorTotal[46] = 0;
NotaColorTotal[47] = 3;
NotaColorTotal[48] = 4;
NotaColorTotal[49] = 1;
NotaColorTotal[50] = 0;
NotaColorTotal[51] = 1;
NotaColorTotal[52] = 1;
NotaColorTotal[53] = 2;
NotaColorTotal[54] = 3;
NotaColorTotal[55] = 1;
NotaColorTotal[56] = 0;
NotaColorTotal[57] = 1;
NotaColorTotal[58] = 2;
NotaColorTotal[59] = 1;
NotaColorTotal[60] = 1;
NotaColorTotal[61] = 1;
NotaColorTotal[62] = 0;
NotaColorTotal[63] = 1;
NotaColorTotal[64] = 3;
NotaColorTotal[65] = 2;
NotaColorTotal[66] = 1;
NotaColorTotal[67] = 0;
NotaColorTotal[68] = 1;
NotaColorTotal[69] = 1;
NotaColorTotal[70] = 0;
NotaColorTotal[71] = 1;
NotaColorTotal[72] = 2;
NotaColorTotal[73] = 4;
NotaColorTotal[74] = 1;
NotaColorTotal[75] = 2;
NotaColorTotal[76] = 0;
NotaColorTotal[77] = 1;
NotaColorTotal[78] = 4;
NotaColorTotal[79] = 0;
NotaColorTotal[80] = 1;
NotaColorTotal[81] = 2;
NotaColorTotal[82] = 0;
NotaColorTotal[83] = 1;
NotaColorTotal[84] = 2;
NotaColorTotal[85] = 0;
NotaColorTotal[86] = 0;
NotaColorTotal[87] = 2;
NotaColorTotal[88] = 0;
NotaColorTotal[89] = 1;
NotaColorTotal[90] = 4;
NotaColorTotal[91] = 1;
NotaColorTotal[92] = 2;
NotaColorTotal[93] = 0;
NotaColorTotal[94] = 3;
NotaColorTotal[95] = 1;
NotaColorTotal[96] = 2;
NotaColorTotal[97] = 1;
NotaColorTotal[98] = 0;
NotaColorTotal[99] = 0;
NotaColorTotal[100] = 1;
NotaColorTotal[101] = 3;
NotaColorTotal[102] = 0;
NotaColorTotal[103] = 1;
NotaColorTotal[104] = 2;
NotaColorTotal[105] = 3;
NotaColorTotal[106] = 1;
NotaColorTotal[107] = 4;
NotaColorTotal[108] = 3;
NotaColorTotal[109] = 4;
NotaColorTotal[110] = 1;
NotaColorTotal[111] = 0;
NotaColorTotal[112] = 1;
NotaColorTotal[113] = 1;
NotaColorTotal[114] = 2;
NotaColorTotal[115] = 0;
NotaColorTotal[116] = 3;
NotaColorTotal[117] = 4;
NotaColorTotal[118] = 1;
NotaColorTotal[119] = 0;
NotaColorTotal[120] = 1;
NotaColorTotal[121] = 1;
NotaColorTotal[122] = 2;
NotaColorTotal[123] = 3;
NotaColorTotal[124] = 1;
NotaColorTotal[125] = 0;
NotaColorTotal[126] = 1;
NotaColorTotal[127] = 2;
NotaColorTotal[128] = 1;
NotaColorTotal[129] = 1;
NotaColorTotal[130] = 1;
NotaColorTotal[131] = 0;
NotaColorTotal[132] = 1;
NotaColorTotal[133] = 3;
NotaColorTotal[134] = 2;
NotaColorTotal[135] = 1;
NotaColorTotal[136] = 0;
NotaColorTotal[137] = 1;
NotaColorTotal[138] = 1;
NotaColorTotal[139] = 0;
NotaColorTotal[140] = 1;
NotaColorTotal[141] = 2;
NotaColorTotal[142] = 4;
NotaColorTotal[143] = 1;
NotaColorTotal[144] = 2;
NotaColorTotal[145] = 0;
NotaColorTotal[146] = 1;
NotaColorTotal[147] = 4;
NotaColorTotal[148] = 0;
NotaColorTotal[149] = 1;
NotaColorTotal[150] = 2;
NotaColorTotal[151] = 0;
NotaColorTotal[152] = 1;
NotaColorTotal[153] = 2;
NotaColorTotal[154] = 0;
NotaColorTotal[155] = 0;
NotaColorTotal[156] = 2;
NotaColorTotal[157] = 0;
NotaColorTotal[158] = 1;
NotaColorTotal[159] = 1;
NotaColorTotal[160] = 3;
NotaColorTotal[161] = 3;
NotaColorTotal[162] = 4;
NotaColorTotal[163] = 4;
NotaColorTotal[164] = 3;
NotaColorTotal[165] = 3;
NotaColorTotal[166] = 3;
NotaColorTotal[167] = 2;
NotaColorTotal[168] = 3;
NotaColorTotal[169] = 1;
NotaColorTotal[170] = 2;
NotaColorTotal[171] = 0;
NotaColorTotal[172] = 1;
NotaColorTotal[173] = 2;
NotaColorTotal[174] = 4;
NotaColorTotal[175] = 0;
NotaColorTotal[176] = 0;
NotaColorTotal[177] = 2;
NotaColorTotal[178] = 1;
NotaColorTotal[179] = 2;
NotaColorTotal[180] = 3;
NotaColorTotal[181] = 4;
NotaColorTotal[182] = 2;
NotaColorTotal[183] = 2;
NotaColorTotal[184] = 0;
NotaColorTotal[185] = 1;
NotaColorTotal[186] = 3;
NotaColorTotal[187] = 2;
NotaColorTotal[188] = 3;
NotaColorTotal[189] = 2;
NotaColorTotal[190] = 3;
NotaColorTotal[191] = 2;
NotaColorTotal[192] = 3;
NotaColorTotal[193] = 1;
NotaColorTotal[194] = 2;
NotaColorTotal[195] = 4;
NotaColorTotal[196] = 1;
NotaColorTotal[197] = 4;
NotaColorTotal[198] = 0;
NotaColorTotal[199] = 1;
NotaColorTotal[200] = 2;
NotaColorTotal[201] = 3;
NotaColorTotal[202] = 1;
NotaColorTotal[203] = 2;
NotaColorTotal[204] = 1;
NotaColorTotal[205] = 0;
NotaColorTotal[206] = 2;
NotaColorTotal[207] = 2;
NotaColorTotal[208] = 2;
NotaColorTotal[209] = 2;
NotaColorTotal[210] = 3;
NotaColorTotal[211] = 3;
NotaColorTotal[212] = 3;
NotaColorTotal[213] = 3;
NotaColorTotal[214] = 3;
NotaColorTotal[215] = 3;
NotaColorTotal[216] = 3;
NotaColorTotal[217] = 3;
NotaColorTotal[218] = 1;
NotaColorTotal[219] = 2;
NotaColorTotal[220] = 3;
NotaColorTotal[221] = 3;
NotaColorTotal[222] = 3;
NotaColorTotal[223] = 3;
NotaColorTotal[224] = 2;
NotaColorTotal[225] = 2;
NotaColorTotal[226] = 2;
NotaColorTotal[227] = 2;
NotaColorTotal[228] = 1;
NotaColorTotal[229] = 1;
NotaColorTotal[230] = 1;
NotaColorTotal[231] = 0;
NotaColorTotal[232] = 0;
NotaColorTotal[233] = 0;
NotaColorTotal[234] = 0;
NotaColorTotal[235] = 1;
NotaColorTotal[236] = 0;
NotaColorTotal[237] = 1;
NotaColorTotal[238] = 3;
NotaColorTotal[239] = 2;
NotaColorTotal[240] = 2;
NotaColorTotal[241] = 0;
NotaColorTotal[242] = 1;
NotaColorTotal[243] = 4;
NotaColorTotal[244] = 1;
NotaColorTotal[245] = 3;
NotaColorTotal[246] = 2;
NotaColorTotal[247] = 4;
NotaColorTotal[248] = 3;
NotaColorTotal[249] = 0;
NotaColorTotal[250] = 1;
NotaColorTotal[251] = 1;
NotaColorTotal[252] = 2;
NotaColorTotal[253] = 4;
NotaColorTotal[254] = 3;
NotaColorTotal[0xFF] = 3;
NotaColorTotal[0x0100] = 1;
NotaColorTotal[0x0101] = 0;
NotaColorTotal[258] = 1;
NotaColorTotal[259] = 3;
NotaColorTotal[260] = 1;
NotaColorTotal[261] = 1;
NotaColorTotal[262] = 1;
NotaColorTotal[263] = 3;
NotaColorTotal[264] = 2;
NotaColorTotal[265] = 2;
NotaColorTotal[266] = 0;
NotaColorTotal[267] = 1;
NotaColorTotal[268] = 1;
NotaColorTotal[269] = 4;
NotaColorTotal[270] = 4;
NotaColorTotal[271] = 1;
NotaColorTotal[272] = 2;
NotaColorTotal[273] = 0;
NotaColorTotal[274] = 3;
NotaColorTotal[275] = 1;
NotaColorTotal[276] = 2;
NotaColorTotal[277] = 1;
NotaColorTotal[278] = 0;
NotaColorTotal[279] = 0;
NotaColorTotal[280] = 1;
NotaColorTotal[281] = 3;
NotaColorTotal[282] = 0;
NotaColorTotal[283] = 1;
NotaColorTotal[284] = 2;
NotaColorTotal[285] = 3;
NotaColorTotal[286] = 1;
NotaColorTotal[287] = 4;
NotaColorTotal[288] = 3;
NotaColorTotal[289] = 4;
NotaColorTotal[290] = 1;
NotaColorTotal[291] = 0;
NotaColorTotal[292] = 1;
NotaColorTotal[293] = 1;
NotaColorTotal[294] = 2;
NotaColorTotal[295] = 0;
NotaColorTotal[296] = 3;
NotaColorTotal[297] = 4;
NotaColorTotal[298] = 1;
NotaColorTotal[299] = 0;
NotaColorTotal[300] = 1;
NotaColorTotal[301] = 1;
NotaColorTotal[302] = 2;
NotaColorTotal[303] = 3;
NotaColorTotal[304] = 1;
NotaColorTotal[305] = 0;
NotaColorTotal[306] = 2;
NotaColorTotal[307] = 1;
NotaColorTotal[308] = 1;
NotaColorTotal[309] = 1;
NotaColorTotal[310] = 0;
NotaColorTotal[311] = 1;
NotaColorTotal[312] = 3;
NotaColorTotal[313] = 2;
NotaColorTotal[314] = 1;
NotaColorTotal[315] = 0;
NotaColorTotal[316] = 1;
NotaColorTotal[317] = 1;
NotaColorTotal[318] = 0;
NotaColorTotal[319] = 1;
NotaColorTotal[320] = 2;
NotaColorTotal[321] = 4;
NotaColorTotal[322] = 1;
NotaColorTotal[323] = 2;
NotaColorTotal[324] = 0;
NotaColorTotal[325] = 1;
NotaColorTotal[326] = 4;
NotaColorTotal[327] = 0;
NotaColorTotal[328] = 1;
NotaColorTotal[329] = 2;
NotaColorTotal[330] = 0;
NotaColorTotal[331] = 1;
NotaColorTotal[332] = 2;
NotaColorTotal[333] = 0;
NotaColorTotal[334] = 0;
NotaColorTotal[335] = 2;
NotaColorTotal[336] = 0;
NotaColorTotal[337] = 1;
NotaColorTotal[338] = 2;
NotaColorTotal[339] = 4;
NotaColorTotal[340] = 1;
NotaColorTotal[341] = 2;
NotaColorTotal[342] = 3;
NotaColorTotal[343] = 0;
NotaColorTotal[344] = 1;
NotaColorTotal[345] = 2;
NotaColorTotal[346] = 0;
NotaColorTotal[347] = 0;
NotaColorTotal[348] = 2;
NotaColorTotal[349] = 0;
NotaColorTotal[350] = 1;
NotaColorTotal[351] = 0;
NotaColorTotal[352] = 0;
NotaColorTotal[353] = 2;
NotaColorTotal[354] = 0;
NotaColorTotal[355] = 0;
NotaColorTotal[356] = 1;
NotaColorTotal[357] = 1;
NotaColorTotal[358] = 2;
NotaColorTotal[359] = 2;
NotaColorTotal[360] = 4;
NotaColorTotal[361] = 2;
NotaColorTotal[362] = 2;
NotaColorTotal[363] = 1;
NotaColorTotal[364] = 1;
NotaColorTotal[365] = 0;
NotaColorTotal[366] = 0;
NotaColorTotal[367] = 1;
NotaColorTotal[368] = 1;
NotaColorTotal[369] = 0;
NotaColorTotal[370] = 2;
NotaColorTotal[371] = 1;
NotaColorTotal[372] = 3;
NotaColorTotal[373] = 0;
NotaColorTotal[374] = 1;
NotaColorTotal[375] = 1;
NotaColorTotal[376] = 1;
NotaColorTotal[377] = 2;
NotaColorTotal[378] = 1;
NotaColorTotal[379] = 2;
NotaColorTotal[380] = 3;
NotaColorTotal[381] = 4;
NotaColorTotal[382] = 1;
NotaColorTotal[383] = 1;
NotaColorTotal[384] = 0;
NotaColorTotal[385] = 0;
NotaColorTotal[386] = 1;
NotaColorTotal[387] = 1;
NotaColorTotal[388] = 2;
NotaColorTotal[389] = 2;
NotaColorTotal[390] = 2;
NotaColorTotal[391] = 4;
NotaColorTotal[392] = 4;
NotaColorTotal[393] = 2;
NotaColorTotal[394] = 2;
NotaColorTotal[395] = 0;
NotaColorTotal[396] = 1;
NotaColorTotal[397] = 3;
NotaColorTotal[398] = 4;
NotaColorTotal[399] = 1;
NotaColorTotal[400] = 2;
NotaColorTotal[401] = 1;
NotaColorTotal[402] = 0;
NotaColorTotal[403] = 1;
NotaColorTotal[404] = 0;
NotaColorTotal[405] = 1;
NotaColorTotal[406] = 0;
NotaColorTotal[407] = 0;
NotaColorTotal[408] = 1;
NotaColorTotal[409] = 1;
NotaColorTotal[410] = 0;
NotaColorTotal[411] = 0;
NotaColorTotal[412] = 4;
NotaColorTotal[413] = 3;
NotaColorTotal[414] = 1;
NotaColorTotal[415] = 1;
NotaColorTotal[416] = 2;
NotaColorTotal[417] = 1;
NotaColorTotal[418] = 2;
NotaColorTotal[419] = 0;
NotaColorTotal[420] = 0;
NotaColorTotal[421] = 1;
NotaColorTotal[422] = 1;
NotaColorTotal[423] = 2;
NotaColorTotal[424] = 3;
NotaColorTotal[425] = 4;
NotaColorTotal[426] = 2;
NotaColorTotal[427] = 2;
NotaColorTotal[428] = 1;
NotaColorTotal[429] = 3;
NotaColorTotal[430] = 1;
NotaColorTotal[431] = 0;
NotaColorTotal[432] = 1;
NotaColorTotal[433] = 0;
NotaColorTotal[434] = 2;
NotaColorTotal[435] = 1;
NotaColorTotal[436] = 3;
NotaColorTotal[437] = 3;
NotaColorTotal[438] = 4;
NotaColorTotal[439] = 1;
NotaColorTotal[440] = 2;
NotaColorTotal[441] = 1;
NotaColorTotal[442] = 0;
NotaColorTotal[443] = 1;
NotaColorTotal[444] = 3;
NotaColorTotal[445] = 1;
NotaColorTotal[446] = 2;
NotaColorTotal[447] = 1;
NotaColorTotal[448] = 0;
NotaColorTotal[449] = 0;
NotaColorTotal[450] = 1;
NotaColorTotal[451] = 2;
NotaColorTotal[452] = 4;
NotaColorTotal[453] = 1;
NotaColorTotal[454] = 2;
NotaColorTotal[455] = 1;
NotaColorTotal[456] = 0;
NotaColorTotal[457] = 1;
NotaColorTotal[458] = 0;
NotaColorTotal[459] = 1;
NotaColorTotal[460] = 0;
}
public function easyColores(){
NotaColorTotal[1] = 2;
NotaColorTotal[2] = 2;
NotaColorTotal[3] = 0;
NotaColorTotal[4] = 1;
NotaColorTotal[5] = 2;
NotaColorTotal[6] = 1;
NotaColorTotal[7] = 2;
NotaColorTotal[8] = 2;
NotaColorTotal[9] = 2;
NotaColorTotal[10] = 1;
NotaColorTotal[11] = 2;
NotaColorTotal[12] = 2;
NotaColorTotal[13] = 0;
NotaColorTotal[14] = 1;
NotaColorTotal[15] = 2;
NotaColorTotal[16] = 1;
NotaColorTotal[17] = 2;
NotaColorTotal[18] = 2;
NotaColorTotal[19] = 2;
NotaColorTotal[20] = 1;
NotaColorTotal[21] = 2;
NotaColorTotal[22] = 1;
NotaColorTotal[23] = 2;
NotaColorTotal[24] = 0;
NotaColorTotal[25] = 2;
NotaColorTotal[26] = 1;
NotaColorTotal[27] = 2;
NotaColorTotal[28] = 1;
NotaColorTotal[29] = 0;
NotaColorTotal[30] = 0;
NotaColorTotal[31] = 2;
NotaColorTotal[32] = 0;
NotaColorTotal[33] = 1;
NotaColorTotal[34] = 2;
NotaColorTotal[35] = 1;
NotaColorTotal[36] = 2;
NotaColorTotal[37] = 2;
NotaColorTotal[38] = 2;
NotaColorTotal[39] = 1;
NotaColorTotal[40] = 0;
NotaColorTotal[41] = 1;
NotaColorTotal[42] = 1;
NotaColorTotal[43] = 2;
NotaColorTotal[44] = 1;
NotaColorTotal[45] = 2;
NotaColorTotal[46] = 2;
NotaColorTotal[47] = 1;
NotaColorTotal[48] = 0;
NotaColorTotal[49] = 1;
NotaColorTotal[50] = 1;
NotaColorTotal[51] = 2;
NotaColorTotal[52] = 1;
NotaColorTotal[53] = 1;
NotaColorTotal[54] = 2;
NotaColorTotal[55] = 1;
NotaColorTotal[56] = 1;
NotaColorTotal[57] = 1;
NotaColorTotal[58] = 0;
NotaColorTotal[59] = 1;
NotaColorTotal[60] = 2;
NotaColorTotal[61] = 2;
NotaColorTotal[62] = 1;
NotaColorTotal[63] = 0;
NotaColorTotal[64] = 1;
NotaColorTotal[65] = 1;
NotaColorTotal[66] = 0;
NotaColorTotal[67] = 1;
NotaColorTotal[68] = 2;
NotaColorTotal[69] = 1;
NotaColorTotal[70] = 2;
NotaColorTotal[71] = 0;
NotaColorTotal[72] = 1;
NotaColorTotal[73] = 2;
NotaColorTotal[74] = 0;
NotaColorTotal[75] = 1;
NotaColorTotal[76] = 2;
NotaColorTotal[77] = 1;
NotaColorTotal[78] = 1;
NotaColorTotal[79] = 2;
NotaColorTotal[80] = 0;
NotaColorTotal[81] = 0;
NotaColorTotal[82] = 1;
NotaColorTotal[83] = 0;
NotaColorTotal[84] = 2;
NotaColorTotal[85] = 2;
NotaColorTotal[86] = 1;
NotaColorTotal[87] = 2;
NotaColorTotal[88] = 0;
NotaColorTotal[89] = 2;
NotaColorTotal[90] = 1;
NotaColorTotal[91] = 2;
NotaColorTotal[92] = 1;
NotaColorTotal[93] = 0;
NotaColorTotal[94] = 0;
NotaColorTotal[95] = 2;
NotaColorTotal[96] = 0;
NotaColorTotal[97] = 1;
NotaColorTotal[98] = 2;
NotaColorTotal[99] = 1;
NotaColorTotal[100] = 2;
NotaColorTotal[101] = 2;
NotaColorTotal[102] = 2;
NotaColorTotal[103] = 1;
NotaColorTotal[104] = 0;
NotaColorTotal[105] = 1;
NotaColorTotal[106] = 1;
NotaColorTotal[107] = 2;
NotaColorTotal[108] = 1;
NotaColorTotal[109] = 2;
NotaColorTotal[110] = 2;
NotaColorTotal[111] = 1;
NotaColorTotal[112] = 0;
NotaColorTotal[113] = 1;
NotaColorTotal[114] = 1;
NotaColorTotal[115] = 2;
NotaColorTotal[116] = 1;
NotaColorTotal[117] = 1;
NotaColorTotal[118] = 2;
NotaColorTotal[119] = 1;
NotaColorTotal[120] = 1;
NotaColorTotal[121] = 1;
NotaColorTotal[122] = 0;
NotaColorTotal[123] = 1;
NotaColorTotal[124] = 2;
NotaColorTotal[125] = 2;
NotaColorTotal[126] = 1;
NotaColorTotal[127] = 0;
NotaColorTotal[128] = 1;
NotaColorTotal[129] = 1;
NotaColorTotal[130] = 0;
NotaColorTotal[131] = 1;
NotaColorTotal[132] = 2;
NotaColorTotal[133] = 1;
NotaColorTotal[134] = 2;
NotaColorTotal[135] = 0;
NotaColorTotal[136] = 1;
NotaColorTotal[137] = 2;
NotaColorTotal[138] = 0;
NotaColorTotal[139] = 1;
NotaColorTotal[140] = 2;
NotaColorTotal[141] = 1;
NotaColorTotal[142] = 1;
NotaColorTotal[143] = 2;
NotaColorTotal[144] = 0;
NotaColorTotal[145] = 1;
NotaColorTotal[146] = 0;
NotaColorTotal[147] = 1;
NotaColorTotal[148] = 1;
NotaColorTotal[149] = 2;
NotaColorTotal[150] = 2;
NotaColorTotal[151] = 2;
NotaColorTotal[152] = 1;
NotaColorTotal[153] = 2;
NotaColorTotal[154] = 0;
NotaColorTotal[155] = 1;
NotaColorTotal[156] = 1;
NotaColorTotal[157] = 0;
NotaColorTotal[158] = 0;
NotaColorTotal[159] = 2;
NotaColorTotal[160] = 1;
NotaColorTotal[161] = 2;
NotaColorTotal[162] = 1;
NotaColorTotal[163] = 0;
NotaColorTotal[164] = 1;
NotaColorTotal[165] = 2;
NotaColorTotal[166] = 2;
NotaColorTotal[167] = 2;
NotaColorTotal[168] = 2;
NotaColorTotal[169] = 1;
NotaColorTotal[170] = 2;
NotaColorTotal[171] = 0;
NotaColorTotal[172] = 2;
NotaColorTotal[173] = 1;
NotaColorTotal[174] = 2;
NotaColorTotal[175] = 1;
NotaColorTotal[176] = 0;
NotaColorTotal[177] = 0;
NotaColorTotal[178] = 2;
NotaColorTotal[179] = 1;
NotaColorTotal[180] = 2;
NotaColorTotal[181] = 1;
NotaColorTotal[182] = 2;
NotaColorTotal[183] = 2;
NotaColorTotal[184] = 1;
NotaColorTotal[185] = 0;
NotaColorTotal[186] = 1;
NotaColorTotal[187] = 2;
NotaColorTotal[188] = 1;
NotaColorTotal[189] = 1;
NotaColorTotal[190] = 0;
NotaColorTotal[191] = 1;
NotaColorTotal[192] = 2;
NotaColorTotal[193] = 1;
NotaColorTotal[194] = 2;
NotaColorTotal[195] = 1;
NotaColorTotal[196] = 2;
NotaColorTotal[197] = 1;
NotaColorTotal[198] = 0;
NotaColorTotal[199] = 1;
NotaColorTotal[200] = 1;
NotaColorTotal[201] = 2;
NotaColorTotal[202] = 2;
NotaColorTotal[203] = 1;
NotaColorTotal[204] = 0;
NotaColorTotal[205] = 1;
NotaColorTotal[206] = 2;
NotaColorTotal[207] = 1;
NotaColorTotal[208] = 2;
NotaColorTotal[209] = 0;
NotaColorTotal[210] = 1;
NotaColorTotal[211] = 1;
NotaColorTotal[212] = 2;
NotaColorTotal[213] = 0;
NotaColorTotal[214] = 1;
NotaColorTotal[215] = 1;
NotaColorTotal[216] = 2;
NotaColorTotal[217] = 2;
NotaColorTotal[218] = 1;
NotaColorTotal[219] = 2;
NotaColorTotal[220] = 0;
NotaColorTotal[221] = 2;
NotaColorTotal[222] = 1;
NotaColorTotal[223] = 2;
NotaColorTotal[224] = 1;
NotaColorTotal[225] = 0;
NotaColorTotal[226] = 0;
NotaColorTotal[227] = 2;
NotaColorTotal[228] = 0;
NotaColorTotal[229] = 1;
NotaColorTotal[230] = 2;
NotaColorTotal[231] = 1;
NotaColorTotal[232] = 2;
NotaColorTotal[233] = 2;
NotaColorTotal[234] = 2;
NotaColorTotal[235] = 1;
NotaColorTotal[236] = 0;
NotaColorTotal[237] = 1;
NotaColorTotal[238] = 1;
NotaColorTotal[239] = 2;
NotaColorTotal[240] = 1;
NotaColorTotal[241] = 2;
NotaColorTotal[242] = 2;
NotaColorTotal[243] = 1;
NotaColorTotal[244] = 0;
NotaColorTotal[245] = 1;
NotaColorTotal[246] = 1;
NotaColorTotal[247] = 2;
NotaColorTotal[248] = 1;
NotaColorTotal[249] = 1;
NotaColorTotal[250] = 2;
NotaColorTotal[251] = 1;
NotaColorTotal[252] = 1;
NotaColorTotal[253] = 1;
NotaColorTotal[254] = 0;
NotaColorTotal[0xFF] = 1;
NotaColorTotal[0x0100] = 2;
NotaColorTotal[0x0101] = 2;
NotaColorTotal[258] = 1;
NotaColorTotal[259] = 0;
NotaColorTotal[260] = 1;
NotaColorTotal[261] = 1;
NotaColorTotal[262] = 0;
NotaColorTotal[263] = 1;
NotaColorTotal[264] = 2;
NotaColorTotal[265] = 1;
NotaColorTotal[266] = 2;
NotaColorTotal[267] = 0;
NotaColorTotal[268] = 1;
NotaColorTotal[269] = 2;
NotaColorTotal[270] = 0;
NotaColorTotal[271] = 1;
NotaColorTotal[272] = 2;
NotaColorTotal[273] = 1;
NotaColorTotal[274] = 1;
NotaColorTotal[275] = 2;
NotaColorTotal[276] = 0;
NotaColorTotal[277] = 0;
NotaColorTotal[278] = 1;
NotaColorTotal[279] = 0;
NotaColorTotal[280] = 2;
NotaColorTotal[281] = 0;
NotaColorTotal[282] = 1;
NotaColorTotal[283] = 2;
NotaColorTotal[284] = 0;
NotaColorTotal[285] = 1;
NotaColorTotal[286] = 2;
NotaColorTotal[287] = 1;
NotaColorTotal[288] = 1;
NotaColorTotal[289] = 2;
NotaColorTotal[290] = 0;
NotaColorTotal[291] = 0;
NotaColorTotal[292] = 1;
NotaColorTotal[293] = 0;
NotaColorTotal[294] = 2;
NotaColorTotal[295] = 0;
NotaColorTotal[296] = 0;
NotaColorTotal[297] = 1;
NotaColorTotal[298] = 0;
NotaColorTotal[299] = 0;
NotaColorTotal[300] = 1;
NotaColorTotal[301] = 1;
NotaColorTotal[302] = 1;
NotaColorTotal[303] = 2;
NotaColorTotal[304] = 1;
NotaColorTotal[305] = 2;
NotaColorTotal[306] = 2;
NotaColorTotal[307] = 1;
NotaColorTotal[308] = 2;
NotaColorTotal[309] = 1;
NotaColorTotal[310] = 2;
NotaColorTotal[311] = 1;
NotaColorTotal[312] = 1;
NotaColorTotal[313] = 0;
NotaColorTotal[314] = 0;
NotaColorTotal[315] = 1;
NotaColorTotal[316] = 1;
NotaColorTotal[317] = 0;
NotaColorTotal[318] = 2;
NotaColorTotal[319] = 1;
NotaColorTotal[320] = 2;
NotaColorTotal[321] = 0;
NotaColorTotal[322] = 1;
NotaColorTotal[323] = 1;
NotaColorTotal[324] = 1;
NotaColorTotal[325] = 2;
NotaColorTotal[326] = 1;
NotaColorTotal[327] = 2;
NotaColorTotal[328] = 2;
NotaColorTotal[329] = 1;
NotaColorTotal[330] = 0;
NotaColorTotal[331] = 1;
NotaColorTotal[332] = 1;
NotaColorTotal[333] = 2;
NotaColorTotal[334] = 2;
NotaColorTotal[335] = 2;
NotaColorTotal[336] = 1;
NotaColorTotal[337] = 1;
NotaColorTotal[338] = 0;
NotaColorTotal[339] = 1;
NotaColorTotal[340] = 2;
NotaColorTotal[341] = 1;
NotaColorTotal[342] = 2;
NotaColorTotal[343] = 1;
NotaColorTotal[344] = 0;
NotaColorTotal[345] = 1;
NotaColorTotal[346] = 0;
NotaColorTotal[347] = 1;
NotaColorTotal[348] = 0;
NotaColorTotal[349] = 0;
NotaColorTotal[350] = 1;
NotaColorTotal[351] = 1;
NotaColorTotal[352] = 0;
NotaColorTotal[353] = 0;
NotaColorTotal[354] = 2;
NotaColorTotal[355] = 2;
NotaColorTotal[356] = 1;
NotaColorTotal[357] = 1;
NotaColorTotal[358] = 2;
NotaColorTotal[359] = 1;
NotaColorTotal[360] = 2;
NotaColorTotal[361] = 0;
NotaColorTotal[362] = 0;
NotaColorTotal[363] = 1;
NotaColorTotal[364] = 1;
NotaColorTotal[365] = 1;
NotaColorTotal[366] = 2;
NotaColorTotal[367] = 2;
NotaColorTotal[368] = 2;
NotaColorTotal[369] = 2;
NotaColorTotal[370] = 1;
NotaColorTotal[371] = 2;
NotaColorTotal[372] = 1;
NotaColorTotal[373] = 0;
NotaColorTotal[374] = 1;
NotaColorTotal[375] = 0;
NotaColorTotal[376] = 2;
NotaColorTotal[377] = 1;
NotaColorTotal[378] = 2;
NotaColorTotal[379] = 2;
NotaColorTotal[380] = 1;
NotaColorTotal[381] = 2;
NotaColorTotal[382] = 1;
NotaColorTotal[383] = 0;
NotaColorTotal[384] = 1;
NotaColorTotal[385] = 2;
NotaColorTotal[386] = 1;
NotaColorTotal[387] = 2;
NotaColorTotal[388] = 1;
NotaColorTotal[389] = 0;
NotaColorTotal[390] = 0;
NotaColorTotal[391] = 1;
NotaColorTotal[392] = 1;
NotaColorTotal[393] = 2;
NotaColorTotal[394] = 1;
NotaColorTotal[395] = 2;
NotaColorTotal[396] = 1;
NotaColorTotal[397] = 0;
NotaColorTotal[398] = 1;
NotaColorTotal[399] = 0;
NotaColorTotal[400] = 1;
NotaColorTotal[401] = 0;
}
public function easyStarPower(){
NotaStarPower[1] = 0;
NotaStarPower[2] = 0;
NotaStarPower[3] = 0;
NotaStarPower[4] = 0;
NotaStarPower[5] = 0;
NotaStarPower[6] = 0;
NotaStarPower[7] = 0;
NotaStarPower[8] = 0;
NotaStarPower[9] = 0;
NotaStarPower[10] = 0;
NotaStarPower[11] = 0;
NotaStarPower[12] = 0;
NotaStarPower[13] = 0;
NotaStarPower[14] = 0;
NotaStarPower[15] = 0;
NotaStarPower[16] = 0;
NotaStarPower[17] = 0;
NotaStarPower[18] = 0;
NotaStarPower[19] = 0;
NotaStarPower[20] = 0;
NotaStarPower[21] = 1;
NotaStarPower[22] = 1;
NotaStarPower[23] = 1;
NotaStarPower[24] = 1;
NotaStarPower[25] = 1;
NotaStarPower[26] = 1;
NotaStarPower[27] = 1;
NotaStarPower[28] = 1;
NotaStarPower[29] = 1;
NotaStarPower[30] = 0;
NotaStarPower[31] = 0;
NotaStarPower[32] = 0;
NotaStarPower[33] = 0;
NotaStarPower[34] = 0;
NotaStarPower[35] = 0;
NotaStarPower[36] = 0;
NotaStarPower[37] = 1;
NotaStarPower[38] = 1;
NotaStarPower[39] = 1;
NotaStarPower[40] = 1;
NotaStarPower[41] = 1;
NotaStarPower[42] = 1;
NotaStarPower[43] = 1;
NotaStarPower[44] = 1;
NotaStarPower[45] = 0;
NotaStarPower[46] = 0;
NotaStarPower[47] = 0;
NotaStarPower[48] = 0;
NotaStarPower[49] = 0;
NotaStarPower[50] = 0;
NotaStarPower[51] = 0;
NotaStarPower[52] = 0;
NotaStarPower[53] = 0;
NotaStarPower[54] = 0;
NotaStarPower[55] = 0;
NotaStarPower[56] = 0;
NotaStarPower[57] = 0;
NotaStarPower[58] = 0;
NotaStarPower[59] = 0;
NotaStarPower[60] = 0;
NotaStarPower[61] = 0;
NotaStarPower[62] = 0;
NotaStarPower[63] = 0;
NotaStarPower[64] = 0;
NotaStarPower[65] = 0;
NotaStarPower[66] = 0;
NotaStarPower[67] = 0;
NotaStarPower[68] = 0;
NotaStarPower[69] = 1;
NotaStarPower[70] = 1;
NotaStarPower[71] = 1;
NotaStarPower[72] = 1;
NotaStarPower[73] = 1;
NotaStarPower[74] = 1;
NotaStarPower[75] = 1;
NotaStarPower[76] = 1;
NotaStarPower[77] = 1;
NotaStarPower[78] = 1;
NotaStarPower[79] = 1;
NotaStarPower[80] = 1;
NotaStarPower[81] = 1;
NotaStarPower[82] = 1;
NotaStarPower[83] = 1;
NotaStarPower[84] = 1;
NotaStarPower[85] = 0;
NotaStarPower[86] = 0;
NotaStarPower[87] = 0;
NotaStarPower[88] = 0;
NotaStarPower[89] = 0;
NotaStarPower[90] = 0;
NotaStarPower[91] = 0;
NotaStarPower[92] = 0;
NotaStarPower[93] = 0;
NotaStarPower[94] = 0;
NotaStarPower[95] = 0;
NotaStarPower[96] = 0;
NotaStarPower[97] = 0;
NotaStarPower[98] = 0;
NotaStarPower[99] = 0;
NotaStarPower[100] = 0;
NotaStarPower[101] = 0;
NotaStarPower[102] = 0;
NotaStarPower[103] = 0;
NotaStarPower[104] = 0;
NotaStarPower[105] = 0;
NotaStarPower[106] = 0;
NotaStarPower[107] = 0;
NotaStarPower[108] = 0;
NotaStarPower[109] = 0;
NotaStarPower[110] = 0;
NotaStarPower[111] = 0;
NotaStarPower[112] = 0;
NotaStarPower[113] = 0;
NotaStarPower[114] = 0;
NotaStarPower[115] = 0;
NotaStarPower[116] = 0;
NotaStarPower[117] = 1;
NotaStarPower[118] = 1;
NotaStarPower[119] = 1;
NotaStarPower[120] = 1;
NotaStarPower[121] = 1;
NotaStarPower[122] = 1;
NotaStarPower[123] = 1;
NotaStarPower[124] = 1;
NotaStarPower[125] = 0;
NotaStarPower[126] = 0;
NotaStarPower[127] = 0;
NotaStarPower[128] = 0;
NotaStarPower[129] = 0;
NotaStarPower[130] = 0;
NotaStarPower[131] = 0;
NotaStarPower[132] = 0;
NotaStarPower[133] = 0;
NotaStarPower[134] = 0;
NotaStarPower[135] = 0;
NotaStarPower[136] = 0;
NotaStarPower[137] = 0;
NotaStarPower[138] = 0;
NotaStarPower[139] = 0;
NotaStarPower[140] = 0;
NotaStarPower[141] = 0;
NotaStarPower[142] = 0;
NotaStarPower[143] = 0;
NotaStarPower[144] = 0;
NotaStarPower[145] = 0;
NotaStarPower[146] = 0;
NotaStarPower[147] = 0;
NotaStarPower[148] = 0;
NotaStarPower[149] = 0;
NotaStarPower[150] = 0;
NotaStarPower[151] = 0;
NotaStarPower[152] = 0;
NotaStarPower[153] = 0;
NotaStarPower[154] = 0;
NotaStarPower[155] = 0;
NotaStarPower[156] = 0;
NotaStarPower[157] = 0;
NotaStarPower[158] = 0;
NotaStarPower[159] = 0;
NotaStarPower[160] = 0;
NotaStarPower[161] = 0;
NotaStarPower[162] = 0;
NotaStarPower[163] = 0;
NotaStarPower[164] = 0;
NotaStarPower[165] = 0;
NotaStarPower[166] = 0;
NotaStarPower[167] = 0;
NotaStarPower[168] = 0;
NotaStarPower[169] = 0;
NotaStarPower[170] = 0;
NotaStarPower[171] = 0;
NotaStarPower[172] = 0;
NotaStarPower[173] = 0;
NotaStarPower[174] = 0;
NotaStarPower[175] = 0;
NotaStarPower[176] = 0;
NotaStarPower[177] = 0;
NotaStarPower[178] = 0;
NotaStarPower[179] = 0;
NotaStarPower[180] = 0;
NotaStarPower[181] = 0;
NotaStarPower[182] = 0;
NotaStarPower[183] = 0;
NotaStarPower[184] = 0;
NotaStarPower[185] = 0;
NotaStarPower[186] = 0;
NotaStarPower[187] = 0;
NotaStarPower[188] = 0;
NotaStarPower[189] = 0;
NotaStarPower[190] = 0;
NotaStarPower[191] = 0;
NotaStarPower[192] = 1;
NotaStarPower[193] = 1;
NotaStarPower[194] = 1;
NotaStarPower[195] = 1;
NotaStarPower[196] = 1;
NotaStarPower[197] = 1;
NotaStarPower[198] = 1;
NotaStarPower[199] = 1;
NotaStarPower[200] = 0;
NotaStarPower[201] = 0;
NotaStarPower[202] = 0;
NotaStarPower[203] = 0;
NotaStarPower[204] = 0;
NotaStarPower[205] = 0;
NotaStarPower[206] = 0;
NotaStarPower[207] = 0;
NotaStarPower[208] = 0;
NotaStarPower[209] = 0;
NotaStarPower[210] = 0;
NotaStarPower[211] = 0;
NotaStarPower[212] = 0;
NotaStarPower[213] = 0;
NotaStarPower[214] = 0;
NotaStarPower[215] = 0;
NotaStarPower[216] = 0;
NotaStarPower[217] = 0;
NotaStarPower[218] = 0;
NotaStarPower[219] = 0;
NotaStarPower[220] = 0;
NotaStarPower[221] = 0;
NotaStarPower[222] = 0;
NotaStarPower[223] = 0;
NotaStarPower[224] = 0;
NotaStarPower[225] = 0;
NotaStarPower[226] = 0;
NotaStarPower[227] = 0;
NotaStarPower[228] = 0;
NotaStarPower[229] = 0;
NotaStarPower[230] = 0;
NotaStarPower[231] = 0;
NotaStarPower[232] = 0;
NotaStarPower[233] = 0;
NotaStarPower[234] = 0;
NotaStarPower[235] = 0;
NotaStarPower[236] = 0;
NotaStarPower[237] = 0;
NotaStarPower[238] = 0;
NotaStarPower[239] = 0;
NotaStarPower[240] = 0;
NotaStarPower[241] = 0;
NotaStarPower[242] = 0;
NotaStarPower[243] = 0;
NotaStarPower[244] = 0;
NotaStarPower[245] = 0;
NotaStarPower[246] = 0;
NotaStarPower[247] = 0;
NotaStarPower[248] = 0;
NotaStarPower[249] = 0;
NotaStarPower[250] = 0;
NotaStarPower[251] = 0;
NotaStarPower[252] = 0;
NotaStarPower[253] = 0;
NotaStarPower[254] = 0;
NotaStarPower[0xFF] = 0;
NotaStarPower[0x0100] = 0;
NotaStarPower[0x0101] = 0;
NotaStarPower[258] = 0;
NotaStarPower[259] = 0;
NotaStarPower[260] = 0;
NotaStarPower[261] = 0;
NotaStarPower[262] = 0;
NotaStarPower[263] = 0;
NotaStarPower[264] = 0;
NotaStarPower[265] = 0;
NotaStarPower[266] = 1;
NotaStarPower[267] = 1;
NotaStarPower[268] = 1;
NotaStarPower[269] = 1;
NotaStarPower[270] = 1;
NotaStarPower[271] = 1;
NotaStarPower[272] = 1;
NotaStarPower[273] = 1;
NotaStarPower[274] = 1;
NotaStarPower[275] = 1;
NotaStarPower[276] = 1;
NotaStarPower[277] = 1;
NotaStarPower[278] = 1;
NotaStarPower[279] = 1;
NotaStarPower[280] = 1;
NotaStarPower[281] = 0;
NotaStarPower[282] = 0;
NotaStarPower[283] = 0;
NotaStarPower[284] = 0;
NotaStarPower[285] = 0;
NotaStarPower[286] = 0;
NotaStarPower[287] = 0;
NotaStarPower[288] = 0;
NotaStarPower[289] = 0;
NotaStarPower[290] = 0;
NotaStarPower[291] = 0;
NotaStarPower[292] = 0;
NotaStarPower[293] = 0;
NotaStarPower[294] = 0;
NotaStarPower[295] = 0;
NotaStarPower[296] = 0;
NotaStarPower[297] = 0;
NotaStarPower[298] = 0;
NotaStarPower[299] = 0;
NotaStarPower[300] = 0;
NotaStarPower[301] = 0;
NotaStarPower[302] = 0;
NotaStarPower[303] = 0;
NotaStarPower[304] = 0;
NotaStarPower[305] = 0;
NotaStarPower[306] = 0;
NotaStarPower[307] = 0;
NotaStarPower[308] = 0;
NotaStarPower[309] = 0;
NotaStarPower[310] = 0;
NotaStarPower[311] = 0;
NotaStarPower[312] = 0;
NotaStarPower[313] = 0;
NotaStarPower[314] = 0;
NotaStarPower[315] = 0;
NotaStarPower[316] = 0;
NotaStarPower[317] = 0;
NotaStarPower[318] = 0;
NotaStarPower[319] = 0;
NotaStarPower[320] = 0;
NotaStarPower[321] = 0;
NotaStarPower[322] = 0;
NotaStarPower[323] = 0;
NotaStarPower[324] = 0;
NotaStarPower[325] = 0;
NotaStarPower[326] = 0;
NotaStarPower[327] = 0;
NotaStarPower[328] = 0;
NotaStarPower[329] = 0;
NotaStarPower[330] = 0;
NotaStarPower[331] = 0;
NotaStarPower[332] = 0;
NotaStarPower[333] = 0;
NotaStarPower[334] = 0;
NotaStarPower[335] = 0;
NotaStarPower[336] = 0;
NotaStarPower[337] = 1;
NotaStarPower[338] = 1;
NotaStarPower[339] = 1;
NotaStarPower[340] = 1;
NotaStarPower[341] = 1;
NotaStarPower[342] = 1;
NotaStarPower[343] = 1;
NotaStarPower[344] = 1;
NotaStarPower[345] = 1;
NotaStarPower[346] = 1;
NotaStarPower[347] = 0;
NotaStarPower[348] = 0;
NotaStarPower[349] = 0;
NotaStarPower[350] = 0;
NotaStarPower[351] = 0;
NotaStarPower[352] = 0;
NotaStarPower[353] = 0;
NotaStarPower[354] = 0;
NotaStarPower[355] = 0;
NotaStarPower[356] = 0;
NotaStarPower[357] = 0;
NotaStarPower[358] = 0;
NotaStarPower[359] = 0;
NotaStarPower[360] = 0;
NotaStarPower[361] = 0;
NotaStarPower[362] = 0;
NotaStarPower[363] = 0;
NotaStarPower[364] = 0;
NotaStarPower[365] = 0;
NotaStarPower[366] = 0;
NotaStarPower[367] = 0;
NotaStarPower[368] = 0;
NotaStarPower[369] = 0;
NotaStarPower[370] = 0;
NotaStarPower[371] = 0;
NotaStarPower[372] = 0;
NotaStarPower[373] = 0;
NotaStarPower[374] = 0;
NotaStarPower[375] = 0;
NotaStarPower[376] = 0;
NotaStarPower[377] = 0;
NotaStarPower[378] = 0;
NotaStarPower[379] = 0;
NotaStarPower[380] = 0;
NotaStarPower[381] = 0;
NotaStarPower[382] = 0;
NotaStarPower[383] = 0;
NotaStarPower[384] = 0;
NotaStarPower[385] = 0;
NotaStarPower[386] = 0;
NotaStarPower[387] = 0;
NotaStarPower[388] = 0;
NotaStarPower[389] = 0;
NotaStarPower[390] = 0;
NotaStarPower[391] = 0;
NotaStarPower[392] = 0;
NotaStarPower[393] = 0;
NotaStarPower[394] = 0;
NotaStarPower[395] = 0;
NotaStarPower[396] = 0;
NotaStarPower[397] = 0;
NotaStarPower[398] = 0;
NotaStarPower[399] = 0;
NotaStarPower[400] = 0;
NotaStarPower[401] = 0;
LargoStar[1] = 9;
LargoStar[2] = 8;
LargoStar[3] = 16;
LargoStar[4] = 8;
LargoStar[5] = 8;
LargoStar[6] = 15;
LargoStar[7] = 10;
}
public function NotasTiempos(_arg1:int):void{
if (_arg1 == 1){
easyTiempos();
} else {
if (_arg1 == 2){
mediumTiempos();
} else {
if (_arg1 == 3){
hardTiempos();
};
};
};
}
public function NotasPressTotales(_arg1:int):void{
if (_arg1 == 1){
easyPress();
} else {
if (_arg1 == 2){
mediumPress();
} else {
if (_arg1 == 3){
hardPress();
};
};
};
}
public function easyTiempos(){
NotaTiempo[1] = 12.75;
NotaTiempo[2] = 13.1875;
NotaTiempo[3] = 13.4375;
NotaTiempo[4] = 14.875;
NotaTiempo[5] = 14.875;
NotaTiempo[6] = 15.1875;
NotaTiempo[7] = 15.1875;
NotaTiempo[8] = 15.625;
NotaTiempo[9] = 16;
NotaTiempo[10] = 16.25;
NotaTiempo[11] = 18.4375;
NotaTiempo[12] = 18.875;
NotaTiempo[13] = 19.0625;
NotaTiempo[14] = 20.5625;
NotaTiempo[15] = 20.5625;
NotaTiempo[16] = 20.875;
NotaTiempo[17] = 20.875;
NotaTiempo[18] = 21.3125;
NotaTiempo[19] = 21.6875;
NotaTiempo[20] = 21.9375;
NotaTiempo[21] = 24;
NotaTiempo[22] = 24.6875;
NotaTiempo[23] = 25.25;
NotaTiempo[24] = 25.4375;
NotaTiempo[25] = 26.5625;
NotaTiempo[26] = 26.8125;
NotaTiempo[27] = 26.8125;
NotaTiempo[28] = 27.5625;
NotaTiempo[29] = 28.25;
NotaTiempo[30] = 29.375;
NotaTiempo[31] = 29.625;
NotaTiempo[32] = 30.8125;
NotaTiempo[33] = 30.8125;
NotaTiempo[34] = 31.125;
NotaTiempo[35] = 32.125;
NotaTiempo[36] = 32.375;
NotaTiempo[37] = 34.875;
NotaTiempo[38] = 35.25;
NotaTiempo[39] = 35.625;
NotaTiempo[40] = 36;
NotaTiempo[41] = 36.375;
NotaTiempo[42] = 36.75;
NotaTiempo[43] = 37.25;
NotaTiempo[44] = 37.4375;
NotaTiempo[45] = 37.8125;
NotaTiempo[46] = 38.125;
NotaTiempo[47] = 38.5;
NotaTiempo[48] = 38.875;
NotaTiempo[49] = 39.25;
NotaTiempo[50] = 39.5625;
NotaTiempo[51] = 40;
NotaTiempo[52] = 40.1875;
NotaTiempo[53] = 40.5625;
NotaTiempo[54] = 40.75;
NotaTiempo[55] = 40.9375;
NotaTiempo[56] = 41.3125;
NotaTiempo[57] = 41.6875;
NotaTiempo[58] = 42;
NotaTiempo[59] = 42.1875;
NotaTiempo[60] = 42.375;
NotaTiempo[61] = 43.4375;
NotaTiempo[62] = 43.625;
NotaTiempo[63] = 43.875;
NotaTiempo[64] = 44.1875;
NotaTiempo[65] = 44.4375;
NotaTiempo[66] = 44.875;
NotaTiempo[67] = 45.0625;
NotaTiempo[68] = 45.25;
NotaTiempo[69] = 46.3125;
NotaTiempo[70] = 46.5;
NotaTiempo[71] = 46.6875;
NotaTiempo[72] = 47;
NotaTiempo[73] = 47;
NotaTiempo[74] = 47.625;
NotaTiempo[75] = 48;
NotaTiempo[76] = 48.5;
NotaTiempo[77] = 48.6875;
NotaTiempo[78] = 49.0625;
NotaTiempo[79] = 49.3125;
NotaTiempo[80] = 49.5625;
NotaTiempo[81] = 50.125;
NotaTiempo[82] = 50.125;
NotaTiempo[83] = 50.8125;
NotaTiempo[84] = 50.8125;
NotaTiempo[85] = 63.5;
NotaTiempo[86] = 64.1875;
NotaTiempo[87] = 64.75;
NotaTiempo[88] = 64.9375;
NotaTiempo[89] = 66.0625;
NotaTiempo[90] = 66.3125;
NotaTiempo[91] = 66.3125;
NotaTiempo[92] = 67.0625;
NotaTiempo[93] = 67.75;
NotaTiempo[94] = 68.875;
NotaTiempo[95] = 69.125;
NotaTiempo[96] = 70.3125;
NotaTiempo[97] = 70.3125;
NotaTiempo[98] = 70.625;
NotaTiempo[99] = 71.625;
NotaTiempo[100] = 71.875;
NotaTiempo[101] = 74.375;
NotaTiempo[102] = 74.75;
NotaTiempo[103] = 75.125;
NotaTiempo[104] = 75.5;
NotaTiempo[105] = 75.875;
NotaTiempo[106] = 76.25;
NotaTiempo[107] = 76.75;
NotaTiempo[108] = 76.9375;
NotaTiempo[109] = 77.3125;
NotaTiempo[110] = 77.625;
NotaTiempo[111] = 78;
NotaTiempo[112] = 78.375;
NotaTiempo[113] = 78.75;
NotaTiempo[114] = 79.0625;
NotaTiempo[115] = 79.5;
NotaTiempo[116] = 79.6875;
NotaTiempo[117] = 80.0625;
NotaTiempo[118] = 80.25;
NotaTiempo[119] = 80.4375;
NotaTiempo[120] = 80.8125;
NotaTiempo[121] = 81.1875;
NotaTiempo[122] = 81.5;
NotaTiempo[123] = 81.6875;
NotaTiempo[124] = 81.875;
NotaTiempo[125] = 82.9375;
NotaTiempo[126] = 83.125;
NotaTiempo[127] = 83.375;
NotaTiempo[128] = 83.6875;
NotaTiempo[129] = 83.9375;
NotaTiempo[130] = 84.375;
NotaTiempo[131] = 84.5625;
NotaTiempo[132] = 84.75;
NotaTiempo[133] = 85.8125;
NotaTiempo[134] = 86;
NotaTiempo[135] = 86.1875;
NotaTiempo[136] = 86.5;
NotaTiempo[137] = 86.5;
NotaTiempo[138] = 87.125;
NotaTiempo[139] = 87.5;
NotaTiempo[140] = 88;
NotaTiempo[141] = 88.1875;
NotaTiempo[142] = 88.5625;
NotaTiempo[143] = 88.8125;
NotaTiempo[144] = 89.0625;
NotaTiempo[145] = 89.625;
NotaTiempo[146] = 90.3125;
NotaTiempo[147] = 90.3125;
NotaTiempo[148] = 91.875;
NotaTiempo[149] = 91.875;
NotaTiempo[150] = 92.5625;
NotaTiempo[151] = 93.875;
NotaTiempo[152] = 94.5625;
NotaTiempo[153] = 94.5625;
NotaTiempo[154] = 95.25;
NotaTiempo[155] = 95.25;
NotaTiempo[156] = 95.9375;
NotaTiempo[157] = 96.625;
NotaTiempo[158] = 97.4375;
NotaTiempo[159] = 97.4375;
NotaTiempo[160] = 98.1875;
NotaTiempo[161] = 98.875;
NotaTiempo[162] = 99.625;
NotaTiempo[163] = 100.3125;
NotaTiempo[164] = 101;
NotaTiempo[165] = 101;
NotaTiempo[166] = 101.6875;
NotaTiempo[167] = 102.375;
NotaTiempo[168] = 103.0625;
NotaTiempo[169] = 103.8125;
NotaTiempo[170] = 104.5625;
NotaTiempo[171] = 105.25;
NotaTiempo[172] = 105.9375;
NotaTiempo[173] = 106.625;
NotaTiempo[174] = 106.625;
NotaTiempo[175] = 107.3125;
NotaTiempo[176] = 108;
NotaTiempo[177] = 108.75;
NotaTiempo[178] = 108.75;
NotaTiempo[179] = 109.375;
NotaTiempo[180] = 109.375;
NotaTiempo[181] = 110.625;
NotaTiempo[182] = 110.875;
NotaTiempo[183] = 111.25;
NotaTiempo[184] = 111.875;
NotaTiempo[185] = 112.625;
NotaTiempo[186] = 114.375;
NotaTiempo[187] = 114.375;
NotaTiempo[188] = 115.375;
NotaTiempo[189] = 115.5625;
NotaTiempo[190] = 115.875;
NotaTiempo[191] = 115.875;
NotaTiempo[192] = 117.25;
NotaTiempo[193] = 118.125;
NotaTiempo[194] = 118.3125;
NotaTiempo[195] = 118.5;
NotaTiempo[196] = 118.6875;
NotaTiempo[197] = 118.875;
NotaTiempo[198] = 119.125;
NotaTiempo[199] = 119.125;
NotaTiempo[200] = 120.0625;
NotaTiempo[201] = 120.375;
NotaTiempo[202] = 120.6875;
NotaTiempo[203] = 121;
NotaTiempo[204] = 121.375;
NotaTiempo[205] = 121.8125;
NotaTiempo[206] = 121.8125;
NotaTiempo[207] = 122;
NotaTiempo[208] = 122;
NotaTiempo[209] = 122.4375;
NotaTiempo[210] = 122.8125;
NotaTiempo[211] = 123.25;
NotaTiempo[212] = 123.25;
NotaTiempo[213] = 123.5625;
NotaTiempo[214] = 123.875;
NotaTiempo[215] = 124.1875;
NotaTiempo[216] = 124.1875;
NotaTiempo[217] = 125.625;
NotaTiempo[218] = 126.3125;
NotaTiempo[219] = 126.875;
NotaTiempo[220] = 127.0625;
NotaTiempo[221] = 128.1875;
NotaTiempo[222] = 128.4375;
NotaTiempo[223] = 128.4375;
NotaTiempo[224] = 129.1875;
NotaTiempo[225] = 129.875;
NotaTiempo[226] = 131;
NotaTiempo[227] = 131.25;
NotaTiempo[228] = 132.4375;
NotaTiempo[229] = 132.4375;
NotaTiempo[230] = 132.75;
NotaTiempo[231] = 133.75;
NotaTiempo[232] = 134;
NotaTiempo[233] = 136.5;
NotaTiempo[234] = 136.875;
NotaTiempo[235] = 137.25;
NotaTiempo[236] = 137.625;
NotaTiempo[237] = 138;
NotaTiempo[238] = 138.375;
NotaTiempo[239] = 138.875;
NotaTiempo[240] = 139.0625;
NotaTiempo[241] = 139.4375;
NotaTiempo[242] = 139.75;
NotaTiempo[243] = 140.125;
NotaTiempo[244] = 140.5;
NotaTiempo[245] = 140.875;
NotaTiempo[246] = 141.1875;
NotaTiempo[247] = 141.625;
NotaTiempo[248] = 141.8125;
NotaTiempo[249] = 142.1875;
NotaTiempo[250] = 142.375;
NotaTiempo[251] = 142.5625;
NotaTiempo[252] = 142.9375;
NotaTiempo[253] = 143.3125;
NotaTiempo[254] = 143.625;
NotaTiempo[0xFF] = 143.8125;
NotaTiempo[0x0100] = 144;
NotaTiempo[0x0101] = 145.0625;
NotaTiempo[258] = 145.25;
NotaTiempo[259] = 145.5;
NotaTiempo[260] = 145.8125;
NotaTiempo[261] = 146.0625;
NotaTiempo[262] = 146.5;
NotaTiempo[263] = 146.6875;
NotaTiempo[264] = 146.875;
NotaTiempo[265] = 147.9375;
NotaTiempo[266] = 148.125;
NotaTiempo[267] = 148.3125;
NotaTiempo[268] = 148.625;
NotaTiempo[269] = 148.625;
NotaTiempo[270] = 149.25;
NotaTiempo[271] = 149.625;
NotaTiempo[272] = 150.125;
NotaTiempo[273] = 150.3125;
NotaTiempo[274] = 150.6875;
NotaTiempo[275] = 150.9375;
NotaTiempo[276] = 151.1875;
NotaTiempo[277] = 151.75;
NotaTiempo[278] = 151.75;
NotaTiempo[279] = 152.4375;
NotaTiempo[280] = 152.4375;
NotaTiempo[281] = 153.8125;
NotaTiempo[282] = 154.125;
NotaTiempo[283] = 154.125;
NotaTiempo[284] = 154.75;
NotaTiempo[285] = 155.125;
NotaTiempo[286] = 155.625;
NotaTiempo[287] = 155.8125;
NotaTiempo[288] = 156.1875;
NotaTiempo[289] = 156.4375;
NotaTiempo[290] = 156.6875;
NotaTiempo[291] = 157.25;
NotaTiempo[292] = 157.25;
NotaTiempo[293] = 157.9375;
NotaTiempo[294] = 157.9375;
NotaTiempo[295] = 159.5;
NotaTiempo[296] = 159.875;
NotaTiempo[297] = 159.875;
NotaTiempo[298] = 161.4375;
NotaTiempo[299] = 161.5625;
NotaTiempo[300] = 161.75;
NotaTiempo[301] = 161.875;
NotaTiempo[302] = 162.0625;
NotaTiempo[303] = 162.0625;
NotaTiempo[304] = 162.1875;
NotaTiempo[305] = 162.1875;
NotaTiempo[306] = 162.4375;
NotaTiempo[307] = 163.125;
NotaTiempo[308] = 163.125;
NotaTiempo[309] = 163.25;
NotaTiempo[310] = 163.25;
NotaTiempo[311] = 163.4375;
NotaTiempo[312] = 163.5625;
NotaTiempo[313] = 163.75;
NotaTiempo[314] = 163.875;
NotaTiempo[315] = 164.0625;
NotaTiempo[316] = 164.1875;
NotaTiempo[317] = 164.4375;
NotaTiempo[318] = 164.4375;
NotaTiempo[319] = 165.1875;
NotaTiempo[320] = 165.1875;
NotaTiempo[321] = 165.5;
NotaTiempo[322] = 166.9375;
NotaTiempo[323] = 167.125;
NotaTiempo[324] = 167.3125;
NotaTiempo[325] = 167.3125;
NotaTiempo[326] = 167.5;
NotaTiempo[327] = 167.5;
NotaTiempo[328] = 167.9375;
NotaTiempo[329] = 168.25;
NotaTiempo[330] = 168.5625;
NotaTiempo[331] = 168.9375;
NotaTiempo[332] = 169.3125;
NotaTiempo[333] = 169.3125;
NotaTiempo[334] = 169.8125;
NotaTiempo[335] = 170.625;
NotaTiempo[336] = 170.9375;
NotaTiempo[337] = 171.125;
NotaTiempo[338] = 171.3125;
NotaTiempo[339] = 171.5;
NotaTiempo[340] = 171.6875;
NotaTiempo[341] = 171.875;
NotaTiempo[342] = 172.0625;
NotaTiempo[343] = 172.25;
NotaTiempo[344] = 172.5625;
NotaTiempo[345] = 172.5625;
NotaTiempo[346] = 172.875;
NotaTiempo[347] = 173.6875;
NotaTiempo[348] = 174.0625;
NotaTiempo[349] = 174.25;
NotaTiempo[350] = 174.375;
NotaTiempo[351] = 174.5625;
NotaTiempo[352] = 174.75;
NotaTiempo[353] = 174.9375;
NotaTiempo[354] = 175.125;
NotaTiempo[355] = 175.3125;
NotaTiempo[356] = 175.5;
NotaTiempo[357] = 175.625;
NotaTiempo[358] = 175.8125;
NotaTiempo[359] = 176.0625;
NotaTiempo[360] = 176.0625;
NotaTiempo[361] = 176.5;
NotaTiempo[362] = 176.875;
NotaTiempo[363] = 176.875;
NotaTiempo[364] = 177.1875;
NotaTiempo[365] = 177.5;
NotaTiempo[366] = 177.5;
NotaTiempo[367] = 177.875;
NotaTiempo[368] = 178.3125;
NotaTiempo[369] = 178.4375;
NotaTiempo[370] = 178.6875;
NotaTiempo[371] = 178.6875;
NotaTiempo[372] = 179.0625;
NotaTiempo[373] = 179.3125;
NotaTiempo[374] = 179.3125;
NotaTiempo[375] = 179.625;
NotaTiempo[376] = 179.625;
NotaTiempo[377] = 180;
NotaTiempo[378] = 180;
NotaTiempo[379] = 180.375;
NotaTiempo[380] = 180.6875;
NotaTiempo[381] = 181.0625;
NotaTiempo[382] = 181.4375;
NotaTiempo[383] = 181.8125;
NotaTiempo[384] = 181.8125;
NotaTiempo[385] = 182.1875;
NotaTiempo[386] = 182.5;
NotaTiempo[387] = 182.5;
NotaTiempo[388] = 182.875;
NotaTiempo[389] = 183.25;
NotaTiempo[390] = 183.5625;
NotaTiempo[391] = 183.5625;
NotaTiempo[392] = 184;
NotaTiempo[393] = 184.25;
NotaTiempo[394] = 184.5625;
NotaTiempo[395] = 184.5625;
NotaTiempo[396] = 184.9375;
NotaTiempo[397] = 185.0625;
NotaTiempo[398] = 185.5625;
NotaTiempo[399] = 185.6875;
NotaTiempo[400] = 186.3125;
NotaTiempo[401] = 186.4375;
NotaTiempo[402] = -1;
}
public function NotasStarPower(_arg1:int):void{
if (_arg1 == 1){
easyStarPower();
} else {
if (_arg1 == 2){
mediumStarPower();
} else {
if (_arg1 == 3){
hardStarPower();
};
};
};
}
}
}//package
Section 199
//Song2 (Song2)
package {
public class Song2 {
public var NotaColorTotal:Array;
public var NotaTiempo:Array;
public var demora:Number;// = 0
public var LargoStar:Array;
public var NotaStarPower:Array;
public var NotaPressTotal:Array;
public var corrimientoInicial:Number;// = 350
public function Song2(){
NotaColorTotal = new Array();
NotaPressTotal = new Array();
NotaTiempo = new Array();
NotaStarPower = new Array();
LargoStar = new Array();
}
public function mediumStarPower(){
NotaStarPower[1] = 0;
NotaStarPower[2] = 0;
NotaStarPower[3] = 0;
NotaStarPower[4] = 0;
NotaStarPower[5] = 0;
NotaStarPower[6] = 0;
NotaStarPower[7] = 0;
NotaStarPower[8] = 0;
NotaStarPower[9] = 0;
NotaStarPower[10] = 0;
NotaStarPower[11] = 0;
NotaStarPower[12] = 0;
NotaStarPower[13] = 0;
NotaStarPower[14] = 0;
NotaStarPower[15] = 0;
NotaStarPower[16] = 0;
NotaStarPower[17] = 0;
NotaStarPower[18] = 0;
NotaStarPower[19] = 0;
NotaStarPower[20] = 0;
NotaStarPower[21] = 0;
NotaStarPower[22] = 0;
NotaStarPower[23] = 0;
NotaStarPower[24] = 0;
NotaStarPower[25] = 0;
NotaStarPower[26] = 0;
NotaStarPower[27] = 0;
NotaStarPower[28] = 0;
NotaStarPower[29] = 0;
NotaStarPower[30] = 1;
NotaStarPower[31] = 1;
NotaStarPower[32] = 1;
NotaStarPower[33] = 1;
NotaStarPower[34] = 1;
NotaStarPower[35] = 1;
NotaStarPower[36] = 1;
NotaStarPower[37] = 1;
NotaStarPower[38] = 1;
NotaStarPower[39] = 0;
NotaStarPower[40] = 0;
NotaStarPower[41] = 0;
NotaStarPower[42] = 0;
NotaStarPower[43] = 0;
NotaStarPower[44] = 0;
NotaStarPower[45] = 0;
NotaStarPower[46] = 0;
NotaStarPower[47] = 0;
NotaStarPower[48] = 0;
NotaStarPower[49] = 0;
NotaStarPower[50] = 0;
NotaStarPower[51] = 0;
NotaStarPower[52] = 0;
NotaStarPower[53] = 0;
NotaStarPower[54] = 0;
NotaStarPower[55] = 0;
NotaStarPower[56] = 0;
NotaStarPower[57] = 0;
NotaStarPower[58] = 0;
NotaStarPower[59] = 0;
NotaStarPower[60] = 0;
NotaStarPower[61] = 0;
NotaStarPower[62] = 0;
NotaStarPower[63] = 0;
NotaStarPower[64] = 0;
NotaStarPower[65] = 0;
NotaStarPower[66] = 0;
NotaStarPower[67] = 0;
NotaStarPower[68] = 0;
NotaStarPower[69] = 0;
NotaStarPower[70] = 0;
NotaStarPower[71] = 0;
NotaStarPower[72] = 0;
NotaStarPower[73] = 0;
NotaStarPower[74] = 0;
NotaStarPower[75] = 0;
NotaStarPower[76] = 0;
NotaStarPower[77] = 0;
NotaStarPower[78] = 0;
NotaStarPower[79] = 0;
NotaStarPower[80] = 0;
NotaStarPower[81] = 0;
NotaStarPower[82] = 0;
NotaStarPower[83] = 0;
NotaStarPower[84] = 0;
NotaStarPower[85] = 0;
NotaStarPower[86] = 0;
NotaStarPower[87] = 0;
NotaStarPower[88] = 0;
NotaStarPower[89] = 0;
NotaStarPower[90] = 0;
NotaStarPower[91] = 0;
NotaStarPower[92] = 1;
NotaStarPower[93] = 1;
NotaStarPower[94] = 1;
NotaStarPower[95] = 1;
NotaStarPower[96] = 1;
NotaStarPower[97] = 1;
NotaStarPower[98] = 0;
NotaStarPower[99] = 0;
NotaStarPower[100] = 0;
NotaStarPower[101] = 0;
NotaStarPower[102] = 0;
NotaStarPower[103] = 0;
NotaStarPower[104] = 0;
NotaStarPower[105] = 0;
NotaStarPower[106] = 0;
NotaStarPower[107] = 0;
NotaStarPower[108] = 0;
NotaStarPower[109] = 0;
NotaStarPower[110] = 0;
NotaStarPower[111] = 0;
NotaStarPower[112] = 0;
NotaStarPower[113] = 0;
NotaStarPower[114] = 0;
NotaStarPower[115] = 0;
NotaStarPower[116] = 0;
NotaStarPower[117] = 0;
NotaStarPower[118] = 0;
NotaStarPower[119] = 0;
NotaStarPower[120] = 0;
NotaStarPower[121] = 0;
NotaStarPower[122] = 0;
NotaStarPower[123] = 0;
NotaStarPower[124] = 0;
NotaStarPower[125] = 0;
NotaStarPower[126] = 0;
NotaStarPower[127] = 0;
NotaStarPower[128] = 0;
NotaStarPower[129] = 0;
NotaStarPower[130] = 0;
NotaStarPower[131] = 0;
NotaStarPower[132] = 0;
NotaStarPower[133] = 0;
NotaStarPower[134] = 0;
NotaStarPower[135] = 0;
NotaStarPower[136] = 0;
NotaStarPower[137] = 0;
NotaStarPower[138] = 0;
NotaStarPower[139] = 0;
NotaStarPower[140] = 0;
NotaStarPower[141] = 0;
NotaStarPower[142] = 0;
NotaStarPower[143] = 0;
NotaStarPower[144] = 0;
NotaStarPower[145] = 0;
NotaStarPower[146] = 1;
NotaStarPower[147] = 1;
NotaStarPower[148] = 1;
NotaStarPower[149] = 1;
NotaStarPower[150] = 1;
NotaStarPower[151] = 1;
NotaStarPower[152] = 1;
NotaStarPower[153] = 1;
NotaStarPower[154] = 1;
NotaStarPower[155] = 0;
NotaStarPower[156] = 0;
NotaStarPower[157] = 0;
NotaStarPower[158] = 0;
NotaStarPower[159] = 0;
NotaStarPower[160] = 0;
NotaStarPower[161] = 0;
NotaStarPower[162] = 0;
NotaStarPower[163] = 0;
NotaStarPower[164] = 0;
NotaStarPower[165] = 0;
NotaStarPower[166] = 0;
NotaStarPower[167] = 0;
NotaStarPower[168] = 0;
NotaStarPower[169] = 0;
NotaStarPower[170] = 0;
NotaStarPower[171] = 0;
NotaStarPower[172] = 0;
NotaStarPower[173] = 0;
NotaStarPower[174] = 0;
NotaStarPower[175] = 0;
NotaStarPower[176] = 0;
NotaStarPower[177] = 0;
NotaStarPower[178] = 0;
NotaStarPower[179] = 0;
NotaStarPower[180] = 0;
NotaStarPower[181] = 0;
NotaStarPower[182] = 0;
NotaStarPower[183] = 0;
NotaStarPower[184] = 0;
NotaStarPower[185] = 0;
NotaStarPower[186] = 0;
NotaStarPower[187] = 0;
NotaStarPower[188] = 0;
NotaStarPower[189] = 0;
NotaStarPower[190] = 0;
NotaStarPower[191] = 0;
NotaStarPower[192] = 1;
NotaStarPower[193] = 1;
NotaStarPower[194] = 1;
NotaStarPower[195] = 1;
NotaStarPower[196] = 1;
NotaStarPower[197] = 1;
NotaStarPower[198] = 1;
NotaStarPower[199] = 0;
NotaStarPower[200] = 0;
NotaStarPower[201] = 0;
NotaStarPower[202] = 0;
NotaStarPower[203] = 0;
NotaStarPower[204] = 0;
NotaStarPower[205] = 0;
NotaStarPower[206] = 0;
NotaStarPower[207] = 0;
NotaStarPower[208] = 0;
NotaStarPower[209] = 0;
NotaStarPower[210] = 0;
NotaStarPower[211] = 0;
NotaStarPower[212] = 0;
NotaStarPower[213] = 0;
NotaStarPower[214] = 0;
NotaStarPower[215] = 0;
NotaStarPower[216] = 0;
NotaStarPower[217] = 0;
NotaStarPower[218] = 0;
NotaStarPower[219] = 0;
NotaStarPower[220] = 0;
NotaStarPower[221] = 0;
NotaStarPower[222] = 0;
NotaStarPower[223] = 0;
NotaStarPower[224] = 0;
NotaStarPower[225] = 0;
NotaStarPower[226] = 0;
NotaStarPower[227] = 0;
NotaStarPower[228] = 0;
NotaStarPower[229] = 0;
NotaStarPower[230] = 0;
NotaStarPower[231] = 0;
NotaStarPower[232] = 1;
NotaStarPower[233] = 1;
NotaStarPower[234] = 1;
NotaStarPower[235] = 1;
NotaStarPower[236] = 1;
NotaStarPower[237] = 1;
NotaStarPower[238] = 1;
NotaStarPower[239] = 0;
NotaStarPower[240] = 0;
NotaStarPower[241] = 0;
NotaStarPower[242] = 0;
NotaStarPower[243] = 0;
NotaStarPower[244] = 0;
NotaStarPower[245] = 0;
NotaStarPower[246] = 0;
NotaStarPower[247] = 0;
NotaStarPower[248] = 0;
NotaStarPower[249] = 0;
NotaStarPower[250] = 0;
NotaStarPower[251] = 0;
NotaStarPower[252] = 0;
NotaStarPower[253] = 0;
NotaStarPower[254] = 0;
NotaStarPower[0xFF] = 0;
NotaStarPower[0x0100] = 0;
NotaStarPower[0x0101] = 0;
NotaStarPower[258] = 0;
NotaStarPower[259] = 0;
NotaStarPower[260] = 0;
NotaStarPower[261] = 0;
NotaStarPower[262] = 0;
NotaStarPower[263] = 0;
NotaStarPower[264] = 0;
NotaStarPower[265] = 0;
NotaStarPower[266] = 0;
NotaStarPower[267] = 0;
NotaStarPower[268] = 0;
NotaStarPower[269] = 0;
NotaStarPower[270] = 0;
NotaStarPower[271] = 0;
NotaStarPower[272] = 0;
NotaStarPower[273] = 0;
NotaStarPower[274] = 0;
NotaStarPower[275] = 0;
NotaStarPower[276] = 0;
NotaStarPower[277] = 0;
NotaStarPower[278] = 0;
NotaStarPower[279] = 0;
NotaStarPower[280] = 0;
NotaStarPower[281] = 0;
NotaStarPower[282] = 0;
NotaStarPower[283] = 0;
NotaStarPower[284] = 0;
NotaStarPower[285] = 0;
NotaStarPower[286] = 0;
NotaStarPower[287] = 0;
NotaStarPower[288] = 0;
NotaStarPower[289] = 0;
NotaStarPower[290] = 0;
NotaStarPower[291] = 0;
NotaStarPower[292] = 1;
NotaStarPower[293] = 1;
NotaStarPower[294] = 1;
NotaStarPower[295] = 1;
NotaStarPower[296] = 1;
NotaStarPower[297] = 1;
NotaStarPower[298] = 1;
NotaStarPower[299] = 1;
NotaStarPower[300] = 1;
NotaStarPower[301] = 0;
NotaStarPower[302] = 0;
NotaStarPower[303] = 0;
NotaStarPower[304] = 0;
NotaStarPower[305] = 0;
NotaStarPower[306] = 0;
NotaStarPower[307] = 0;
NotaStarPower[308] = 0;
NotaStarPower[309] = 0;
NotaStarPower[310] = 0;
NotaStarPower[311] = 0;
NotaStarPower[312] = 0;
NotaStarPower[313] = 0;
NotaStarPower[314] = 0;
NotaStarPower[315] = 0;
NotaStarPower[316] = 0;
NotaStarPower[317] = 0;
NotaStarPower[318] = 0;
NotaStarPower[319] = 0;
NotaStarPower[320] = 0;
NotaStarPower[321] = 0;
NotaStarPower[322] = 0;
NotaStarPower[323] = 0;
NotaStarPower[324] = 0;
NotaStarPower[325] = 0;
NotaStarPower[326] = 0;
NotaStarPower[327] = 0;
NotaStarPower[328] = 0;
NotaStarPower[329] = 1;
NotaStarPower[330] = 1;
NotaStarPower[331] = 1;
NotaStarPower[332] = 1;
NotaStarPower[333] = 1;
NotaStarPower[334] = 1;
NotaStarPower[335] = 1;
NotaStarPower[336] = 1;
NotaStarPower[337] = 1;
NotaStarPower[338] = 1;
NotaStarPower[339] = 0;
NotaStarPower[340] = 0;
NotaStarPower[341] = 0;
NotaStarPower[342] = 0;
NotaStarPower[343] = 0;
NotaStarPower[344] = 0;
NotaStarPower[345] = 0;
NotaStarPower[346] = 0;
NotaStarPower[347] = 0;
NotaStarPower[348] = 0;
NotaStarPower[349] = 0;
NotaStarPower[350] = 0;
NotaStarPower[351] = 0;
NotaStarPower[352] = 0;
NotaStarPower[353] = 0;
NotaStarPower[354] = 0;
NotaStarPower[355] = 0;
NotaStarPower[356] = 0;
NotaStarPower[357] = 0;
NotaStarPower[358] = 0;
NotaStarPower[359] = 0;
NotaStarPower[360] = 0;
NotaStarPower[361] = 0;
NotaStarPower[362] = 0;
NotaStarPower[363] = 0;
NotaStarPower[364] = 0;
NotaStarPower[365] = 0;
NotaStarPower[366] = 0;
NotaStarPower[367] = 0;
NotaStarPower[368] = 0;
NotaStarPower[369] = 0;
NotaStarPower[370] = 0;
NotaStarPower[371] = 0;
NotaStarPower[372] = 0;
NotaStarPower[373] = 0;
NotaStarPower[374] = 0;
NotaStarPower[375] = 0;
NotaStarPower[376] = 0;
NotaStarPower[377] = 0;
NotaStarPower[378] = 0;
NotaStarPower[379] = 0;
NotaStarPower[380] = 0;
NotaStarPower[381] = 0;
NotaStarPower[382] = 0;
NotaStarPower[383] = 0;
NotaStarPower[384] = 0;
NotaStarPower[385] = 0;
NotaStarPower[386] = 0;
NotaStarPower[387] = 0;
NotaStarPower[388] = 0;
NotaStarPower[389] = 0;
NotaStarPower[390] = 0;
NotaStarPower[391] = 0;
NotaStarPower[392] = 0;
NotaStarPower[393] = 0;
NotaStarPower[394] = 0;
NotaStarPower[395] = 0;
NotaStarPower[396] = 0;
NotaStarPower[397] = 0;
NotaStarPower[398] = 0;
NotaStarPower[399] = 0;
NotaStarPower[400] = 0;
NotaStarPower[401] = 0;
NotaStarPower[402] = 0;
NotaStarPower[403] = 0;
LargoStar[1] = 9;
LargoStar[2] = 6;
LargoStar[3] = 9;
LargoStar[4] = 7;
LargoStar[5] = 7;
LargoStar[6] = 9;
LargoStar[7] = 10;
}
public function mediumPress(){
NotaPressTotal[1] = 0;
NotaPressTotal[2] = 0;
NotaPressTotal[3] = 0;
NotaPressTotal[4] = 0;
NotaPressTotal[5] = 0;
NotaPressTotal[6] = 0;
NotaPressTotal[7] = 0;
NotaPressTotal[8] = 0;
NotaPressTotal[9] = 0;
NotaPressTotal[10] = 0;
NotaPressTotal[11] = 0;
NotaPressTotal[12] = 0;
NotaPressTotal[13] = 0;
NotaPressTotal[14] = 0;
NotaPressTotal[15] = 0;
NotaPressTotal[16] = 0;
NotaPressTotal[17] = 0;
NotaPressTotal[18] = 0;
NotaPressTotal[19] = 0.375;
NotaPressTotal[20] = 0;
NotaPressTotal[21] = 0;
NotaPressTotal[22] = 0;
NotaPressTotal[23] = 0;
NotaPressTotal[24] = 0;
NotaPressTotal[25] = 0;
NotaPressTotal[26] = 0;
NotaPressTotal[27] = 0;
NotaPressTotal[28] = 0;
NotaPressTotal[29] = 0;
NotaPressTotal[30] = 0;
NotaPressTotal[31] = 0;
NotaPressTotal[32] = 0;
NotaPressTotal[33] = 0;
NotaPressTotal[34] = 0;
NotaPressTotal[35] = 0;
NotaPressTotal[36] = 0;
NotaPressTotal[37] = 0;
NotaPressTotal[38] = 0.375;
NotaPressTotal[39] = 0.375;
NotaPressTotal[40] = 0.375;
NotaPressTotal[41] = 0.375;
NotaPressTotal[42] = 0.375;
NotaPressTotal[43] = 0.375;
NotaPressTotal[44] = 0.375;
NotaPressTotal[45] = 0.375;
NotaPressTotal[46] = 0.375;
NotaPressTotal[47] = 0.375;
NotaPressTotal[48] = 0.375;
NotaPressTotal[49] = 0.375;
NotaPressTotal[50] = 0.375;
NotaPressTotal[51] = 0.375;
NotaPressTotal[52] = 0.375;
NotaPressTotal[53] = 0.375;
NotaPressTotal[54] = 0.375;
NotaPressTotal[55] = 0.375;
NotaPressTotal[56] = 0.375;
NotaPressTotal[57] = 0.375;
NotaPressTotal[58] = 0.375;
NotaPressTotal[59] = 0.375;
NotaPressTotal[60] = 0.375;
NotaPressTotal[61] = 0.375;
NotaPressTotal[62] = 0.375;
NotaPressTotal[63] = 0;
NotaPressTotal[64] = 0;
NotaPressTotal[65] = 0;
NotaPressTotal[66] = 0;
NotaPressTotal[67] = 0;
NotaPressTotal[68] = 0;
NotaPressTotal[69] = 0;
NotaPressTotal[70] = 0;
NotaPressTotal[71] = 0;
NotaPressTotal[72] = 0;
NotaPressTotal[73] = 0;
NotaPressTotal[74] = 0;
NotaPressTotal[75] = 0;
NotaPressTotal[76] = 0.3125;
NotaPressTotal[77] = 0;
NotaPressTotal[78] = 0;
NotaPressTotal[79] = 0;
NotaPressTotal[80] = 0;
NotaPressTotal[81] = 0.375;
NotaPressTotal[82] = 0.375;
NotaPressTotal[83] = 0;
NotaPressTotal[84] = 0;
NotaPressTotal[85] = 0;
NotaPressTotal[86] = 0;
NotaPressTotal[87] = 0;
NotaPressTotal[88] = 0;
NotaPressTotal[89] = 0;
NotaPressTotal[90] = 0;
NotaPressTotal[91] = 0;
NotaPressTotal[92] = 0;
NotaPressTotal[93] = 0.3125;
NotaPressTotal[94] = 0;
NotaPressTotal[95] = 0;
NotaPressTotal[96] = 0;
NotaPressTotal[97] = 0.375;
NotaPressTotal[98] = 0.375;
NotaPressTotal[99] = 0.375;
NotaPressTotal[100] = 0.375;
NotaPressTotal[101] = 0.375;
NotaPressTotal[102] = 0.375;
NotaPressTotal[103] = 0.375;
NotaPressTotal[104] = 0.375;
NotaPressTotal[105] = 0.375;
NotaPressTotal[106] = 0.375;
NotaPressTotal[107] = 0.375;
NotaPressTotal[108] = 0.375;
NotaPressTotal[109] = 0.375;
NotaPressTotal[110] = 0.375;
NotaPressTotal[111] = 0;
NotaPressTotal[112] = 0;
NotaPressTotal[113] = 0;
NotaPressTotal[114] = 0;
NotaPressTotal[115] = 0;
NotaPressTotal[116] = 0;
NotaPressTotal[117] = 0;
NotaPressTotal[118] = 0;
NotaPressTotal[119] = 0;
NotaPressTotal[120] = 0;
NotaPressTotal[121] = 0;
NotaPressTotal[122] = 0.3125;
NotaPressTotal[123] = 0;
NotaPressTotal[124] = 0;
NotaPressTotal[125] = 0;
NotaPressTotal[126] = 0.375;
NotaPressTotal[127] = 0.375;
NotaPressTotal[128] = 0;
NotaPressTotal[129] = 0;
NotaPressTotal[130] = 0;
NotaPressTotal[131] = 0;
NotaPressTotal[132] = 0;
NotaPressTotal[133] = 0;
NotaPressTotal[134] = 0;
NotaPressTotal[135] = 0;
NotaPressTotal[136] = 0;
NotaPressTotal[137] = 0;
NotaPressTotal[138] = 0;
NotaPressTotal[139] = 0;
NotaPressTotal[140] = 0.3125;
NotaPressTotal[141] = 0;
NotaPressTotal[142] = 0;
NotaPressTotal[143] = 0;
NotaPressTotal[144] = 0.375;
NotaPressTotal[145] = 0.375;
NotaPressTotal[146] = 0;
NotaPressTotal[147] = 0;
NotaPressTotal[148] = 0.25;
NotaPressTotal[149] = 0;
NotaPressTotal[150] = 0;
NotaPressTotal[151] = 0;
NotaPressTotal[152] = 0;
NotaPressTotal[153] = 0;
NotaPressTotal[154] = 0;
NotaPressTotal[155] = 0;
NotaPressTotal[156] = 0;
NotaPressTotal[157] = 0.3125;
NotaPressTotal[158] = 0;
NotaPressTotal[159] = 0;
NotaPressTotal[160] = 0;
NotaPressTotal[161] = 0;
NotaPressTotal[162] = 0;
NotaPressTotal[163] = 0;
NotaPressTotal[164] = 0;
NotaPressTotal[165] = 0;
NotaPressTotal[166] = 0;
NotaPressTotal[167] = 0;
NotaPressTotal[168] = 0;
NotaPressTotal[169] = 0;
NotaPressTotal[170] = 0;
NotaPressTotal[171] = 0;
NotaPressTotal[172] = 0.4375;
NotaPressTotal[173] = 0.4375;
NotaPressTotal[174] = 0;
NotaPressTotal[175] = 0;
NotaPressTotal[176] = 0;
NotaPressTotal[177] = 0.375;
NotaPressTotal[178] = 0;
NotaPressTotal[179] = 0;
NotaPressTotal[180] = 0;
NotaPressTotal[181] = 0.3125;
NotaPressTotal[182] = 0.3125;
NotaPressTotal[183] = 0;
NotaPressTotal[184] = 0;
NotaPressTotal[185] = 0;
NotaPressTotal[186] = 0;
NotaPressTotal[187] = 0;
NotaPressTotal[188] = 0;
NotaPressTotal[189] = 0.4375;
NotaPressTotal[190] = 0.4375;
NotaPressTotal[191] = 0;
NotaPressTotal[192] = 0;
NotaPressTotal[193] = 0;
NotaPressTotal[194] = 0.375;
NotaPressTotal[195] = 0;
NotaPressTotal[196] = 0;
NotaPressTotal[197] = 0;
NotaPressTotal[198] = 0.3125;
NotaPressTotal[199] = 0.375;
NotaPressTotal[200] = 0.375;
NotaPressTotal[201] = 0.25;
NotaPressTotal[202] = 0.25;
NotaPressTotal[203] = 0;
NotaPressTotal[204] = 0;
NotaPressTotal[205] = 0;
NotaPressTotal[206] = 0;
NotaPressTotal[207] = 0;
NotaPressTotal[208] = 0;
NotaPressTotal[209] = 0;
NotaPressTotal[210] = 0;
NotaPressTotal[211] = 0.3125;
NotaPressTotal[212] = 0.3125;
NotaPressTotal[213] = 0;
NotaPressTotal[214] = 0;
NotaPressTotal[215] = 0;
NotaPressTotal[216] = 0;
NotaPressTotal[217] = 0.875;
NotaPressTotal[218] = 0.875;
NotaPressTotal[219] = 0;
NotaPressTotal[220] = 0;
NotaPressTotal[221] = 0;
NotaPressTotal[222] = 0;
NotaPressTotal[223] = 0;
NotaPressTotal[224] = 0;
NotaPressTotal[225] = 0;
NotaPressTotal[226] = 0;
NotaPressTotal[227] = 0;
NotaPressTotal[228] = 0;
NotaPressTotal[229] = 0;
NotaPressTotal[230] = 0.75;
NotaPressTotal[231] = 0.75;
NotaPressTotal[232] = 0;
NotaPressTotal[233] = 0;
NotaPressTotal[234] = 0;
NotaPressTotal[235] = 0;
NotaPressTotal[236] = 0.6875;
NotaPressTotal[237] = 0.3125;
NotaPressTotal[238] = 0.3125;
NotaPressTotal[239] = 0.4375;
NotaPressTotal[240] = 0.4375;
NotaPressTotal[241] = 0.4375;
NotaPressTotal[242] = 0.4375;
NotaPressTotal[243] = 0.4375;
NotaPressTotal[244] = 0.5;
NotaPressTotal[245] = 0.5;
NotaPressTotal[246] = 0.5;
NotaPressTotal[247] = 0.5;
NotaPressTotal[248] = 0.5;
NotaPressTotal[249] = 0.4375;
NotaPressTotal[250] = 0.5625;
NotaPressTotal[251] = 0.5625;
NotaPressTotal[252] = 0.375;
NotaPressTotal[253] = 0.4375;
NotaPressTotal[254] = 0.4375;
NotaPressTotal[0xFF] = 0.4375;
NotaPressTotal[0x0100] = 0.5;
NotaPressTotal[0x0101] = 0.5;
NotaPressTotal[258] = 0;
NotaPressTotal[259] = 0;
NotaPressTotal[260] = 0;
NotaPressTotal[261] = 0;
NotaPressTotal[262] = 0;
NotaPressTotal[263] = 0;
NotaPressTotal[264] = 0;
NotaPressTotal[265] = 0;
NotaPressTotal[266] = 0;
NotaPressTotal[267] = 0;
NotaPressTotal[268] = 0;
NotaPressTotal[269] = 0;
NotaPressTotal[270] = 0;
NotaPressTotal[271] = 0;
NotaPressTotal[272] = 0;
NotaPressTotal[273] = 0;
NotaPressTotal[274] = 1.25;
NotaPressTotal[275] = 0;
NotaPressTotal[276] = 0;
NotaPressTotal[277] = 0;
NotaPressTotal[278] = 0;
NotaPressTotal[279] = 0;
NotaPressTotal[280] = 0;
NotaPressTotal[281] = 0;
NotaPressTotal[282] = 0;
NotaPressTotal[283] = 0;
NotaPressTotal[284] = 0;
NotaPressTotal[285] = 0;
NotaPressTotal[286] = 0.3125;
NotaPressTotal[287] = 0;
NotaPressTotal[288] = 0;
NotaPressTotal[289] = 0;
NotaPressTotal[290] = 0.4375;
NotaPressTotal[291] = 0.4375;
NotaPressTotal[292] = 0;
NotaPressTotal[293] = 0;
NotaPressTotal[294] = 0;
NotaPressTotal[295] = 0;
NotaPressTotal[296] = 0;
NotaPressTotal[297] = 0;
NotaPressTotal[298] = 0;
NotaPressTotal[299] = 0;
NotaPressTotal[300] = 0;
NotaPressTotal[301] = 0;
NotaPressTotal[302] = 0;
NotaPressTotal[303] = 0.3125;
NotaPressTotal[304] = 0.3125;
NotaPressTotal[305] = 0;
NotaPressTotal[306] = 0;
NotaPressTotal[307] = 0;
NotaPressTotal[308] = 0.375;
NotaPressTotal[309] = 0.375;
NotaPressTotal[310] = 0;
NotaPressTotal[311] = 0;
NotaPressTotal[312] = 0.25;
NotaPressTotal[313] = 0;
NotaPressTotal[314] = 0;
NotaPressTotal[315] = 0;
NotaPressTotal[316] = 0;
NotaPressTotal[317] = 0;
NotaPressTotal[318] = 0;
NotaPressTotal[319] = 0;
NotaPressTotal[320] = 0;
NotaPressTotal[321] = 0;
NotaPressTotal[322] = 0.3125;
NotaPressTotal[323] = 0;
NotaPressTotal[324] = 0;
NotaPressTotal[325] = 0;
NotaPressTotal[326] = 0;
NotaPressTotal[327] = 0;
NotaPressTotal[328] = 0;
NotaPressTotal[329] = 0;
NotaPressTotal[330] = 0;
NotaPressTotal[331] = 0;
NotaPressTotal[332] = 0;
NotaPressTotal[333] = 0;
NotaPressTotal[334] = 0;
NotaPressTotal[335] = 0;
NotaPressTotal[336] = 0;
NotaPressTotal[337] = 0.4375;
NotaPressTotal[338] = 0.4375;
NotaPressTotal[339] = 0;
NotaPressTotal[340] = 0;
NotaPressTotal[341] = 0;
NotaPressTotal[342] = 0.375;
NotaPressTotal[343] = 0.375;
NotaPressTotal[344] = 0;
NotaPressTotal[345] = 0;
NotaPressTotal[346] = 0;
NotaPressTotal[347] = 0.3125;
NotaPressTotal[348] = 0.3125;
NotaPressTotal[349] = 0.3125;
NotaPressTotal[350] = 0;
NotaPressTotal[351] = 0;
NotaPressTotal[352] = 0;
NotaPressTotal[353] = 0;
NotaPressTotal[354] = 0;
NotaPressTotal[355] = 0;
NotaPressTotal[356] = 0;
NotaPressTotal[357] = 0.4375;
NotaPressTotal[358] = 0.4375;
NotaPressTotal[359] = 0;
NotaPressTotal[360] = 0;
NotaPressTotal[361] = 0;
NotaPressTotal[362] = 0.3125;
NotaPressTotal[363] = 0;
NotaPressTotal[364] = 0;
NotaPressTotal[365] = 0;
NotaPressTotal[366] = 0.3125;
NotaPressTotal[367] = 0.3125;
NotaPressTotal[368] = 0;
NotaPressTotal[369] = 0;
NotaPressTotal[370] = 0.3125;
NotaPressTotal[371] = 0.3125;
NotaPressTotal[372] = 0;
NotaPressTotal[373] = 0;
NotaPressTotal[374] = 0.3125;
NotaPressTotal[375] = 0.3125;
NotaPressTotal[376] = 0;
NotaPressTotal[377] = 0;
NotaPressTotal[378] = 0.3125;
NotaPressTotal[379] = 0.3125;
NotaPressTotal[380] = 0;
NotaPressTotal[381] = 0;
NotaPressTotal[382] = 0.3125;
NotaPressTotal[383] = 0.3125;
NotaPressTotal[384] = 0;
NotaPressTotal[385] = 0;
NotaPressTotal[386] = 0.3125;
NotaPressTotal[387] = 0.3125;
NotaPressTotal[388] = 0;
NotaPressTotal[389] = 0;
NotaPressTotal[390] = 0.3125;
NotaPressTotal[391] = 0.3125;
NotaPressTotal[392] = 0;
NotaPressTotal[393] = 0;
NotaPressTotal[394] = 0.3125;
NotaPressTotal[395] = 0.3125;
NotaPressTotal[396] = 0;
NotaPressTotal[397] = 0;
NotaPressTotal[398] = 0.3125;
NotaPressTotal[399] = 0.3125;
NotaPressTotal[400] = 0;
NotaPressTotal[401] = 0;
NotaPressTotal[402] = 0.5;
NotaPressTotal[403] = 0.5;
}
public function hardPress(){
NotaPressTotal[1] = 0;
NotaPressTotal[2] = 0;
NotaPressTotal[3] = 0;
NotaPressTotal[4] = 0;
NotaPressTotal[5] = 0;
NotaPressTotal[6] = 0;
NotaPressTotal[7] = 0;
NotaPressTotal[8] = 0;
NotaPressTotal[9] = 0;
NotaPressTotal[10] = 0;
NotaPressTotal[11] = 0;
NotaPressTotal[12] = 0;
NotaPressTotal[13] = 0;
NotaPressTotal[14] = 0;
NotaPressTotal[15] = 0;
NotaPressTotal[16] = 0;
NotaPressTotal[17] = 0;
NotaPressTotal[18] = 0;
NotaPressTotal[19] = 0;
NotaPressTotal[20] = 0;
NotaPressTotal[21] = 0.375;
NotaPressTotal[22] = 0;
NotaPressTotal[23] = 0;
NotaPressTotal[24] = 0;
NotaPressTotal[25] = 0;
NotaPressTotal[26] = 0;
NotaPressTotal[27] = 0;
NotaPressTotal[28] = 0;
NotaPressTotal[29] = 0;
NotaPressTotal[30] = 0;
NotaPressTotal[31] = 0;
NotaPressTotal[32] = 0;
NotaPressTotal[33] = 0;
NotaPressTotal[34] = 0;
NotaPressTotal[35] = 0;
NotaPressTotal[36] = 0;
NotaPressTotal[37] = 0;
NotaPressTotal[38] = 0;
NotaPressTotal[39] = 0;
NotaPressTotal[40] = 0;
NotaPressTotal[41] = 0;
NotaPressTotal[42] = 0.375;
NotaPressTotal[43] = 0.4375;
NotaPressTotal[44] = 0.4375;
NotaPressTotal[45] = 0.375;
NotaPressTotal[46] = 0.375;
NotaPressTotal[47] = 0.375;
NotaPressTotal[48] = 0.375;
NotaPressTotal[49] = 0.375;
NotaPressTotal[50] = 0.375;
NotaPressTotal[51] = 0.375;
NotaPressTotal[52] = 0.375;
NotaPressTotal[53] = 0.375;
NotaPressTotal[54] = 0.375;
NotaPressTotal[55] = 0.375;
NotaPressTotal[56] = 0.375;
NotaPressTotal[57] = 0.375;
NotaPressTotal[58] = 0.375;
NotaPressTotal[59] = 0.375;
NotaPressTotal[60] = 0.375;
NotaPressTotal[61] = 0.375;
NotaPressTotal[62] = 0.375;
NotaPressTotal[63] = 0.375;
NotaPressTotal[64] = 0.375;
NotaPressTotal[65] = 0.375;
NotaPressTotal[66] = 0.375;
NotaPressTotal[67] = 0;
NotaPressTotal[68] = 0;
NotaPressTotal[69] = 0;
NotaPressTotal[70] = 0;
NotaPressTotal[71] = 0;
NotaPressTotal[72] = 0;
NotaPressTotal[73] = 0;
NotaPressTotal[74] = 0;
NotaPressTotal[75] = 0;
NotaPressTotal[76] = 0;
NotaPressTotal[77] = 0;
NotaPressTotal[78] = 0;
NotaPressTotal[79] = 0;
NotaPressTotal[80] = 0;
NotaPressTotal[81] = 0.3125;
NotaPressTotal[82] = 0;
NotaPressTotal[83] = 0;
NotaPressTotal[84] = 0;
NotaPressTotal[85] = 0;
NotaPressTotal[86] = 0.375;
NotaPressTotal[87] = 0.375;
NotaPressTotal[88] = 0;
NotaPressTotal[89] = 0;
NotaPressTotal[90] = 0;
NotaPressTotal[91] = 0;
NotaPressTotal[92] = 0;
NotaPressTotal[93] = 0;
NotaPressTotal[94] = 0;
NotaPressTotal[95] = 0;
NotaPressTotal[96] = 0;
NotaPressTotal[97] = 0;
NotaPressTotal[98] = 0.3125;
NotaPressTotal[99] = 0;
NotaPressTotal[100] = 0;
NotaPressTotal[101] = 0;
NotaPressTotal[102] = 0.375;
NotaPressTotal[103] = 0.375;
NotaPressTotal[104] = 0.375;
NotaPressTotal[105] = 0.375;
NotaPressTotal[106] = 0.375;
NotaPressTotal[107] = 0.375;
NotaPressTotal[108] = 0.375;
NotaPressTotal[109] = 0.375;
NotaPressTotal[110] = 0.375;
NotaPressTotal[111] = 0.375;
NotaPressTotal[112] = 0.375;
NotaPressTotal[113] = 0.375;
NotaPressTotal[114] = 0.375;
NotaPressTotal[115] = 0.375;
NotaPressTotal[116] = 0;
NotaPressTotal[117] = 0;
NotaPressTotal[118] = 0;
NotaPressTotal[119] = 0;
NotaPressTotal[120] = 0;
NotaPressTotal[121] = 0;
NotaPressTotal[122] = 0;
NotaPressTotal[123] = 0;
NotaPressTotal[124] = 0;
NotaPressTotal[125] = 0;
NotaPressTotal[126] = 0;
NotaPressTotal[127] = 0;
NotaPressTotal[128] = 0.3125;
NotaPressTotal[129] = 0;
NotaPressTotal[130] = 0;
NotaPressTotal[131] = 0;
NotaPressTotal[132] = 0.375;
NotaPressTotal[133] = 0.375;
NotaPressTotal[134] = 0;
NotaPressTotal[135] = 0;
NotaPressTotal[136] = 0;
NotaPressTotal[137] = 0;
NotaPressTotal[138] = 0;
NotaPressTotal[139] = 0;
NotaPressTotal[140] = 0;
NotaPressTotal[141] = 0;
NotaPressTotal[142] = 0;
NotaPressTotal[143] = 0;
NotaPressTotal[144] = 0;
NotaPressTotal[145] = 0;
NotaPressTotal[146] = 0;
NotaPressTotal[147] = 0.3125;
NotaPressTotal[148] = 0;
NotaPressTotal[149] = 0;
NotaPressTotal[150] = 0;
NotaPressTotal[151] = 0.375;
NotaPressTotal[152] = 0.375;
NotaPressTotal[153] = 0;
NotaPressTotal[154] = 0;
NotaPressTotal[155] = 0.25;
NotaPressTotal[156] = 0;
NotaPressTotal[157] = 0;
NotaPressTotal[158] = 0;
NotaPressTotal[159] = 0;
NotaPressTotal[160] = 0;
NotaPressTotal[161] = 0;
NotaPressTotal[162] = 0;
NotaPressTotal[163] = 0;
NotaPressTotal[164] = 0.3125;
NotaPressTotal[165] = 0;
NotaPressTotal[166] = 0;
NotaPressTotal[167] = 0;
NotaPressTotal[168] = 0;
NotaPressTotal[169] = 0;
NotaPressTotal[170] = 0;
NotaPressTotal[171] = 0;
NotaPressTotal[172] = 0;
NotaPressTotal[173] = 0;
NotaPressTotal[174] = 0;
NotaPressTotal[175] = 0;
NotaPressTotal[176] = 0;
NotaPressTotal[177] = 0;
NotaPressTotal[178] = 0;
NotaPressTotal[179] = 0.4375;
NotaPressTotal[180] = 0.4375;
NotaPressTotal[181] = 0;
NotaPressTotal[182] = 0;
NotaPressTotal[183] = 0;
NotaPressTotal[184] = 0.375;
NotaPressTotal[185] = 0.375;
NotaPressTotal[186] = 0;
NotaPressTotal[187] = 0;
NotaPressTotal[188] = 0;
NotaPressTotal[189] = 0.3125;
NotaPressTotal[190] = 0.3125;
NotaPressTotal[191] = 0;
NotaPressTotal[192] = 0;
NotaPressTotal[193] = 0;
NotaPressTotal[194] = 0;
NotaPressTotal[195] = 0;
NotaPressTotal[196] = 0;
NotaPressTotal[197] = 0;
NotaPressTotal[198] = 0;
NotaPressTotal[199] = 0.4375;
NotaPressTotal[200] = 0.4375;
NotaPressTotal[201] = 0;
NotaPressTotal[202] = 0;
NotaPressTotal[203] = 0;
NotaPressTotal[204] = 0.375;
NotaPressTotal[205] = 0.375;
NotaPressTotal[206] = 0;
NotaPressTotal[207] = 0;
NotaPressTotal[208] = 0;
NotaPressTotal[209] = 0.3125;
NotaPressTotal[210] = 0.375;
NotaPressTotal[211] = 0.375;
NotaPressTotal[212] = 0.25;
NotaPressTotal[213] = 0.25;
NotaPressTotal[214] = 0;
NotaPressTotal[215] = 0;
NotaPressTotal[216] = 0;
NotaPressTotal[217] = 0;
NotaPressTotal[218] = 0;
NotaPressTotal[219] = 0;
NotaPressTotal[220] = 0;
NotaPressTotal[221] = 0;
NotaPressTotal[222] = 0.3125;
NotaPressTotal[223] = 0.3125;
NotaPressTotal[224] = 0;
NotaPressTotal[225] = 0;
NotaPressTotal[226] = 0;
NotaPressTotal[227] = 0;
NotaPressTotal[228] = 0.875;
NotaPressTotal[229] = 0.875;
NotaPressTotal[230] = 0;
NotaPressTotal[231] = 0;
NotaPressTotal[232] = 0;
NotaPressTotal[233] = 0;
NotaPressTotal[234] = 0;
NotaPressTotal[235] = 0;
NotaPressTotal[236] = 0;
NotaPressTotal[237] = 0;
NotaPressTotal[238] = 0;
NotaPressTotal[239] = 0;
NotaPressTotal[240] = 0;
NotaPressTotal[241] = 0.75;
NotaPressTotal[242] = 0.75;
NotaPressTotal[243] = 0;
NotaPressTotal[244] = 0;
NotaPressTotal[245] = 0;
NotaPressTotal[246] = 0;
NotaPressTotal[247] = 0.75;
NotaPressTotal[248] = 0.3125;
NotaPressTotal[249] = 0.3125;
NotaPressTotal[250] = 0;
NotaPressTotal[251] = 0;
NotaPressTotal[252] = 0;
NotaPressTotal[253] = 0;
NotaPressTotal[254] = 0;
NotaPressTotal[0xFF] = 0;
NotaPressTotal[0x0100] = 0;
NotaPressTotal[0x0101] = 0;
NotaPressTotal[258] = 0.375;
NotaPressTotal[259] = 0.375;
NotaPressTotal[260] = 0;
NotaPressTotal[261] = 0;
NotaPressTotal[262] = 0;
NotaPressTotal[263] = 0;
NotaPressTotal[264] = 0;
NotaPressTotal[265] = 0;
NotaPressTotal[266] = 0;
NotaPressTotal[267] = 0;
NotaPressTotal[268] = 0;
NotaPressTotal[269] = 0;
NotaPressTotal[270] = 0;
NotaPressTotal[271] = 0;
NotaPressTotal[272] = 0.4375;
NotaPressTotal[273] = 0.4375;
NotaPressTotal[274] = 0.5625;
NotaPressTotal[275] = 0.5625;
NotaPressTotal[276] = 0;
NotaPressTotal[277] = 0;
NotaPressTotal[278] = 0;
NotaPressTotal[279] = 0;
NotaPressTotal[280] = 0;
NotaPressTotal[281] = 0;
NotaPressTotal[282] = 0;
NotaPressTotal[283] = 0;
NotaPressTotal[284] = 0;
NotaPressTotal[285] = 0;
NotaPressTotal[286] = 0;
NotaPressTotal[287] = 0;
NotaPressTotal[288] = 0;
NotaPressTotal[289] = 0;
NotaPressTotal[290] = 0;
NotaPressTotal[291] = 0;
NotaPressTotal[292] = 0;
NotaPressTotal[293] = 0;
NotaPressTotal[294] = 0;
NotaPressTotal[295] = 0;
NotaPressTotal[296] = 0;
NotaPressTotal[297] = 0;
NotaPressTotal[298] = 0;
NotaPressTotal[299] = 0;
NotaPressTotal[300] = 0;
NotaPressTotal[301] = 0;
NotaPressTotal[302] = 0;
NotaPressTotal[303] = 0;
NotaPressTotal[304] = 0;
NotaPressTotal[305] = 0;
NotaPressTotal[306] = 0;
NotaPressTotal[307] = 0;
NotaPressTotal[308] = 0;
NotaPressTotal[309] = 1.25;
NotaPressTotal[310] = 0;
NotaPressTotal[311] = 0;
NotaPressTotal[312] = 0;
NotaPressTotal[313] = 0;
NotaPressTotal[314] = 0;
NotaPressTotal[315] = 0;
NotaPressTotal[316] = 0;
NotaPressTotal[317] = 0;
NotaPressTotal[318] = 0;
NotaPressTotal[319] = 0;
NotaPressTotal[320] = 0;
NotaPressTotal[321] = 0;
NotaPressTotal[322] = 0.3125;
NotaPressTotal[323] = 0;
NotaPressTotal[324] = 0;
NotaPressTotal[325] = 0;
NotaPressTotal[326] = 0.4375;
NotaPressTotal[327] = 0.4375;
NotaPressTotal[328] = 0;
NotaPressTotal[329] = 0;
NotaPressTotal[330] = 0;
NotaPressTotal[331] = 0;
NotaPressTotal[332] = 0;
NotaPressTotal[333] = 0;
NotaPressTotal[334] = 0;
NotaPressTotal[335] = 0;
NotaPressTotal[336] = 0;
NotaPressTotal[337] = 0;
NotaPressTotal[338] = 0;
NotaPressTotal[339] = 0;
NotaPressTotal[340] = 0.3125;
NotaPressTotal[341] = 0.3125;
NotaPressTotal[342] = 0;
NotaPressTotal[343] = 0;
NotaPressTotal[344] = 0;
NotaPressTotal[345] = 0.375;
NotaPressTotal[346] = 0.375;
NotaPressTotal[347] = 0;
NotaPressTotal[348] = 0;
NotaPressTotal[349] = 0.25;
NotaPressTotal[350] = 0.25;
NotaPressTotal[351] = 0;
NotaPressTotal[352] = 0;
NotaPressTotal[353] = 0;
NotaPressTotal[354] = 0;
NotaPressTotal[355] = 0;
NotaPressTotal[356] = 0;
NotaPressTotal[357] = 0;
NotaPressTotal[358] = 0;
NotaPressTotal[359] = 0;
NotaPressTotal[360] = 0.3125;
NotaPressTotal[361] = 0.3125;
NotaPressTotal[362] = 0;
NotaPressTotal[363] = 0;
NotaPressTotal[364] = 0;
NotaPressTotal[365] = 0;
NotaPressTotal[366] = 0;
NotaPressTotal[367] = 0;
NotaPressTotal[368] = 0;
NotaPressTotal[369] = 0;
NotaPressTotal[370] = 0;
NotaPressTotal[371] = 0;
NotaPressTotal[372] = 0;
NotaPressTotal[373] = 0;
NotaPressTotal[374] = 0;
NotaPressTotal[375] = 0;
NotaPressTotal[376] = 0;
NotaPressTotal[377] = 0.4375;
NotaPressTotal[378] = 0.4375;
NotaPressTotal[379] = 0;
NotaPressTotal[380] = 0;
NotaPressTotal[381] = 0;
NotaPressTotal[382] = 0.375;
NotaPressTotal[383] = 0.375;
NotaPressTotal[384] = 0;
NotaPressTotal[385] = 0;
NotaPressTotal[386] = 0;
NotaPressTotal[387] = 0.3125;
NotaPressTotal[388] = 0.3125;
NotaPressTotal[389] = 0.3125;
NotaPressTotal[390] = 0;
NotaPressTotal[391] = 0;
NotaPressTotal[392] = 0;
NotaPressTotal[393] = 0;
NotaPressTotal[394] = 0;
NotaPressTotal[395] = 0;
NotaPressTotal[396] = 0;
NotaPressTotal[397] = 0.4375;
NotaPressTotal[398] = 0.4375;
NotaPressTotal[399] = 0;
NotaPressTotal[400] = 0;
NotaPressTotal[401] = 0;
NotaPressTotal[402] = 0.3125;
NotaPressTotal[403] = 0;
NotaPressTotal[404] = 0;
NotaPressTotal[405] = 0;
NotaPressTotal[406] = 0;
NotaPressTotal[407] = 0.3125;
NotaPressTotal[408] = 0.3125;
NotaPressTotal[409] = 0;
NotaPressTotal[410] = 0;
NotaPressTotal[411] = 0.4375;
NotaPressTotal[412] = 0.4375;
NotaPressTotal[413] = 0;
NotaPressTotal[414] = 0;
NotaPressTotal[415] = 0.375;
NotaPressTotal[416] = 0.375;
NotaPressTotal[417] = 0;
NotaPressTotal[418] = 0;
NotaPressTotal[419] = 0.375;
NotaPressTotal[420] = 0.375;
NotaPressTotal[421] = 0;
NotaPressTotal[422] = 0;
NotaPressTotal[423] = 0.375;
NotaPressTotal[424] = 0.375;
NotaPressTotal[425] = 0;
NotaPressTotal[426] = 0;
NotaPressTotal[427] = 0.3125;
NotaPressTotal[428] = 0.3125;
NotaPressTotal[429] = 0;
NotaPressTotal[430] = 0;
NotaPressTotal[431] = 0.3125;
NotaPressTotal[432] = 0.3125;
NotaPressTotal[433] = 0;
NotaPressTotal[434] = 0;
NotaPressTotal[435] = 0.3125;
NotaPressTotal[436] = 0.3125;
NotaPressTotal[437] = 0;
NotaPressTotal[438] = 0;
NotaPressTotal[439] = 0.3125;
NotaPressTotal[440] = 0.3125;
NotaPressTotal[441] = 0;
NotaPressTotal[442] = 0;
NotaPressTotal[443] = 0.5;
NotaPressTotal[444] = 0.5;
}
public function mediumColores(){
NotaColorTotal[1] = 0;
NotaColorTotal[2] = 1;
NotaColorTotal[3] = 0;
NotaColorTotal[4] = 1;
NotaColorTotal[5] = 0;
NotaColorTotal[6] = 1;
NotaColorTotal[7] = 0;
NotaColorTotal[8] = 1;
NotaColorTotal[9] = 3;
NotaColorTotal[10] = 3;
NotaColorTotal[11] = 0;
NotaColorTotal[12] = 1;
NotaColorTotal[13] = 0;
NotaColorTotal[14] = 1;
NotaColorTotal[15] = 0;
NotaColorTotal[16] = 1;
NotaColorTotal[17] = 0;
NotaColorTotal[18] = 1;
NotaColorTotal[19] = 0;
NotaColorTotal[20] = 0;
NotaColorTotal[21] = 1;
NotaColorTotal[22] = 0;
NotaColorTotal[23] = 1;
NotaColorTotal[24] = 0;
NotaColorTotal[25] = 1;
NotaColorTotal[26] = 0;
NotaColorTotal[27] = 1;
NotaColorTotal[28] = 3;
NotaColorTotal[29] = 3;
NotaColorTotal[30] = 0;
NotaColorTotal[31] = 1;
NotaColorTotal[32] = 0;
NotaColorTotal[33] = 1;
NotaColorTotal[34] = 0;
NotaColorTotal[35] = 1;
NotaColorTotal[36] = 0;
NotaColorTotal[37] = 1;
NotaColorTotal[38] = 0;
NotaColorTotal[39] = 2;
NotaColorTotal[40] = 3;
NotaColorTotal[41] = 1;
NotaColorTotal[42] = 2;
NotaColorTotal[43] = 3;
NotaColorTotal[44] = 1;
NotaColorTotal[45] = 2;
NotaColorTotal[46] = 3;
NotaColorTotal[47] = 1;
NotaColorTotal[48] = 2;
NotaColorTotal[49] = 3;
NotaColorTotal[50] = 1;
NotaColorTotal[51] = 2;
NotaColorTotal[52] = 3;
NotaColorTotal[53] = 1;
NotaColorTotal[54] = 2;
NotaColorTotal[55] = 3;
NotaColorTotal[56] = 1;
NotaColorTotal[57] = 2;
NotaColorTotal[58] = 3;
NotaColorTotal[59] = 1;
NotaColorTotal[60] = 2;
NotaColorTotal[61] = 3;
NotaColorTotal[62] = 1;
NotaColorTotal[63] = 3;
NotaColorTotal[64] = 1;
NotaColorTotal[65] = 2;
NotaColorTotal[66] = 1;
NotaColorTotal[67] = 0;
NotaColorTotal[68] = 2;
NotaColorTotal[69] = 3;
NotaColorTotal[70] = 1;
NotaColorTotal[71] = 3;
NotaColorTotal[72] = 1;
NotaColorTotal[73] = 2;
NotaColorTotal[74] = 3;
NotaColorTotal[75] = 3;
NotaColorTotal[76] = 3;
NotaColorTotal[77] = 1;
NotaColorTotal[78] = 2;
NotaColorTotal[79] = 3;
NotaColorTotal[80] = 2;
NotaColorTotal[81] = 0;
NotaColorTotal[82] = 1;
NotaColorTotal[83] = 2;
NotaColorTotal[84] = 1;
NotaColorTotal[85] = 1;
NotaColorTotal[86] = 0;
NotaColorTotal[87] = 2;
NotaColorTotal[88] = 1;
NotaColorTotal[89] = 2;
NotaColorTotal[90] = 0;
NotaColorTotal[91] = 3;
NotaColorTotal[92] = 1;
NotaColorTotal[93] = 0;
NotaColorTotal[94] = 2;
NotaColorTotal[95] = 3;
NotaColorTotal[96] = 1;
NotaColorTotal[97] = 0;
NotaColorTotal[98] = 1;
NotaColorTotal[99] = 2;
NotaColorTotal[100] = 3;
NotaColorTotal[101] = 1;
NotaColorTotal[102] = 2;
NotaColorTotal[103] = 3;
NotaColorTotal[104] = 1;
NotaColorTotal[105] = 2;
NotaColorTotal[106] = 3;
NotaColorTotal[107] = 1;
NotaColorTotal[108] = 2;
NotaColorTotal[109] = 3;
NotaColorTotal[110] = 1;
NotaColorTotal[111] = 3;
NotaColorTotal[112] = 1;
NotaColorTotal[113] = 2;
NotaColorTotal[114] = 1;
NotaColorTotal[115] = 0;
NotaColorTotal[116] = 2;
NotaColorTotal[117] = 1;
NotaColorTotal[118] = 3;
NotaColorTotal[119] = 2;
NotaColorTotal[120] = 3;
NotaColorTotal[121] = 3;
NotaColorTotal[122] = 3;
NotaColorTotal[123] = 1;
NotaColorTotal[124] = 2;
NotaColorTotal[125] = 1;
NotaColorTotal[126] = 0;
NotaColorTotal[127] = 2;
NotaColorTotal[128] = 2;
NotaColorTotal[129] = 3;
NotaColorTotal[130] = 2;
NotaColorTotal[131] = 1;
NotaColorTotal[132] = 0;
NotaColorTotal[133] = 2;
NotaColorTotal[134] = 1;
NotaColorTotal[135] = 3;
NotaColorTotal[136] = 0;
NotaColorTotal[137] = 2;
NotaColorTotal[138] = 3;
NotaColorTotal[139] = 1;
NotaColorTotal[140] = 0;
NotaColorTotal[141] = 0;
NotaColorTotal[142] = 2;
NotaColorTotal[143] = 1;
NotaColorTotal[144] = 0;
NotaColorTotal[145] = 1;
NotaColorTotal[146] = 3;
NotaColorTotal[147] = 3;
NotaColorTotal[148] = 3;
NotaColorTotal[149] = 1;
NotaColorTotal[150] = 2;
NotaColorTotal[151] = 1;
NotaColorTotal[152] = 2;
NotaColorTotal[153] = 3;
NotaColorTotal[154] = 0;
NotaColorTotal[155] = 3;
NotaColorTotal[156] = 3;
NotaColorTotal[157] = 3;
NotaColorTotal[158] = 1;
NotaColorTotal[159] = 2;
NotaColorTotal[160] = 3;
NotaColorTotal[161] = 1;
NotaColorTotal[162] = 2;
NotaColorTotal[163] = 0;
NotaColorTotal[164] = 1;
NotaColorTotal[165] = 3;
NotaColorTotal[166] = 3;
NotaColorTotal[167] = 3;
NotaColorTotal[168] = 1;
NotaColorTotal[169] = 2;
NotaColorTotal[170] = 3;
NotaColorTotal[171] = 1;
NotaColorTotal[172] = 0;
NotaColorTotal[173] = 1;
NotaColorTotal[174] = 0;
NotaColorTotal[175] = 2;
NotaColorTotal[176] = 1;
NotaColorTotal[177] = 3;
NotaColorTotal[178] = 1;
NotaColorTotal[179] = 1;
NotaColorTotal[180] = 2;
NotaColorTotal[181] = 1;
NotaColorTotal[182] = 3;
NotaColorTotal[183] = 3;
NotaColorTotal[184] = 3;
NotaColorTotal[185] = 1;
NotaColorTotal[186] = 2;
NotaColorTotal[187] = 3;
NotaColorTotal[188] = 1;
NotaColorTotal[189] = 0;
NotaColorTotal[190] = 1;
NotaColorTotal[191] = 0;
NotaColorTotal[192] = 2;
NotaColorTotal[193] = 1;
NotaColorTotal[194] = 3;
NotaColorTotal[195] = 1;
NotaColorTotal[196] = 1;
NotaColorTotal[197] = 2;
NotaColorTotal[198] = 1;
NotaColorTotal[199] = 0;
NotaColorTotal[200] = 2;
NotaColorTotal[201] = 1;
NotaColorTotal[202] = 3;
NotaColorTotal[203] = 0;
NotaColorTotal[204] = 1;
NotaColorTotal[205] = 2;
NotaColorTotal[206] = 1;
NotaColorTotal[207] = 3;
NotaColorTotal[208] = 1;
NotaColorTotal[209] = 0;
NotaColorTotal[210] = 1;
NotaColorTotal[211] = 2;
NotaColorTotal[212] = 3;
NotaColorTotal[213] = 3;
NotaColorTotal[214] = 1;
NotaColorTotal[215] = 2;
NotaColorTotal[216] = 1;
NotaColorTotal[217] = 0;
NotaColorTotal[218] = 3;
NotaColorTotal[219] = 1;
NotaColorTotal[220] = 1;
NotaColorTotal[221] = 1;
NotaColorTotal[222] = 1;
NotaColorTotal[223] = 2;
NotaColorTotal[224] = 2;
NotaColorTotal[225] = 2;
NotaColorTotal[226] = 2;
NotaColorTotal[227] = 1;
NotaColorTotal[228] = 1;
NotaColorTotal[229] = 1;
NotaColorTotal[230] = 1;
NotaColorTotal[231] = 3;
NotaColorTotal[232] = 1;
NotaColorTotal[233] = 0;
NotaColorTotal[234] = 1;
NotaColorTotal[235] = 1;
NotaColorTotal[236] = 3;
NotaColorTotal[237] = 1;
NotaColorTotal[238] = 3;
NotaColorTotal[239] = 2;
NotaColorTotal[240] = 3;
NotaColorTotal[241] = 1;
NotaColorTotal[242] = 0;
NotaColorTotal[243] = 3;
NotaColorTotal[244] = 1;
NotaColorTotal[245] = 3;
NotaColorTotal[246] = 2;
NotaColorTotal[247] = 0;
NotaColorTotal[248] = 2;
NotaColorTotal[249] = 1;
NotaColorTotal[250] = 0;
NotaColorTotal[251] = 1;
NotaColorTotal[252] = 0;
NotaColorTotal[253] = 0;
NotaColorTotal[254] = 1;
NotaColorTotal[0xFF] = 1;
NotaColorTotal[0x0100] = 1;
NotaColorTotal[0x0101] = 2;
NotaColorTotal[258] = 2;
NotaColorTotal[259] = 2;
NotaColorTotal[260] = 2;
NotaColorTotal[261] = 2;
NotaColorTotal[262] = 2;
NotaColorTotal[263] = 2;
NotaColorTotal[264] = 2;
NotaColorTotal[265] = 3;
NotaColorTotal[266] = 2;
NotaColorTotal[267] = 3;
NotaColorTotal[268] = 2;
NotaColorTotal[269] = 3;
NotaColorTotal[270] = 2;
NotaColorTotal[271] = 3;
NotaColorTotal[272] = 2;
NotaColorTotal[273] = 3;
NotaColorTotal[274] = 3;
NotaColorTotal[275] = 3;
NotaColorTotal[276] = 1;
NotaColorTotal[277] = 2;
NotaColorTotal[278] = 1;
NotaColorTotal[279] = 0;
NotaColorTotal[280] = 2;
NotaColorTotal[281] = 1;
NotaColorTotal[282] = 3;
NotaColorTotal[283] = 1;
NotaColorTotal[284] = 3;
NotaColorTotal[285] = 3;
NotaColorTotal[286] = 3;
NotaColorTotal[287] = 1;
NotaColorTotal[288] = 2;
NotaColorTotal[289] = 1;
NotaColorTotal[290] = 0;
NotaColorTotal[291] = 1;
NotaColorTotal[292] = 3;
NotaColorTotal[293] = 1;
NotaColorTotal[294] = 2;
NotaColorTotal[295] = 1;
NotaColorTotal[296] = 0;
NotaColorTotal[297] = 2;
NotaColorTotal[298] = 1;
NotaColorTotal[299] = 3;
NotaColorTotal[300] = 0;
NotaColorTotal[301] = 2;
NotaColorTotal[302] = 1;
NotaColorTotal[303] = 0;
NotaColorTotal[304] = 1;
NotaColorTotal[305] = 0;
NotaColorTotal[306] = 2;
NotaColorTotal[307] = 1;
NotaColorTotal[308] = 0;
NotaColorTotal[309] = 1;
NotaColorTotal[310] = 3;
NotaColorTotal[311] = 3;
NotaColorTotal[312] = 3;
NotaColorTotal[313] = 1;
NotaColorTotal[314] = 2;
NotaColorTotal[315] = 3;
NotaColorTotal[316] = 2;
NotaColorTotal[317] = 3;
NotaColorTotal[318] = 0;
NotaColorTotal[319] = 1;
NotaColorTotal[320] = 3;
NotaColorTotal[321] = 3;
NotaColorTotal[322] = 3;
NotaColorTotal[323] = 1;
NotaColorTotal[324] = 2;
NotaColorTotal[325] = 0;
NotaColorTotal[326] = 2;
NotaColorTotal[327] = 1;
NotaColorTotal[328] = 2;
NotaColorTotal[329] = 3;
NotaColorTotal[330] = 3;
NotaColorTotal[331] = 3;
NotaColorTotal[332] = 1;
NotaColorTotal[333] = 2;
NotaColorTotal[334] = 3;
NotaColorTotal[335] = 1;
NotaColorTotal[336] = 2;
NotaColorTotal[337] = 0;
NotaColorTotal[338] = 1;
NotaColorTotal[339] = 0;
NotaColorTotal[340] = 2;
NotaColorTotal[341] = 1;
NotaColorTotal[342] = 2;
NotaColorTotal[343] = 3;
NotaColorTotal[344] = 1;
NotaColorTotal[345] = 1;
NotaColorTotal[346] = 2;
NotaColorTotal[347] = 0;
NotaColorTotal[348] = 1;
NotaColorTotal[349] = 3;
NotaColorTotal[350] = 3;
NotaColorTotal[351] = 3;
NotaColorTotal[352] = 1;
NotaColorTotal[353] = 2;
NotaColorTotal[354] = 3;
NotaColorTotal[355] = 1;
NotaColorTotal[356] = 2;
NotaColorTotal[357] = 0;
NotaColorTotal[358] = 1;
NotaColorTotal[359] = 0;
NotaColorTotal[360] = 2;
NotaColorTotal[361] = 1;
NotaColorTotal[362] = 3;
NotaColorTotal[363] = 1;
NotaColorTotal[364] = 1;
NotaColorTotal[365] = 2;
NotaColorTotal[366] = 0;
NotaColorTotal[367] = 1;
NotaColorTotal[368] = 1;
NotaColorTotal[369] = 0;
NotaColorTotal[370] = 0;
NotaColorTotal[371] = 3;
NotaColorTotal[372] = 1;
NotaColorTotal[373] = 0;
NotaColorTotal[374] = 0;
NotaColorTotal[375] = 3;
NotaColorTotal[376] = 1;
NotaColorTotal[377] = 0;
NotaColorTotal[378] = 0;
NotaColorTotal[379] = 3;
NotaColorTotal[380] = 1;
NotaColorTotal[381] = 0;
NotaColorTotal[382] = 0;
NotaColorTotal[383] = 3;
NotaColorTotal[384] = 1;
NotaColorTotal[385] = 0;
NotaColorTotal[386] = 0;
NotaColorTotal[387] = 3;
NotaColorTotal[388] = 1;
NotaColorTotal[389] = 0;
NotaColorTotal[390] = 0;
NotaColorTotal[391] = 3;
NotaColorTotal[392] = 1;
NotaColorTotal[393] = 0;
NotaColorTotal[394] = 0;
NotaColorTotal[395] = 3;
NotaColorTotal[396] = 1;
NotaColorTotal[397] = 0;
NotaColorTotal[398] = 0;
NotaColorTotal[399] = 3;
NotaColorTotal[400] = 1;
NotaColorTotal[401] = 3;
NotaColorTotal[402] = 2;
NotaColorTotal[403] = 3;
}
public function easyPress(){
NotaPressTotal[1] = 0;
NotaPressTotal[2] = 0;
NotaPressTotal[3] = 0;
NotaPressTotal[4] = 0;
NotaPressTotal[5] = 0;
NotaPressTotal[6] = 0;
NotaPressTotal[7] = 0;
NotaPressTotal[8] = 0;
NotaPressTotal[9] = 0;
NotaPressTotal[10] = 0;
NotaPressTotal[11] = 0;
NotaPressTotal[12] = 0;
NotaPressTotal[13] = 0;
NotaPressTotal[14] = 0;
NotaPressTotal[15] = 0;
NotaPressTotal[16] = 0;
NotaPressTotal[17] = 0;
NotaPressTotal[18] = 0;
NotaPressTotal[19] = 0.375;
NotaPressTotal[20] = 0;
NotaPressTotal[21] = 0;
NotaPressTotal[22] = 0;
NotaPressTotal[23] = 0;
NotaPressTotal[24] = 0;
NotaPressTotal[25] = 0;
NotaPressTotal[26] = 0;
NotaPressTotal[27] = 0;
NotaPressTotal[28] = 0;
NotaPressTotal[29] = 0;
NotaPressTotal[30] = 0;
NotaPressTotal[31] = 0;
NotaPressTotal[32] = 0;
NotaPressTotal[33] = 0;
NotaPressTotal[34] = 0;
NotaPressTotal[35] = 0;
NotaPressTotal[36] = 0;
NotaPressTotal[37] = 0;
NotaPressTotal[38] = 0.375;
NotaPressTotal[39] = 0.375;
NotaPressTotal[40] = 0.375;
NotaPressTotal[41] = 0.375;
NotaPressTotal[42] = 0.375;
NotaPressTotal[43] = 0.375;
NotaPressTotal[44] = 0.375;
NotaPressTotal[45] = 0.375;
NotaPressTotal[46] = 0.375;
NotaPressTotal[47] = 0.375;
NotaPressTotal[48] = 0.375;
NotaPressTotal[49] = 0.375;
NotaPressTotal[50] = 0.375;
NotaPressTotal[51] = 0.375;
NotaPressTotal[52] = 0.375;
NotaPressTotal[53] = 0.375;
NotaPressTotal[54] = 0.375;
NotaPressTotal[55] = 0;
NotaPressTotal[56] = 0;
NotaPressTotal[57] = 0;
NotaPressTotal[58] = 0;
NotaPressTotal[59] = 0;
NotaPressTotal[60] = 0;
NotaPressTotal[61] = 0;
NotaPressTotal[62] = 0;
NotaPressTotal[63] = 0;
NotaPressTotal[64] = 0;
NotaPressTotal[65] = 0;
NotaPressTotal[66] = 0.3125;
NotaPressTotal[67] = 0;
NotaPressTotal[68] = 0;
NotaPressTotal[69] = 0;
NotaPressTotal[70] = 0.375;
NotaPressTotal[71] = 0.375;
NotaPressTotal[72] = 0;
NotaPressTotal[73] = 0;
NotaPressTotal[74] = 0;
NotaPressTotal[75] = 0;
NotaPressTotal[76] = 0;
NotaPressTotal[77] = 0;
NotaPressTotal[78] = 0;
NotaPressTotal[79] = 0;
NotaPressTotal[80] = 0;
NotaPressTotal[81] = 0;
NotaPressTotal[82] = 0.3125;
NotaPressTotal[83] = 0;
NotaPressTotal[84] = 0;
NotaPressTotal[85] = 0;
NotaPressTotal[86] = 0.375;
NotaPressTotal[87] = 0.375;
NotaPressTotal[88] = 0.375;
NotaPressTotal[89] = 0.375;
NotaPressTotal[90] = 0.375;
NotaPressTotal[91] = 0.375;
NotaPressTotal[92] = 0.375;
NotaPressTotal[93] = 0.375;
NotaPressTotal[94] = 0.375;
NotaPressTotal[95] = 0.375;
NotaPressTotal[96] = 0;
NotaPressTotal[97] = 0;
NotaPressTotal[98] = 0;
NotaPressTotal[99] = 0;
NotaPressTotal[100] = 0;
NotaPressTotal[101] = 0;
NotaPressTotal[102] = 0;
NotaPressTotal[103] = 0;
NotaPressTotal[104] = 0;
NotaPressTotal[105] = 0;
NotaPressTotal[106] = 0;
NotaPressTotal[107] = 0.3125;
NotaPressTotal[108] = 0;
NotaPressTotal[109] = 0;
NotaPressTotal[110] = 0;
NotaPressTotal[111] = 0.375;
NotaPressTotal[112] = 0.375;
NotaPressTotal[113] = 0;
NotaPressTotal[114] = 0;
NotaPressTotal[115] = 0;
NotaPressTotal[116] = 0;
NotaPressTotal[117] = 0;
NotaPressTotal[118] = 0;
NotaPressTotal[119] = 0;
NotaPressTotal[120] = 0;
NotaPressTotal[121] = 0;
NotaPressTotal[122] = 0;
NotaPressTotal[123] = 0.3125;
NotaPressTotal[124] = 0;
NotaPressTotal[125] = 0;
NotaPressTotal[126] = 0;
NotaPressTotal[127] = 0.375;
NotaPressTotal[128] = 0.375;
NotaPressTotal[129] = 0;
NotaPressTotal[130] = 0;
NotaPressTotal[131] = 0.25;
NotaPressTotal[132] = 0;
NotaPressTotal[133] = 0;
NotaPressTotal[134] = 0;
NotaPressTotal[135] = 0;
NotaPressTotal[136] = 0;
NotaPressTotal[137] = 0;
NotaPressTotal[138] = 0;
NotaPressTotal[139] = 0.3125;
NotaPressTotal[140] = 0;
NotaPressTotal[141] = 0;
NotaPressTotal[142] = 0;
NotaPressTotal[143] = 0;
NotaPressTotal[144] = 0;
NotaPressTotal[145] = 0;
NotaPressTotal[146] = 0;
NotaPressTotal[147] = 0;
NotaPressTotal[148] = 0;
NotaPressTotal[149] = 0;
NotaPressTotal[150] = 0;
NotaPressTotal[151] = 0;
NotaPressTotal[152] = 0.4375;
NotaPressTotal[153] = 0.4375;
NotaPressTotal[154] = 0;
NotaPressTotal[155] = 0;
NotaPressTotal[156] = 0;
NotaPressTotal[157] = 0.375;
NotaPressTotal[158] = 0;
NotaPressTotal[159] = 0;
NotaPressTotal[160] = 0;
NotaPressTotal[161] = 0.3125;
NotaPressTotal[162] = 0.3125;
NotaPressTotal[163] = 0;
NotaPressTotal[164] = 0;
NotaPressTotal[165] = 0;
NotaPressTotal[166] = 0;
NotaPressTotal[167] = 0;
NotaPressTotal[168] = 0.4375;
NotaPressTotal[169] = 0.4375;
NotaPressTotal[170] = 0;
NotaPressTotal[171] = 0;
NotaPressTotal[172] = 0;
NotaPressTotal[173] = 0.375;
NotaPressTotal[174] = 0;
NotaPressTotal[175] = 0;
NotaPressTotal[176] = 0;
NotaPressTotal[177] = 0.3125;
NotaPressTotal[178] = 0.375;
NotaPressTotal[179] = 0.25;
NotaPressTotal[180] = 0;
NotaPressTotal[181] = 0;
NotaPressTotal[182] = 0;
NotaPressTotal[183] = 0;
NotaPressTotal[184] = 0;
NotaPressTotal[185] = 0;
NotaPressTotal[186] = 0;
NotaPressTotal[187] = 0;
NotaPressTotal[188] = 0.3125;
NotaPressTotal[189] = 0;
NotaPressTotal[190] = 0;
NotaPressTotal[191] = 0;
NotaPressTotal[192] = 0;
NotaPressTotal[193] = 0.875;
NotaPressTotal[194] = 0.875;
NotaPressTotal[195] = 0;
NotaPressTotal[196] = 0;
NotaPressTotal[197] = 0;
NotaPressTotal[198] = 0;
NotaPressTotal[199] = 0;
NotaPressTotal[200] = 0;
NotaPressTotal[201] = 0;
NotaPressTotal[202] = 0;
NotaPressTotal[203] = 0;
NotaPressTotal[204] = 0;
NotaPressTotal[205] = 0;
NotaPressTotal[206] = 0.75;
NotaPressTotal[207] = 0.75;
NotaPressTotal[208] = 0;
NotaPressTotal[209] = 0;
NotaPressTotal[210] = 0;
NotaPressTotal[211] = 0;
NotaPressTotal[212] = 0.75;
NotaPressTotal[213] = 0.3125;
NotaPressTotal[214] = 0.3125;
NotaPressTotal[215] = 0.4375;
NotaPressTotal[216] = 0.4375;
NotaPressTotal[217] = 0.375;
NotaPressTotal[218] = 0.375;
NotaPressTotal[219] = 0.5;
NotaPressTotal[220] = 0.5;
NotaPressTotal[221] = 0.5;
NotaPressTotal[222] = 0.5;
NotaPressTotal[223] = 0.4375;
NotaPressTotal[224] = 0.5625;
NotaPressTotal[225] = 0.375;
NotaPressTotal[226] = 0.375;
NotaPressTotal[227] = 0.375;
NotaPressTotal[228] = 0.375;
NotaPressTotal[229] = 0.5625;
NotaPressTotal[230] = 0.5625;
NotaPressTotal[231] = 0;
NotaPressTotal[232] = 0;
NotaPressTotal[233] = 0;
NotaPressTotal[234] = 0;
NotaPressTotal[235] = 0;
NotaPressTotal[236] = 0;
NotaPressTotal[237] = 0;
NotaPressTotal[238] = 0;
NotaPressTotal[239] = 0;
NotaPressTotal[240] = 0;
NotaPressTotal[241] = 1.25;
NotaPressTotal[242] = 0;
NotaPressTotal[243] = 0;
NotaPressTotal[244] = 0;
NotaPressTotal[245] = 0;
NotaPressTotal[246] = 0;
NotaPressTotal[247] = 0;
NotaPressTotal[248] = 0;
NotaPressTotal[249] = 0;
NotaPressTotal[250] = 0;
NotaPressTotal[251] = 0;
NotaPressTotal[252] = 0;
NotaPressTotal[253] = 0.3125;
NotaPressTotal[254] = 0;
NotaPressTotal[0xFF] = 0;
NotaPressTotal[0x0100] = 0;
NotaPressTotal[0x0101] = 0.375;
NotaPressTotal[258] = 0.375;
NotaPressTotal[259] = 0;
NotaPressTotal[260] = 0;
NotaPressTotal[261] = 0;
NotaPressTotal[262] = 0;
NotaPressTotal[263] = 0;
NotaPressTotal[264] = 0;
NotaPressTotal[265] = 0;
NotaPressTotal[266] = 0;
NotaPressTotal[267] = 0;
NotaPressTotal[268] = 0;
NotaPressTotal[269] = 0.3125;
NotaPressTotal[270] = 0;
NotaPressTotal[271] = 0;
NotaPressTotal[272] = 0;
NotaPressTotal[273] = 0.375;
NotaPressTotal[274] = 0.375;
NotaPressTotal[275] = 0;
NotaPressTotal[276] = 0;
NotaPressTotal[277] = 0.25;
NotaPressTotal[278] = 0;
NotaPressTotal[279] = 0;
NotaPressTotal[280] = 0;
NotaPressTotal[281] = 0;
NotaPressTotal[282] = 0;
NotaPressTotal[283] = 0;
NotaPressTotal[284] = 0;
NotaPressTotal[285] = 0.3125;
NotaPressTotal[286] = 0;
NotaPressTotal[287] = 0;
NotaPressTotal[288] = 0;
NotaPressTotal[289] = 0;
NotaPressTotal[290] = 0;
NotaPressTotal[291] = 0;
NotaPressTotal[292] = 0;
NotaPressTotal[293] = 0;
NotaPressTotal[294] = 0;
NotaPressTotal[295] = 0;
NotaPressTotal[296] = 0;
NotaPressTotal[297] = 0;
NotaPressTotal[298] = 0.4375;
NotaPressTotal[299] = 0.4375;
NotaPressTotal[300] = 0;
NotaPressTotal[301] = 0;
NotaPressTotal[302] = 0;
NotaPressTotal[303] = 0.375;
NotaPressTotal[304] = 0;
NotaPressTotal[305] = 0;
NotaPressTotal[306] = 0;
NotaPressTotal[307] = 0.3125;
NotaPressTotal[308] = 0.3125;
NotaPressTotal[309] = 0;
NotaPressTotal[310] = 0;
NotaPressTotal[311] = 0;
NotaPressTotal[312] = 0;
NotaPressTotal[313] = 0;
NotaPressTotal[314] = 0.4375;
NotaPressTotal[315] = 0.4375;
NotaPressTotal[316] = 0;
NotaPressTotal[317] = 0;
NotaPressTotal[318] = 0;
NotaPressTotal[319] = 0.375;
NotaPressTotal[320] = 0;
NotaPressTotal[321] = 0;
NotaPressTotal[322] = 0;
NotaPressTotal[323] = 0.3125;
NotaPressTotal[324] = 0;
NotaPressTotal[325] = 0;
NotaPressTotal[326] = 0.3125;
NotaPressTotal[327] = 0.3125;
NotaPressTotal[328] = 0;
NotaPressTotal[329] = 0;
NotaPressTotal[330] = 0.3125;
NotaPressTotal[331] = 0.3125;
NotaPressTotal[332] = 0;
NotaPressTotal[333] = 0;
NotaPressTotal[334] = 0.3125;
NotaPressTotal[335] = 0.3125;
NotaPressTotal[336] = 0;
NotaPressTotal[337] = 0;
NotaPressTotal[338] = 0.3125;
NotaPressTotal[339] = 0.3125;
NotaPressTotal[340] = 0;
NotaPressTotal[341] = 0;
NotaPressTotal[342] = 0.3125;
NotaPressTotal[343] = 0.3125;
NotaPressTotal[344] = 0;
NotaPressTotal[345] = 0;
NotaPressTotal[346] = 0.3125;
NotaPressTotal[347] = 0.3125;
NotaPressTotal[348] = 0;
NotaPressTotal[349] = 0;
NotaPressTotal[350] = 0.3125;
NotaPressTotal[351] = 0.3125;
NotaPressTotal[352] = 0;
NotaPressTotal[353] = 0;
NotaPressTotal[354] = 0.3125;
NotaPressTotal[355] = 0.3125;
NotaPressTotal[356] = 0;
NotaPressTotal[357] = 0;
NotaPressTotal[358] = 0.5;
NotaPressTotal[359] = 0.5;
}
public function mediumTiempos(){
NotaTiempo[1] = 6.0625;
NotaTiempo[2] = 6.25;
NotaTiempo[3] = 6.5625;
NotaTiempo[4] = 6.75;
NotaTiempo[5] = 7.0625;
NotaTiempo[6] = 7.25;
NotaTiempo[7] = 7.5625;
NotaTiempo[8] = 7.75;
NotaTiempo[9] = 8.0625;
NotaTiempo[10] = 8.375;
NotaTiempo[11] = 8.75;
NotaTiempo[12] = 8.9375;
NotaTiempo[13] = 9.25;
NotaTiempo[14] = 9.4375;
NotaTiempo[15] = 9.6875;
NotaTiempo[16] = 9.875;
NotaTiempo[17] = 10.1875;
NotaTiempo[18] = 10.375;
NotaTiempo[19] = 10.75;
NotaTiempo[20] = 11.375;
NotaTiempo[21] = 11.5625;
NotaTiempo[22] = 11.9375;
NotaTiempo[23] = 12.125;
NotaTiempo[24] = 12.4375;
NotaTiempo[25] = 12.625;
NotaTiempo[26] = 12.9375;
NotaTiempo[27] = 13.125;
NotaTiempo[28] = 13.4375;
NotaTiempo[29] = 13.75;
NotaTiempo[30] = 14.125;
NotaTiempo[31] = 14.3125;
NotaTiempo[32] = 14.625;
NotaTiempo[33] = 14.8125;
NotaTiempo[34] = 15.0625;
NotaTiempo[35] = 15.25;
NotaTiempo[36] = 15.5625;
NotaTiempo[37] = 15.75;
NotaTiempo[38] = 16.1875;
NotaTiempo[39] = 17;
NotaTiempo[40] = 17;
NotaTiempo[41] = 17.625;
NotaTiempo[42] = 18.25;
NotaTiempo[43] = 18.25;
NotaTiempo[44] = 18.9375;
NotaTiempo[45] = 19.5625;
NotaTiempo[46] = 19.5625;
NotaTiempo[47] = 20.25;
NotaTiempo[48] = 20.9375;
NotaTiempo[49] = 20.9375;
NotaTiempo[50] = 21.625;
NotaTiempo[51] = 22.3125;
NotaTiempo[52] = 22.3125;
NotaTiempo[53] = 23;
NotaTiempo[54] = 23.6875;
NotaTiempo[55] = 23.6875;
NotaTiempo[56] = 24.375;
NotaTiempo[57] = 25.0625;
NotaTiempo[58] = 25.0625;
NotaTiempo[59] = 25.75;
NotaTiempo[60] = 26.4375;
NotaTiempo[61] = 26.4375;
NotaTiempo[62] = 27.0625;
NotaTiempo[63] = 27.75;
NotaTiempo[64] = 28.25;
NotaTiempo[65] = 28.25;
NotaTiempo[66] = 28.5;
NotaTiempo[67] = 28.875;
NotaTiempo[68] = 29.1875;
NotaTiempo[69] = 29.1875;
NotaTiempo[70] = 29.5;
NotaTiempo[71] = 29.75;
NotaTiempo[72] = 30.125;
NotaTiempo[73] = 30.125;
NotaTiempo[74] = 30.5;
NotaTiempo[75] = 30.8125;
NotaTiempo[76] = 31.125;
NotaTiempo[77] = 31.6875;
NotaTiempo[78] = 31.875;
NotaTiempo[79] = 31.875;
NotaTiempo[80] = 32.1875;
NotaTiempo[81] = 32.5;
NotaTiempo[82] = 32.5;
NotaTiempo[83] = 33.1875;
NotaTiempo[84] = 33.5;
NotaTiempo[85] = 33.875;
NotaTiempo[86] = 34.4375;
NotaTiempo[87] = 34.625;
NotaTiempo[88] = 34.9375;
NotaTiempo[89] = 35.25;
NotaTiempo[90] = 35.5625;
NotaTiempo[91] = 35.9375;
NotaTiempo[92] = 36.3125;
NotaTiempo[93] = 36.625;
NotaTiempo[94] = 37.25;
NotaTiempo[95] = 37.4375;
NotaTiempo[96] = 37.75;
NotaTiempo[97] = 38.0625;
NotaTiempo[98] = 38.0625;
NotaTiempo[99] = 38.6875;
NotaTiempo[100] = 38.6875;
NotaTiempo[101] = 39.3125;
NotaTiempo[102] = 39.9375;
NotaTiempo[103] = 39.9375;
NotaTiempo[104] = 40.625;
NotaTiempo[105] = 41.25;
NotaTiempo[106] = 41.25;
NotaTiempo[107] = 41.9375;
NotaTiempo[108] = 42.625;
NotaTiempo[109] = 42.625;
NotaTiempo[110] = 43.3125;
NotaTiempo[111] = 44.0625;
NotaTiempo[112] = 44.5625;
NotaTiempo[113] = 44.5625;
NotaTiempo[114] = 44.8125;
NotaTiempo[115] = 45.1875;
NotaTiempo[116] = 45.5;
NotaTiempo[117] = 45.8125;
NotaTiempo[118] = 46.125;
NotaTiempo[119] = 46.5;
NotaTiempo[120] = 46.875;
NotaTiempo[121] = 47.1875;
NotaTiempo[122] = 47.5;
NotaTiempo[123] = 48.125;
NotaTiempo[124] = 48.3125;
NotaTiempo[125] = 48.625;
NotaTiempo[126] = 48.9375;
NotaTiempo[127] = 48.9375;
NotaTiempo[128] = 49.5625;
NotaTiempo[129] = 49.5625;
NotaTiempo[130] = 49.875;
NotaTiempo[131] = 50.25;
NotaTiempo[132] = 50.75;
NotaTiempo[133] = 50.9375;
NotaTiempo[134] = 51.3125;
NotaTiempo[135] = 51.625;
NotaTiempo[136] = 52;
NotaTiempo[137] = 52.375;
NotaTiempo[138] = 52.375;
NotaTiempo[139] = 52.6875;
NotaTiempo[140] = 53;
NotaTiempo[141] = 53.5;
NotaTiempo[142] = 53.6875;
NotaTiempo[143] = 54.125;
NotaTiempo[144] = 54.4375;
NotaTiempo[145] = 54.4375;
NotaTiempo[146] = 55.0625;
NotaTiempo[147] = 55.375;
NotaTiempo[148] = 55.6875;
NotaTiempo[149] = 56.1875;
NotaTiempo[150] = 56.375;
NotaTiempo[151] = 56.75;
NotaTiempo[152] = 57.125;
NotaTiempo[153] = 57.125;
NotaTiempo[154] = 57.5;
NotaTiempo[155] = 57.8125;
NotaTiempo[156] = 58.125;
NotaTiempo[157] = 58.4375;
NotaTiempo[158] = 59.0625;
NotaTiempo[159] = 59.25;
NotaTiempo[160] = 59.25;
NotaTiempo[161] = 59.5625;
NotaTiempo[162] = 59.875;
NotaTiempo[163] = 60.125;
NotaTiempo[164] = 60.125;
NotaTiempo[165] = 60.5625;
NotaTiempo[166] = 60.875;
NotaTiempo[167] = 61.25;
NotaTiempo[168] = 61.5;
NotaTiempo[169] = 61.8125;
NotaTiempo[170] = 61.8125;
NotaTiempo[171] = 62.1875;
NotaTiempo[172] = 62.5625;
NotaTiempo[173] = 62.5625;
NotaTiempo[174] = 63.3125;
NotaTiempo[175] = 63.5625;
NotaTiempo[176] = 63.75;
NotaTiempo[177] = 63.9375;
NotaTiempo[178] = 64.4375;
NotaTiempo[179] = 64.625;
NotaTiempo[180] = 65;
NotaTiempo[181] = 65.3125;
NotaTiempo[182] = 65.9375;
NotaTiempo[183] = 66.4375;
NotaTiempo[184] = 66.625;
NotaTiempo[185] = 66.875;
NotaTiempo[186] = 67.3125;
NotaTiempo[187] = 67.3125;
NotaTiempo[188] = 67.625;
NotaTiempo[189] = 67.9375;
NotaTiempo[190] = 67.9375;
NotaTiempo[191] = 68.625;
NotaTiempo[192] = 68.9375;
NotaTiempo[193] = 69.125;
NotaTiempo[194] = 69.3125;
NotaTiempo[195] = 69.875;
NotaTiempo[196] = 70.0625;
NotaTiempo[197] = 70.375;
NotaTiempo[198] = 70.6875;
NotaTiempo[199] = 71.5;
NotaTiempo[200] = 71.5;
NotaTiempo[201] = 72.1875;
NotaTiempo[202] = 72.1875;
NotaTiempo[203] = 72.75;
NotaTiempo[204] = 72.9375;
NotaTiempo[205] = 73.125;
NotaTiempo[206] = 73.375;
NotaTiempo[207] = 73.5625;
NotaTiempo[208] = 73.75;
NotaTiempo[209] = 73.9375;
NotaTiempo[210] = 74.125;
NotaTiempo[211] = 74.3125;
NotaTiempo[212] = 74.3125;
NotaTiempo[213] = 74.875;
NotaTiempo[214] = 75.0625;
NotaTiempo[215] = 75.25;
NotaTiempo[216] = 75.4375;
NotaTiempo[217] = 75.75;
NotaTiempo[218] = 75.75;
NotaTiempo[219] = 77;
NotaTiempo[220] = 77.1875;
NotaTiempo[221] = 77.375;
NotaTiempo[222] = 77.5625;
NotaTiempo[223] = 77.6875;
NotaTiempo[224] = 77.875;
NotaTiempo[225] = 78.0625;
NotaTiempo[226] = 78.25;
NotaTiempo[227] = 78.375;
NotaTiempo[228] = 78.5625;
NotaTiempo[229] = 78.75;
NotaTiempo[230] = 79.0625;
NotaTiempo[231] = 79.0625;
NotaTiempo[232] = 80;
NotaTiempo[233] = 80.1875;
NotaTiempo[234] = 80.375;
NotaTiempo[235] = 80.5625;
NotaTiempo[236] = 80.75;
NotaTiempo[237] = 81.625;
NotaTiempo[238] = 81.625;
NotaTiempo[239] = 82.375;
NotaTiempo[240] = 82.375;
NotaTiempo[241] = 83;
NotaTiempo[242] = 83.75;
NotaTiempo[243] = 83.75;
NotaTiempo[244] = 84.4375;
NotaTiempo[245] = 84.4375;
NotaTiempo[246] = 85.0625;
NotaTiempo[247] = 85.8125;
NotaTiempo[248] = 85.8125;
NotaTiempo[249] = 86.5;
NotaTiempo[250] = 87.125;
NotaTiempo[251] = 87.125;
NotaTiempo[252] = 87.875;
NotaTiempo[253] = 88.5;
NotaTiempo[254] = 88.5;
NotaTiempo[0xFF] = 89.1875;
NotaTiempo[0x0100] = 89.75;
NotaTiempo[0x0101] = 89.75;
NotaTiempo[258] = 90.5;
NotaTiempo[259] = 90.6875;
NotaTiempo[260] = 90.875;
NotaTiempo[261] = 91.0625;
NotaTiempo[262] = 91.25;
NotaTiempo[263] = 91.4375;
NotaTiempo[264] = 91.625;
NotaTiempo[265] = 91.625;
NotaTiempo[266] = 91.8125;
NotaTiempo[267] = 91.8125;
NotaTiempo[268] = 92;
NotaTiempo[269] = 92;
NotaTiempo[270] = 92.1875;
NotaTiempo[271] = 92.1875;
NotaTiempo[272] = 92.375;
NotaTiempo[273] = 92.375;
NotaTiempo[274] = 92.625;
NotaTiempo[275] = 115.0625;
NotaTiempo[276] = 115.5625;
NotaTiempo[277] = 115.5625;
NotaTiempo[278] = 115.8125;
NotaTiempo[279] = 116.125;
NotaTiempo[280] = 116.4375;
NotaTiempo[281] = 116.75;
NotaTiempo[282] = 117.125;
NotaTiempo[283] = 117.4375;
NotaTiempo[284] = 117.8125;
NotaTiempo[285] = 118.125;
NotaTiempo[286] = 118.4375;
NotaTiempo[287] = 119;
NotaTiempo[288] = 119.1875;
NotaTiempo[289] = 119.5;
NotaTiempo[290] = 119.8125;
NotaTiempo[291] = 119.8125;
NotaTiempo[292] = 120.5;
NotaTiempo[293] = 120.8125;
NotaTiempo[294] = 120.8125;
NotaTiempo[295] = 121.1875;
NotaTiempo[296] = 121.6875;
NotaTiempo[297] = 121.875;
NotaTiempo[298] = 122.25;
NotaTiempo[299] = 122.5625;
NotaTiempo[300] = 122.875;
NotaTiempo[301] = 123.3125;
NotaTiempo[302] = 123.625;
NotaTiempo[303] = 123.9375;
NotaTiempo[304] = 123.9375;
NotaTiempo[305] = 124.4375;
NotaTiempo[306] = 124.625;
NotaTiempo[307] = 125;
NotaTiempo[308] = 125.3125;
NotaTiempo[309] = 125.3125;
NotaTiempo[310] = 126;
NotaTiempo[311] = 126.3125;
NotaTiempo[312] = 126.625;
NotaTiempo[313] = 127.1875;
NotaTiempo[314] = 127.4375;
NotaTiempo[315] = 127.4375;
NotaTiempo[316] = 127.75;
NotaTiempo[317] = 128.0625;
NotaTiempo[318] = 128.375;
NotaTiempo[319] = 128.375;
NotaTiempo[320] = 128.6875;
NotaTiempo[321] = 129;
NotaTiempo[322] = 129.3125;
NotaTiempo[323] = 129.9375;
NotaTiempo[324] = 130.125;
NotaTiempo[325] = 130.4375;
NotaTiempo[326] = 130.8125;
NotaTiempo[327] = 131.0625;
NotaTiempo[328] = 131.0625;
NotaTiempo[329] = 131.5;
NotaTiempo[330] = 131.8125;
NotaTiempo[331] = 132.1875;
NotaTiempo[332] = 132.4375;
NotaTiempo[333] = 132.8125;
NotaTiempo[334] = 132.8125;
NotaTiempo[335] = 133.1875;
NotaTiempo[336] = 133.1875;
NotaTiempo[337] = 133.5;
NotaTiempo[338] = 133.5;
NotaTiempo[339] = 134.25;
NotaTiempo[340] = 134.5;
NotaTiempo[341] = 134.6875;
NotaTiempo[342] = 134.875;
NotaTiempo[343] = 134.875;
NotaTiempo[344] = 135.4375;
NotaTiempo[345] = 135.625;
NotaTiempo[346] = 135.9375;
NotaTiempo[347] = 136.25;
NotaTiempo[348] = 136.25;
NotaTiempo[349] = 136.8125;
NotaTiempo[350] = 137.3125;
NotaTiempo[351] = 137.5;
NotaTiempo[352] = 137.8125;
NotaTiempo[353] = 138.25;
NotaTiempo[354] = 138.25;
NotaTiempo[355] = 138.5625;
NotaTiempo[356] = 138.5625;
NotaTiempo[357] = 138.875;
NotaTiempo[358] = 138.875;
NotaTiempo[359] = 139.625;
NotaTiempo[360] = 139.875;
NotaTiempo[361] = 140.0625;
NotaTiempo[362] = 140.25;
NotaTiempo[363] = 140.75;
NotaTiempo[364] = 140.9375;
NotaTiempo[365] = 141.3125;
NotaTiempo[366] = 141.625;
NotaTiempo[367] = 141.625;
NotaTiempo[368] = 142.4375;
NotaTiempo[369] = 142.6875;
NotaTiempo[370] = 143.125;
NotaTiempo[371] = 143.125;
NotaTiempo[372] = 143.75;
NotaTiempo[373] = 144.0625;
NotaTiempo[374] = 144.4375;
NotaTiempo[375] = 144.4375;
NotaTiempo[376] = 145.125;
NotaTiempo[377] = 145.4375;
NotaTiempo[378] = 145.8125;
NotaTiempo[379] = 145.8125;
NotaTiempo[380] = 146.5;
NotaTiempo[381] = 146.8125;
NotaTiempo[382] = 147.25;
NotaTiempo[383] = 147.25;
NotaTiempo[384] = 147.875;
NotaTiempo[385] = 148.1875;
NotaTiempo[386] = 148.625;
NotaTiempo[387] = 148.625;
NotaTiempo[388] = 149.25;
NotaTiempo[389] = 149.5;
NotaTiempo[390] = 149.875;
NotaTiempo[391] = 149.875;
NotaTiempo[392] = 150.5625;
NotaTiempo[393] = 150.875;
NotaTiempo[394] = 151.25;
NotaTiempo[395] = 151.25;
NotaTiempo[396] = 152;
NotaTiempo[397] = 152.25;
NotaTiempo[398] = 152.6875;
NotaTiempo[399] = 152.6875;
NotaTiempo[400] = 153.3125;
NotaTiempo[401] = 153.3125;
NotaTiempo[402] = 153.625;
NotaTiempo[403] = 153.625;
NotaTiempo[404] = -1;
}
public function NotasColoresTotales(_arg1:int){
if (_arg1 == 1){
easyColores();
} else {
if (_arg1 == 2){
trace("Q SHUSHA");
mediumColores();
} else {
if (_arg1 == 3){
hardColores();
};
};
};
}
public function hardStarPower(){
NotaStarPower[1] = 0;
NotaStarPower[2] = 0;
NotaStarPower[3] = 0;
NotaStarPower[4] = 0;
NotaStarPower[5] = 0;
NotaStarPower[6] = 0;
NotaStarPower[7] = 0;
NotaStarPower[8] = 0;
NotaStarPower[9] = 0;
NotaStarPower[10] = 0;
NotaStarPower[11] = 0;
NotaStarPower[12] = 0;
NotaStarPower[13] = 0;
NotaStarPower[14] = 0;
NotaStarPower[15] = 0;
NotaStarPower[16] = 0;
NotaStarPower[17] = 0;
NotaStarPower[18] = 0;
NotaStarPower[19] = 0;
NotaStarPower[20] = 0;
NotaStarPower[21] = 0;
NotaStarPower[22] = 0;
NotaStarPower[23] = 0;
NotaStarPower[24] = 0;
NotaStarPower[25] = 0;
NotaStarPower[26] = 0;
NotaStarPower[27] = 0;
NotaStarPower[28] = 0;
NotaStarPower[29] = 0;
NotaStarPower[30] = 0;
NotaStarPower[31] = 0;
NotaStarPower[32] = 0;
NotaStarPower[33] = 0;
NotaStarPower[34] = 1;
NotaStarPower[35] = 1;
NotaStarPower[36] = 1;
NotaStarPower[37] = 1;
NotaStarPower[38] = 1;
NotaStarPower[39] = 1;
NotaStarPower[40] = 1;
NotaStarPower[41] = 1;
NotaStarPower[42] = 1;
NotaStarPower[43] = 0;
NotaStarPower[44] = 0;
NotaStarPower[45] = 0;
NotaStarPower[46] = 0;
NotaStarPower[47] = 0;
NotaStarPower[48] = 0;
NotaStarPower[49] = 0;
NotaStarPower[50] = 0;
NotaStarPower[51] = 0;
NotaStarPower[52] = 0;
NotaStarPower[53] = 0;
NotaStarPower[54] = 0;
NotaStarPower[55] = 0;
NotaStarPower[56] = 0;
NotaStarPower[57] = 0;
NotaStarPower[58] = 0;
NotaStarPower[59] = 0;
NotaStarPower[60] = 0;
NotaStarPower[61] = 0;
NotaStarPower[62] = 0;
NotaStarPower[63] = 0;
NotaStarPower[64] = 0;
NotaStarPower[65] = 0;
NotaStarPower[66] = 0;
NotaStarPower[67] = 0;
NotaStarPower[68] = 0;
NotaStarPower[69] = 0;
NotaStarPower[70] = 0;
NotaStarPower[71] = 0;
NotaStarPower[72] = 0;
NotaStarPower[73] = 0;
NotaStarPower[74] = 0;
NotaStarPower[75] = 0;
NotaStarPower[76] = 0;
NotaStarPower[77] = 0;
NotaStarPower[78] = 0;
NotaStarPower[79] = 0;
NotaStarPower[80] = 0;
NotaStarPower[81] = 0;
NotaStarPower[82] = 0;
NotaStarPower[83] = 0;
NotaStarPower[84] = 0;
NotaStarPower[85] = 0;
NotaStarPower[86] = 0;
NotaStarPower[87] = 0;
NotaStarPower[88] = 0;
NotaStarPower[89] = 0;
NotaStarPower[90] = 0;
NotaStarPower[91] = 0;
NotaStarPower[92] = 0;
NotaStarPower[93] = 0;
NotaStarPower[94] = 0;
NotaStarPower[95] = 0;
NotaStarPower[96] = 0;
NotaStarPower[97] = 1;
NotaStarPower[98] = 1;
NotaStarPower[99] = 1;
NotaStarPower[100] = 1;
NotaStarPower[101] = 1;
NotaStarPower[102] = 1;
NotaStarPower[103] = 1;
NotaStarPower[104] = 0;
NotaStarPower[105] = 0;
NotaStarPower[106] = 0;
NotaStarPower[107] = 0;
NotaStarPower[108] = 0;
NotaStarPower[109] = 0;
NotaStarPower[110] = 0;
NotaStarPower[111] = 0;
NotaStarPower[112] = 0;
NotaStarPower[113] = 0;
NotaStarPower[114] = 0;
NotaStarPower[115] = 0;
NotaStarPower[116] = 0;
NotaStarPower[117] = 0;
NotaStarPower[118] = 0;
NotaStarPower[119] = 0;
NotaStarPower[120] = 0;
NotaStarPower[121] = 0;
NotaStarPower[122] = 0;
NotaStarPower[123] = 0;
NotaStarPower[124] = 0;
NotaStarPower[125] = 0;
NotaStarPower[126] = 0;
NotaStarPower[127] = 0;
NotaStarPower[128] = 0;
NotaStarPower[129] = 0;
NotaStarPower[130] = 0;
NotaStarPower[131] = 0;
NotaStarPower[132] = 0;
NotaStarPower[133] = 0;
NotaStarPower[134] = 0;
NotaStarPower[135] = 0;
NotaStarPower[136] = 0;
NotaStarPower[137] = 0;
NotaStarPower[138] = 0;
NotaStarPower[139] = 0;
NotaStarPower[140] = 0;
NotaStarPower[141] = 0;
NotaStarPower[142] = 0;
NotaStarPower[143] = 0;
NotaStarPower[144] = 0;
NotaStarPower[145] = 0;
NotaStarPower[146] = 0;
NotaStarPower[147] = 0;
NotaStarPower[148] = 0;
NotaStarPower[149] = 0;
NotaStarPower[150] = 0;
NotaStarPower[151] = 0;
NotaStarPower[152] = 0;
NotaStarPower[153] = 1;
NotaStarPower[154] = 1;
NotaStarPower[155] = 1;
NotaStarPower[156] = 1;
NotaStarPower[157] = 1;
NotaStarPower[158] = 1;
NotaStarPower[159] = 1;
NotaStarPower[160] = 1;
NotaStarPower[161] = 1;
NotaStarPower[162] = 0;
NotaStarPower[163] = 0;
NotaStarPower[164] = 0;
NotaStarPower[165] = 0;
NotaStarPower[166] = 0;
NotaStarPower[167] = 0;
NotaStarPower[168] = 0;
NotaStarPower[169] = 0;
NotaStarPower[170] = 0;
NotaStarPower[171] = 0;
NotaStarPower[172] = 0;
NotaStarPower[173] = 0;
NotaStarPower[174] = 0;
NotaStarPower[175] = 0;
NotaStarPower[176] = 0;
NotaStarPower[177] = 0;
NotaStarPower[178] = 0;
NotaStarPower[179] = 0;
NotaStarPower[180] = 0;
NotaStarPower[181] = 0;
NotaStarPower[182] = 0;
NotaStarPower[183] = 0;
NotaStarPower[184] = 0;
NotaStarPower[185] = 0;
NotaStarPower[186] = 0;
NotaStarPower[187] = 0;
NotaStarPower[188] = 0;
NotaStarPower[189] = 0;
NotaStarPower[190] = 0;
NotaStarPower[191] = 0;
NotaStarPower[192] = 0;
NotaStarPower[193] = 0;
NotaStarPower[194] = 0;
NotaStarPower[195] = 0;
NotaStarPower[196] = 0;
NotaStarPower[197] = 0;
NotaStarPower[198] = 0;
NotaStarPower[199] = 0;
NotaStarPower[200] = 0;
NotaStarPower[201] = 0;
NotaStarPower[202] = 1;
NotaStarPower[203] = 1;
NotaStarPower[204] = 1;
NotaStarPower[205] = 1;
NotaStarPower[206] = 1;
NotaStarPower[207] = 1;
NotaStarPower[208] = 1;
NotaStarPower[209] = 1;
NotaStarPower[210] = 0;
NotaStarPower[211] = 0;
NotaStarPower[212] = 0;
NotaStarPower[213] = 0;
NotaStarPower[214] = 0;
NotaStarPower[215] = 0;
NotaStarPower[216] = 0;
NotaStarPower[217] = 0;
NotaStarPower[218] = 0;
NotaStarPower[219] = 0;
NotaStarPower[220] = 0;
NotaStarPower[221] = 0;
NotaStarPower[222] = 0;
NotaStarPower[223] = 0;
NotaStarPower[224] = 0;
NotaStarPower[225] = 0;
NotaStarPower[226] = 0;
NotaStarPower[227] = 0;
NotaStarPower[228] = 0;
NotaStarPower[229] = 0;
NotaStarPower[230] = 0;
NotaStarPower[231] = 0;
NotaStarPower[232] = 0;
NotaStarPower[233] = 0;
NotaStarPower[234] = 0;
NotaStarPower[235] = 0;
NotaStarPower[236] = 0;
NotaStarPower[237] = 0;
NotaStarPower[238] = 0;
NotaStarPower[239] = 0;
NotaStarPower[240] = 0;
NotaStarPower[241] = 0;
NotaStarPower[242] = 0;
NotaStarPower[243] = 1;
NotaStarPower[244] = 1;
NotaStarPower[245] = 1;
NotaStarPower[246] = 1;
NotaStarPower[247] = 1;
NotaStarPower[248] = 1;
NotaStarPower[249] = 1;
NotaStarPower[250] = 0;
NotaStarPower[251] = 0;
NotaStarPower[252] = 0;
NotaStarPower[253] = 0;
NotaStarPower[254] = 0;
NotaStarPower[0xFF] = 0;
NotaStarPower[0x0100] = 0;
NotaStarPower[0x0101] = 0;
NotaStarPower[258] = 0;
NotaStarPower[259] = 0;
NotaStarPower[260] = 0;
NotaStarPower[261] = 0;
NotaStarPower[262] = 0;
NotaStarPower[263] = 0;
NotaStarPower[264] = 0;
NotaStarPower[265] = 0;
NotaStarPower[266] = 0;
NotaStarPower[267] = 0;
NotaStarPower[268] = 0;
NotaStarPower[269] = 0;
NotaStarPower[270] = 0;
NotaStarPower[271] = 0;
NotaStarPower[272] = 0;
NotaStarPower[273] = 0;
NotaStarPower[274] = 0;
NotaStarPower[275] = 0;
NotaStarPower[276] = 0;
NotaStarPower[277] = 0;
NotaStarPower[278] = 0;
NotaStarPower[279] = 0;
NotaStarPower[280] = 0;
NotaStarPower[281] = 0;
NotaStarPower[282] = 0;
NotaStarPower[283] = 0;
NotaStarPower[284] = 0;
NotaStarPower[285] = 0;
NotaStarPower[286] = 0;
NotaStarPower[287] = 0;
NotaStarPower[288] = 0;
NotaStarPower[289] = 0;
NotaStarPower[290] = 0;
NotaStarPower[291] = 0;
NotaStarPower[292] = 0;
NotaStarPower[293] = 0;
NotaStarPower[294] = 0;
NotaStarPower[295] = 0;
NotaStarPower[296] = 0;
NotaStarPower[297] = 0;
NotaStarPower[298] = 0;
NotaStarPower[299] = 0;
NotaStarPower[300] = 0;
NotaStarPower[301] = 0;
NotaStarPower[302] = 0;
NotaStarPower[303] = 0;
NotaStarPower[304] = 0;
NotaStarPower[305] = 0;
NotaStarPower[306] = 0;
NotaStarPower[307] = 0;
NotaStarPower[308] = 0;
NotaStarPower[309] = 0;
NotaStarPower[310] = 0;
NotaStarPower[311] = 0;
NotaStarPower[312] = 0;
NotaStarPower[313] = 0;
NotaStarPower[314] = 0;
NotaStarPower[315] = 0;
NotaStarPower[316] = 0;
NotaStarPower[317] = 0;
NotaStarPower[318] = 0;
NotaStarPower[319] = 0;
NotaStarPower[320] = 0;
NotaStarPower[321] = 0;
NotaStarPower[322] = 0;
NotaStarPower[323] = 0;
NotaStarPower[324] = 0;
NotaStarPower[325] = 0;
NotaStarPower[326] = 0;
NotaStarPower[327] = 0;
NotaStarPower[328] = 1;
NotaStarPower[329] = 1;
NotaStarPower[330] = 1;
NotaStarPower[331] = 1;
NotaStarPower[332] = 1;
NotaStarPower[333] = 1;
NotaStarPower[334] = 1;
NotaStarPower[335] = 1;
NotaStarPower[336] = 1;
NotaStarPower[337] = 1;
NotaStarPower[338] = 0;
NotaStarPower[339] = 0;
NotaStarPower[340] = 0;
NotaStarPower[341] = 0;
NotaStarPower[342] = 0;
NotaStarPower[343] = 0;
NotaStarPower[344] = 0;
NotaStarPower[345] = 0;
NotaStarPower[346] = 0;
NotaStarPower[347] = 0;
NotaStarPower[348] = 0;
NotaStarPower[349] = 0;
NotaStarPower[350] = 0;
NotaStarPower[351] = 0;
NotaStarPower[352] = 0;
NotaStarPower[353] = 0;
NotaStarPower[354] = 0;
NotaStarPower[355] = 0;
NotaStarPower[356] = 0;
NotaStarPower[357] = 0;
NotaStarPower[358] = 0;
NotaStarPower[359] = 0;
NotaStarPower[360] = 0;
NotaStarPower[361] = 0;
NotaStarPower[362] = 0;
NotaStarPower[363] = 0;
NotaStarPower[364] = 0;
NotaStarPower[365] = 0;
NotaStarPower[366] = 0;
NotaStarPower[367] = 0;
NotaStarPower[368] = 0;
NotaStarPower[369] = 1;
NotaStarPower[370] = 1;
NotaStarPower[371] = 1;
NotaStarPower[372] = 1;
NotaStarPower[373] = 1;
NotaStarPower[374] = 1;
NotaStarPower[375] = 1;
NotaStarPower[376] = 1;
NotaStarPower[377] = 1;
NotaStarPower[378] = 1;
NotaStarPower[379] = 0;
NotaStarPower[380] = 0;
NotaStarPower[381] = 0;
NotaStarPower[382] = 0;
NotaStarPower[383] = 0;
NotaStarPower[384] = 0;
NotaStarPower[385] = 0;
NotaStarPower[386] = 0;
NotaStarPower[387] = 0;
NotaStarPower[388] = 0;
NotaStarPower[389] = 0;
NotaStarPower[390] = 0;
NotaStarPower[391] = 0;
NotaStarPower[392] = 0;
NotaStarPower[393] = 0;
NotaStarPower[394] = 0;
NotaStarPower[395] = 0;
NotaStarPower[396] = 0;
NotaStarPower[397] = 0;
NotaStarPower[398] = 0;
NotaStarPower[399] = 0;
NotaStarPower[400] = 0;
NotaStarPower[401] = 0;
NotaStarPower[402] = 0;
NotaStarPower[403] = 0;
NotaStarPower[404] = 0;
NotaStarPower[405] = 0;
NotaStarPower[406] = 0;
NotaStarPower[407] = 0;
NotaStarPower[408] = 0;
NotaStarPower[409] = 0;
NotaStarPower[410] = 0;
NotaStarPower[411] = 0;
NotaStarPower[412] = 0;
NotaStarPower[413] = 0;
NotaStarPower[414] = 0;
NotaStarPower[415] = 0;
NotaStarPower[416] = 0;
NotaStarPower[417] = 0;
NotaStarPower[418] = 0;
NotaStarPower[419] = 0;
NotaStarPower[420] = 0;
NotaStarPower[421] = 0;
NotaStarPower[422] = 0;
NotaStarPower[423] = 0;
NotaStarPower[424] = 0;
NotaStarPower[425] = 0;
NotaStarPower[426] = 0;
NotaStarPower[427] = 0;
NotaStarPower[428] = 0;
NotaStarPower[429] = 0;
NotaStarPower[430] = 0;
NotaStarPower[431] = 0;
NotaStarPower[432] = 0;
NotaStarPower[433] = 0;
NotaStarPower[434] = 0;
NotaStarPower[435] = 0;
NotaStarPower[436] = 0;
NotaStarPower[437] = 0;
NotaStarPower[438] = 0;
NotaStarPower[439] = 0;
NotaStarPower[440] = 0;
NotaStarPower[441] = 0;
NotaStarPower[442] = 0;
NotaStarPower[443] = 0;
NotaStarPower[444] = 0;
NotaStarPower[445] = 0;
LargoStar[1] = 9;
LargoStar[2] = 7;
LargoStar[3] = 9;
LargoStar[4] = 8;
LargoStar[5] = 7;
LargoStar[6] = 10;
LargoStar[7] = 10;
}
public function hardTiempos(){
NotaTiempo[1] = 6.0625;
NotaTiempo[2] = 6.25;
NotaTiempo[3] = 6.5625;
NotaTiempo[4] = 6.75;
NotaTiempo[5] = 7.0625;
NotaTiempo[6] = 7.25;
NotaTiempo[7] = 7.5625;
NotaTiempo[8] = 7.75;
NotaTiempo[9] = 8.125;
NotaTiempo[10] = 8.125;
NotaTiempo[11] = 8.4375;
NotaTiempo[12] = 8.4375;
NotaTiempo[13] = 8.8125;
NotaTiempo[14] = 9;
NotaTiempo[15] = 9.3125;
NotaTiempo[16] = 9.5;
NotaTiempo[17] = 9.75;
NotaTiempo[18] = 9.9375;
NotaTiempo[19] = 10.25;
NotaTiempo[20] = 10.4375;
NotaTiempo[21] = 10.8125;
NotaTiempo[22] = 11.375;
NotaTiempo[23] = 11.5625;
NotaTiempo[24] = 11.9375;
NotaTiempo[25] = 12.125;
NotaTiempo[26] = 12.4375;
NotaTiempo[27] = 12.625;
NotaTiempo[28] = 12.9375;
NotaTiempo[29] = 13.125;
NotaTiempo[30] = 13.4375;
NotaTiempo[31] = 13.4375;
NotaTiempo[32] = 13.75;
NotaTiempo[33] = 13.75;
NotaTiempo[34] = 14.125;
NotaTiempo[35] = 14.3125;
NotaTiempo[36] = 14.625;
NotaTiempo[37] = 14.8125;
NotaTiempo[38] = 15.0625;
NotaTiempo[39] = 15.25;
NotaTiempo[40] = 15.5625;
NotaTiempo[41] = 15.75;
NotaTiempo[42] = 16.1875;
NotaTiempo[43] = 16.9375;
NotaTiempo[44] = 16.9375;
NotaTiempo[45] = 17.625;
NotaTiempo[46] = 18.25;
NotaTiempo[47] = 18.25;
NotaTiempo[48] = 18.9375;
NotaTiempo[49] = 19.5625;
NotaTiempo[50] = 19.5625;
NotaTiempo[51] = 20.25;
NotaTiempo[52] = 20.9375;
NotaTiempo[53] = 20.9375;
NotaTiempo[54] = 21.625;
NotaTiempo[55] = 22.3125;
NotaTiempo[56] = 22.3125;
NotaTiempo[57] = 23;
NotaTiempo[58] = 23.6875;
NotaTiempo[59] = 23.6875;
NotaTiempo[60] = 24.375;
NotaTiempo[61] = 25.0625;
NotaTiempo[62] = 25.0625;
NotaTiempo[63] = 25.75;
NotaTiempo[64] = 26.4375;
NotaTiempo[65] = 26.4375;
NotaTiempo[66] = 27.0625;
NotaTiempo[67] = 27.75;
NotaTiempo[68] = 28.25;
NotaTiempo[69] = 28.25;
NotaTiempo[70] = 28.5;
NotaTiempo[71] = 28.875;
NotaTiempo[72] = 29.1875;
NotaTiempo[73] = 29.1875;
NotaTiempo[74] = 29.5;
NotaTiempo[75] = 29.8125;
NotaTiempo[76] = 29.8125;
NotaTiempo[77] = 30.1875;
NotaTiempo[78] = 30.1875;
NotaTiempo[79] = 30.5;
NotaTiempo[80] = 30.875;
NotaTiempo[81] = 31.1875;
NotaTiempo[82] = 31.75;
NotaTiempo[83] = 31.9375;
NotaTiempo[84] = 31.9375;
NotaTiempo[85] = 32.25;
NotaTiempo[86] = 32.5625;
NotaTiempo[87] = 32.5625;
NotaTiempo[88] = 33.1875;
NotaTiempo[89] = 33.5;
NotaTiempo[90] = 33.875;
NotaTiempo[91] = 34.4375;
NotaTiempo[92] = 34.625;
NotaTiempo[93] = 34.9375;
NotaTiempo[94] = 35.25;
NotaTiempo[95] = 35.5625;
NotaTiempo[96] = 35.9375;
NotaTiempo[97] = 36.3125;
NotaTiempo[98] = 36.625;
NotaTiempo[99] = 37.1875;
NotaTiempo[100] = 37.375;
NotaTiempo[101] = 37.625;
NotaTiempo[102] = 38.0625;
NotaTiempo[103] = 38.0625;
NotaTiempo[104] = 38.6875;
NotaTiempo[105] = 38.6875;
NotaTiempo[106] = 39.3125;
NotaTiempo[107] = 39.9375;
NotaTiempo[108] = 39.9375;
NotaTiempo[109] = 40.625;
NotaTiempo[110] = 41.25;
NotaTiempo[111] = 41.25;
NotaTiempo[112] = 41.9375;
NotaTiempo[113] = 42.625;
NotaTiempo[114] = 42.625;
NotaTiempo[115] = 43.3125;
NotaTiempo[116] = 44.125;
NotaTiempo[117] = 44.5625;
NotaTiempo[118] = 44.5625;
NotaTiempo[119] = 44.875;
NotaTiempo[120] = 45.1875;
NotaTiempo[121] = 45.5;
NotaTiempo[122] = 45.8125;
NotaTiempo[123] = 46.125;
NotaTiempo[124] = 46.125;
NotaTiempo[125] = 46.5;
NotaTiempo[126] = 46.875;
NotaTiempo[127] = 47.1875;
NotaTiempo[128] = 47.5;
NotaTiempo[129] = 48.125;
NotaTiempo[130] = 48.3125;
NotaTiempo[131] = 48.625;
NotaTiempo[132] = 48.9375;
NotaTiempo[133] = 48.9375;
NotaTiempo[134] = 49.5625;
NotaTiempo[135] = 49.5625;
NotaTiempo[136] = 49.875;
NotaTiempo[137] = 50.25;
NotaTiempo[138] = 50.8125;
NotaTiempo[139] = 51.0625;
NotaTiempo[140] = 51.375;
NotaTiempo[141] = 51.625;
NotaTiempo[142] = 51.625;
NotaTiempo[143] = 51.9375;
NotaTiempo[144] = 52.3125;
NotaTiempo[145] = 52.3125;
NotaTiempo[146] = 52.625;
NotaTiempo[147] = 52.9375;
NotaTiempo[148] = 53.5;
NotaTiempo[149] = 53.6875;
NotaTiempo[150] = 54.0625;
NotaTiempo[151] = 54.4375;
NotaTiempo[152] = 54.4375;
NotaTiempo[153] = 55.0625;
NotaTiempo[154] = 55.375;
NotaTiempo[155] = 55.6875;
NotaTiempo[156] = 56.25;
NotaTiempo[157] = 56.5;
NotaTiempo[158] = 56.8125;
NotaTiempo[159] = 57.125;
NotaTiempo[160] = 57.125;
NotaTiempo[161] = 57.5;
NotaTiempo[162] = 57.8125;
NotaTiempo[163] = 58.125;
NotaTiempo[164] = 58.4375;
NotaTiempo[165] = 59;
NotaTiempo[166] = 59.1875;
NotaTiempo[167] = 59.1875;
NotaTiempo[168] = 59.5625;
NotaTiempo[169] = 59.8125;
NotaTiempo[170] = 60.125;
NotaTiempo[171] = 60.125;
NotaTiempo[172] = 60.5;
NotaTiempo[173] = 60.8125;
NotaTiempo[174] = 61.1875;
NotaTiempo[175] = 61.5;
NotaTiempo[176] = 61.8125;
NotaTiempo[177] = 61.8125;
NotaTiempo[178] = 62.1875;
NotaTiempo[179] = 62.5;
NotaTiempo[180] = 62.5;
NotaTiempo[181] = 63.3125;
NotaTiempo[182] = 63.5625;
NotaTiempo[183] = 63.75;
NotaTiempo[184] = 63.9375;
NotaTiempo[185] = 63.9375;
NotaTiempo[186] = 64.4375;
NotaTiempo[187] = 64.625;
NotaTiempo[188] = 65;
NotaTiempo[189] = 65.3125;
NotaTiempo[190] = 65.9375;
NotaTiempo[191] = 66.4375;
NotaTiempo[192] = 66.4375;
NotaTiempo[193] = 66.625;
NotaTiempo[194] = 66.625;
NotaTiempo[195] = 66.875;
NotaTiempo[196] = 67.3125;
NotaTiempo[197] = 67.3125;
NotaTiempo[198] = 67.625;
NotaTiempo[199] = 67.9375;
NotaTiempo[200] = 67.9375;
NotaTiempo[201] = 68.6875;
NotaTiempo[202] = 68.9375;
NotaTiempo[203] = 69.125;
NotaTiempo[204] = 69.3125;
NotaTiempo[205] = 69.3125;
NotaTiempo[206] = 69.875;
NotaTiempo[207] = 70.0625;
NotaTiempo[208] = 70.375;
NotaTiempo[209] = 70.6875;
NotaTiempo[210] = 71.5;
NotaTiempo[211] = 71.5;
NotaTiempo[212] = 72.1875;
NotaTiempo[213] = 72.1875;
NotaTiempo[214] = 72.75;
NotaTiempo[215] = 72.9375;
NotaTiempo[216] = 73.125;
NotaTiempo[217] = 73.375;
NotaTiempo[218] = 73.5625;
NotaTiempo[219] = 73.75;
NotaTiempo[220] = 73.9375;
NotaTiempo[221] = 74.125;
NotaTiempo[222] = 74.3125;
NotaTiempo[223] = 74.3125;
NotaTiempo[224] = 74.875;
NotaTiempo[225] = 75.0625;
NotaTiempo[226] = 75.25;
NotaTiempo[227] = 75.4375;
NotaTiempo[228] = 75.75;
NotaTiempo[229] = 75.75;
NotaTiempo[230] = 77;
NotaTiempo[231] = 77.1875;
NotaTiempo[232] = 77.375;
NotaTiempo[233] = 77.5625;
NotaTiempo[234] = 77.6875;
NotaTiempo[235] = 77.875;
NotaTiempo[236] = 78.0625;
NotaTiempo[237] = 78.25;
NotaTiempo[238] = 78.375;
NotaTiempo[239] = 78.5625;
NotaTiempo[240] = 78.75;
NotaTiempo[241] = 79.0625;
NotaTiempo[242] = 79.0625;
NotaTiempo[243] = 80;
NotaTiempo[244] = 80.1875;
NotaTiempo[245] = 80.375;
NotaTiempo[246] = 80.5625;
NotaTiempo[247] = 80.75;
NotaTiempo[248] = 81.6875;
NotaTiempo[249] = 81.6875;
NotaTiempo[250] = 82.25;
NotaTiempo[251] = 82.4375;
NotaTiempo[252] = 82.625;
NotaTiempo[253] = 82.8125;
NotaTiempo[254] = 83;
NotaTiempo[0xFF] = 83.1875;
NotaTiempo[0x0100] = 83.375;
NotaTiempo[0x0101] = 83.5625;
NotaTiempo[258] = 83.8125;
NotaTiempo[259] = 83.8125;
NotaTiempo[260] = 84.375;
NotaTiempo[261] = 84.5625;
NotaTiempo[262] = 84.75;
NotaTiempo[263] = 84.9375;
NotaTiempo[264] = 85.0625;
NotaTiempo[265] = 85.25;
NotaTiempo[266] = 85.4375;
NotaTiempo[267] = 85.625;
NotaTiempo[268] = 85.75;
NotaTiempo[269] = 85.9375;
NotaTiempo[270] = 86.125;
NotaTiempo[271] = 86.3125;
NotaTiempo[272] = 86.5;
NotaTiempo[273] = 86.5;
NotaTiempo[274] = 87.125;
NotaTiempo[275] = 87.125;
NotaTiempo[276] = 87.875;
NotaTiempo[277] = 88.0625;
NotaTiempo[278] = 88.25;
NotaTiempo[279] = 88.5;
NotaTiempo[280] = 88.5;
NotaTiempo[281] = 88.6875;
NotaTiempo[282] = 88.6875;
NotaTiempo[283] = 88.875;
NotaTiempo[284] = 88.875;
NotaTiempo[285] = 89.125;
NotaTiempo[286] = 89.3125;
NotaTiempo[287] = 89.5;
NotaTiempo[288] = 89.75;
NotaTiempo[289] = 89.75;
NotaTiempo[290] = 89.9375;
NotaTiempo[291] = 89.9375;
NotaTiempo[292] = 90.125;
NotaTiempo[293] = 90.125;
NotaTiempo[294] = 90.375;
NotaTiempo[295] = 90.5625;
NotaTiempo[296] = 90.75;
NotaTiempo[297] = 91;
NotaTiempo[298] = 91;
NotaTiempo[299] = 91.1875;
NotaTiempo[300] = 91.1875;
NotaTiempo[301] = 91.375;
NotaTiempo[302] = 91.375;
NotaTiempo[303] = 91.5625;
NotaTiempo[304] = 91.5625;
NotaTiempo[305] = 91.75;
NotaTiempo[306] = 91.9375;
NotaTiempo[307] = 92.125;
NotaTiempo[308] = 92.3125;
NotaTiempo[309] = 92.5;
NotaTiempo[310] = 115.0625;
NotaTiempo[311] = 115.5;
NotaTiempo[312] = 115.5;
NotaTiempo[313] = 115.75;
NotaTiempo[314] = 116.125;
NotaTiempo[315] = 116.4375;
NotaTiempo[316] = 116.75;
NotaTiempo[317] = 117.125;
NotaTiempo[318] = 117.125;
NotaTiempo[319] = 117.4375;
NotaTiempo[320] = 117.75;
NotaTiempo[321] = 118.0625;
NotaTiempo[322] = 118.375;
NotaTiempo[323] = 118.9375;
NotaTiempo[324] = 119.125;
NotaTiempo[325] = 119.4375;
NotaTiempo[326] = 119.8125;
NotaTiempo[327] = 119.8125;
NotaTiempo[328] = 120.5;
NotaTiempo[329] = 120.8125;
NotaTiempo[330] = 120.8125;
NotaTiempo[331] = 121.1875;
NotaTiempo[332] = 121.6875;
NotaTiempo[333] = 121.875;
NotaTiempo[334] = 122.25;
NotaTiempo[335] = 122.5625;
NotaTiempo[336] = 122.5625;
NotaTiempo[337] = 122.875;
NotaTiempo[338] = 123.3125;
NotaTiempo[339] = 123.625;
NotaTiempo[340] = 123.9375;
NotaTiempo[341] = 123.9375;
NotaTiempo[342] = 124.4375;
NotaTiempo[343] = 124.625;
NotaTiempo[344] = 125;
NotaTiempo[345] = 125.3125;
NotaTiempo[346] = 125.3125;
NotaTiempo[347] = 126;
NotaTiempo[348] = 126.3125;
NotaTiempo[349] = 126.625;
NotaTiempo[350] = 126.625;
NotaTiempo[351] = 127.1875;
NotaTiempo[352] = 127.4375;
NotaTiempo[353] = 127.4375;
NotaTiempo[354] = 127.75;
NotaTiempo[355] = 128.0625;
NotaTiempo[356] = 128.375;
NotaTiempo[357] = 128.375;
NotaTiempo[358] = 128.6875;
NotaTiempo[359] = 129;
NotaTiempo[360] = 129.3125;
NotaTiempo[361] = 129.3125;
NotaTiempo[362] = 129.875;
NotaTiempo[363] = 130.0625;
NotaTiempo[364] = 130.0625;
NotaTiempo[365] = 130.375;
NotaTiempo[366] = 130.6875;
NotaTiempo[367] = 131;
NotaTiempo[368] = 131;
NotaTiempo[369] = 131.5;
NotaTiempo[370] = 131.8125;
NotaTiempo[371] = 132.1875;
NotaTiempo[372] = 132.4375;
NotaTiempo[373] = 132.8125;
NotaTiempo[374] = 132.8125;
NotaTiempo[375] = 133.1875;
NotaTiempo[376] = 133.1875;
NotaTiempo[377] = 133.5;
NotaTiempo[378] = 133.5;
NotaTiempo[379] = 134.25;
NotaTiempo[380] = 134.5;
NotaTiempo[381] = 134.6875;
NotaTiempo[382] = 134.875;
NotaTiempo[383] = 134.875;
NotaTiempo[384] = 135.4375;
NotaTiempo[385] = 135.625;
NotaTiempo[386] = 135.9375;
NotaTiempo[387] = 136.25;
NotaTiempo[388] = 136.25;
NotaTiempo[389] = 136.8125;
NotaTiempo[390] = 137.3125;
NotaTiempo[391] = 137.5;
NotaTiempo[392] = 137.8125;
NotaTiempo[393] = 138.25;
NotaTiempo[394] = 138.25;
NotaTiempo[395] = 138.5625;
NotaTiempo[396] = 138.5625;
NotaTiempo[397] = 138.875;
NotaTiempo[398] = 138.875;
NotaTiempo[399] = 139.625;
NotaTiempo[400] = 139.875;
NotaTiempo[401] = 140.0625;
NotaTiempo[402] = 140.25;
NotaTiempo[403] = 140.75;
NotaTiempo[404] = 140.9375;
NotaTiempo[405] = 141.3125;
NotaTiempo[406] = 141.3125;
NotaTiempo[407] = 141.625;
NotaTiempo[408] = 141.625;
NotaTiempo[409] = 142.4375;
NotaTiempo[410] = 142.6875;
NotaTiempo[411] = 143.0625;
NotaTiempo[412] = 143.0625;
NotaTiempo[413] = 143.75;
NotaTiempo[414] = 144.0625;
NotaTiempo[415] = 144.375;
NotaTiempo[416] = 144.375;
NotaTiempo[417] = 145.125;
NotaTiempo[418] = 145.4375;
NotaTiempo[419] = 145.75;
NotaTiempo[420] = 145.75;
NotaTiempo[421] = 146.5;
NotaTiempo[422] = 146.8125;
NotaTiempo[423] = 147.1875;
NotaTiempo[424] = 147.1875;
NotaTiempo[425] = 147.875;
NotaTiempo[426] = 148.1875;
NotaTiempo[427] = 148.625;
NotaTiempo[428] = 148.625;
NotaTiempo[429] = 149.25;
NotaTiempo[430] = 149.5;
NotaTiempo[431] = 149.875;
NotaTiempo[432] = 149.875;
NotaTiempo[433] = 150.5625;
NotaTiempo[434] = 150.875;
NotaTiempo[435] = 151.25;
NotaTiempo[436] = 151.25;
NotaTiempo[437] = 152;
NotaTiempo[438] = 152.25;
NotaTiempo[439] = 152.6875;
NotaTiempo[440] = 152.6875;
NotaTiempo[441] = 153.3125;
NotaTiempo[442] = 153.3125;
NotaTiempo[443] = 153.625;
NotaTiempo[444] = 153.625;
NotaTiempo[445] = -1;
}
public function hardColores(){
NotaColorTotal[1] = 0;
NotaColorTotal[2] = 1;
NotaColorTotal[3] = 0;
NotaColorTotal[4] = 1;
NotaColorTotal[5] = 0;
NotaColorTotal[6] = 1;
NotaColorTotal[7] = 0;
NotaColorTotal[8] = 1;
NotaColorTotal[9] = 3;
NotaColorTotal[10] = 4;
NotaColorTotal[11] = 3;
NotaColorTotal[12] = 4;
NotaColorTotal[13] = 0;
NotaColorTotal[14] = 1;
NotaColorTotal[15] = 0;
NotaColorTotal[16] = 1;
NotaColorTotal[17] = 0;
NotaColorTotal[18] = 1;
NotaColorTotal[19] = 0;
NotaColorTotal[20] = 1;
NotaColorTotal[21] = 0;
NotaColorTotal[22] = 0;
NotaColorTotal[23] = 1;
NotaColorTotal[24] = 0;
NotaColorTotal[25] = 1;
NotaColorTotal[26] = 0;
NotaColorTotal[27] = 1;
NotaColorTotal[28] = 0;
NotaColorTotal[29] = 1;
NotaColorTotal[30] = 3;
NotaColorTotal[31] = 4;
NotaColorTotal[32] = 3;
NotaColorTotal[33] = 4;
NotaColorTotal[34] = 0;
NotaColorTotal[35] = 1;
NotaColorTotal[36] = 0;
NotaColorTotal[37] = 1;
NotaColorTotal[38] = 0;
NotaColorTotal[39] = 1;
NotaColorTotal[40] = 0;
NotaColorTotal[41] = 1;
NotaColorTotal[42] = 0;
NotaColorTotal[43] = 2;
NotaColorTotal[44] = 3;
NotaColorTotal[45] = 1;
NotaColorTotal[46] = 2;
NotaColorTotal[47] = 4;
NotaColorTotal[48] = 1;
NotaColorTotal[49] = 2;
NotaColorTotal[50] = 3;
NotaColorTotal[51] = 1;
NotaColorTotal[52] = 2;
NotaColorTotal[53] = 4;
NotaColorTotal[54] = 1;
NotaColorTotal[55] = 2;
NotaColorTotal[56] = 3;
NotaColorTotal[57] = 1;
NotaColorTotal[58] = 2;
NotaColorTotal[59] = 4;
NotaColorTotal[60] = 1;
NotaColorTotal[61] = 2;
NotaColorTotal[62] = 3;
NotaColorTotal[63] = 1;
NotaColorTotal[64] = 2;
NotaColorTotal[65] = 4;
NotaColorTotal[66] = 1;
NotaColorTotal[67] = 3;
NotaColorTotal[68] = 1;
NotaColorTotal[69] = 2;
NotaColorTotal[70] = 1;
NotaColorTotal[71] = 0;
NotaColorTotal[72] = 2;
NotaColorTotal[73] = 3;
NotaColorTotal[74] = 1;
NotaColorTotal[75] = 3;
NotaColorTotal[76] = 4;
NotaColorTotal[77] = 1;
NotaColorTotal[78] = 2;
NotaColorTotal[79] = 3;
NotaColorTotal[80] = 3;
NotaColorTotal[81] = 4;
NotaColorTotal[82] = 1;
NotaColorTotal[83] = 2;
NotaColorTotal[84] = 3;
NotaColorTotal[85] = 2;
NotaColorTotal[86] = 0;
NotaColorTotal[87] = 1;
NotaColorTotal[88] = 2;
NotaColorTotal[89] = 1;
NotaColorTotal[90] = 1;
NotaColorTotal[91] = 0;
NotaColorTotal[92] = 2;
NotaColorTotal[93] = 1;
NotaColorTotal[94] = 2;
NotaColorTotal[95] = 0;
NotaColorTotal[96] = 4;
NotaColorTotal[97] = 1;
NotaColorTotal[98] = 0;
NotaColorTotal[99] = 2;
NotaColorTotal[100] = 3;
NotaColorTotal[101] = 1;
NotaColorTotal[102] = 0;
NotaColorTotal[103] = 1;
NotaColorTotal[104] = 2;
NotaColorTotal[105] = 3;
NotaColorTotal[106] = 1;
NotaColorTotal[107] = 2;
NotaColorTotal[108] = 4;
NotaColorTotal[109] = 1;
NotaColorTotal[110] = 2;
NotaColorTotal[111] = 3;
NotaColorTotal[112] = 1;
NotaColorTotal[113] = 2;
NotaColorTotal[114] = 4;
NotaColorTotal[115] = 1;
NotaColorTotal[116] = 3;
NotaColorTotal[117] = 1;
NotaColorTotal[118] = 2;
NotaColorTotal[119] = 1;
NotaColorTotal[120] = 0;
NotaColorTotal[121] = 2;
NotaColorTotal[122] = 1;
NotaColorTotal[123] = 3;
NotaColorTotal[124] = 4;
NotaColorTotal[125] = 2;
NotaColorTotal[126] = 3;
NotaColorTotal[127] = 3;
NotaColorTotal[128] = 4;
NotaColorTotal[129] = 1;
NotaColorTotal[130] = 2;
NotaColorTotal[131] = 1;
NotaColorTotal[132] = 0;
NotaColorTotal[133] = 2;
NotaColorTotal[134] = 2;
NotaColorTotal[135] = 3;
NotaColorTotal[136] = 2;
NotaColorTotal[137] = 1;
NotaColorTotal[138] = 0;
NotaColorTotal[139] = 2;
NotaColorTotal[140] = 1;
NotaColorTotal[141] = 3;
NotaColorTotal[142] = 4;
NotaColorTotal[143] = 0;
NotaColorTotal[144] = 2;
NotaColorTotal[145] = 3;
NotaColorTotal[146] = 1;
NotaColorTotal[147] = 0;
NotaColorTotal[148] = 0;
NotaColorTotal[149] = 2;
NotaColorTotal[150] = 1;
NotaColorTotal[151] = 0;
NotaColorTotal[152] = 1;
NotaColorTotal[153] = 3;
NotaColorTotal[154] = 3;
NotaColorTotal[155] = 4;
NotaColorTotal[156] = 1;
NotaColorTotal[157] = 2;
NotaColorTotal[158] = 1;
NotaColorTotal[159] = 2;
NotaColorTotal[160] = 3;
NotaColorTotal[161] = 0;
NotaColorTotal[162] = 3;
NotaColorTotal[163] = 3;
NotaColorTotal[164] = 4;
NotaColorTotal[165] = 1;
NotaColorTotal[166] = 2;
NotaColorTotal[167] = 3;
NotaColorTotal[168] = 1;
NotaColorTotal[169] = 2;
NotaColorTotal[170] = 0;
NotaColorTotal[171] = 1;
NotaColorTotal[172] = 3;
NotaColorTotal[173] = 3;
NotaColorTotal[174] = 3;
NotaColorTotal[175] = 1;
NotaColorTotal[176] = 2;
NotaColorTotal[177] = 3;
NotaColorTotal[178] = 1;
NotaColorTotal[179] = 0;
NotaColorTotal[180] = 1;
NotaColorTotal[181] = 0;
NotaColorTotal[182] = 2;
NotaColorTotal[183] = 1;
NotaColorTotal[184] = 3;
NotaColorTotal[185] = 4;
NotaColorTotal[186] = 1;
NotaColorTotal[187] = 1;
NotaColorTotal[188] = 2;
NotaColorTotal[189] = 1;
NotaColorTotal[190] = 4;
NotaColorTotal[191] = 3;
NotaColorTotal[192] = 4;
NotaColorTotal[193] = 3;
NotaColorTotal[194] = 4;
NotaColorTotal[195] = 1;
NotaColorTotal[196] = 2;
NotaColorTotal[197] = 3;
NotaColorTotal[198] = 1;
NotaColorTotal[199] = 0;
NotaColorTotal[200] = 1;
NotaColorTotal[201] = 0;
NotaColorTotal[202] = 2;
NotaColorTotal[203] = 1;
NotaColorTotal[204] = 3;
NotaColorTotal[205] = 4;
NotaColorTotal[206] = 1;
NotaColorTotal[207] = 1;
NotaColorTotal[208] = 2;
NotaColorTotal[209] = 1;
NotaColorTotal[210] = 0;
NotaColorTotal[211] = 2;
NotaColorTotal[212] = 1;
NotaColorTotal[213] = 3;
NotaColorTotal[214] = 0;
NotaColorTotal[215] = 1;
NotaColorTotal[216] = 2;
NotaColorTotal[217] = 1;
NotaColorTotal[218] = 3;
NotaColorTotal[219] = 1;
NotaColorTotal[220] = 0;
NotaColorTotal[221] = 1;
NotaColorTotal[222] = 2;
NotaColorTotal[223] = 3;
NotaColorTotal[224] = 3;
NotaColorTotal[225] = 1;
NotaColorTotal[226] = 2;
NotaColorTotal[227] = 1;
NotaColorTotal[228] = 0;
NotaColorTotal[229] = 3;
NotaColorTotal[230] = 1;
NotaColorTotal[231] = 1;
NotaColorTotal[232] = 1;
NotaColorTotal[233] = 1;
NotaColorTotal[234] = 2;
NotaColorTotal[235] = 2;
NotaColorTotal[236] = 2;
NotaColorTotal[237] = 2;
NotaColorTotal[238] = 1;
NotaColorTotal[239] = 1;
NotaColorTotal[240] = 1;
NotaColorTotal[241] = 1;
NotaColorTotal[242] = 4;
NotaColorTotal[243] = 1;
NotaColorTotal[244] = 0;
NotaColorTotal[245] = 1;
NotaColorTotal[246] = 1;
NotaColorTotal[247] = 4;
NotaColorTotal[248] = 1;
NotaColorTotal[249] = 3;
NotaColorTotal[250] = 2;
NotaColorTotal[251] = 2;
NotaColorTotal[252] = 2;
NotaColorTotal[253] = 2;
NotaColorTotal[254] = 1;
NotaColorTotal[0xFF] = 1;
NotaColorTotal[0x0100] = 1;
NotaColorTotal[0x0101] = 1;
NotaColorTotal[258] = 0;
NotaColorTotal[259] = 3;
NotaColorTotal[260] = 2;
NotaColorTotal[261] = 2;
NotaColorTotal[262] = 2;
NotaColorTotal[263] = 2;
NotaColorTotal[264] = 1;
NotaColorTotal[265] = 1;
NotaColorTotal[266] = 1;
NotaColorTotal[267] = 1;
NotaColorTotal[268] = 2;
NotaColorTotal[269] = 2;
NotaColorTotal[270] = 2;
NotaColorTotal[271] = 3;
NotaColorTotal[272] = 1;
NotaColorTotal[273] = 2;
NotaColorTotal[274] = 0;
NotaColorTotal[275] = 1;
NotaColorTotal[276] = 0;
NotaColorTotal[277] = 0;
NotaColorTotal[278] = 0;
NotaColorTotal[279] = 0;
NotaColorTotal[280] = 1;
NotaColorTotal[281] = 0;
NotaColorTotal[282] = 1;
NotaColorTotal[283] = 0;
NotaColorTotal[284] = 1;
NotaColorTotal[285] = 1;
NotaColorTotal[286] = 1;
NotaColorTotal[287] = 1;
NotaColorTotal[288] = 1;
NotaColorTotal[289] = 2;
NotaColorTotal[290] = 1;
NotaColorTotal[291] = 2;
NotaColorTotal[292] = 1;
NotaColorTotal[293] = 2;
NotaColorTotal[294] = 2;
NotaColorTotal[295] = 2;
NotaColorTotal[296] = 2;
NotaColorTotal[297] = 2;
NotaColorTotal[298] = 3;
NotaColorTotal[299] = 2;
NotaColorTotal[300] = 3;
NotaColorTotal[301] = 2;
NotaColorTotal[302] = 3;
NotaColorTotal[303] = 2;
NotaColorTotal[304] = 3;
NotaColorTotal[305] = 3;
NotaColorTotal[306] = 3;
NotaColorTotal[307] = 3;
NotaColorTotal[308] = 3;
NotaColorTotal[309] = 4;
NotaColorTotal[310] = 3;
NotaColorTotal[311] = 1;
NotaColorTotal[312] = 2;
NotaColorTotal[313] = 1;
NotaColorTotal[314] = 0;
NotaColorTotal[315] = 2;
NotaColorTotal[316] = 1;
NotaColorTotal[317] = 3;
NotaColorTotal[318] = 4;
NotaColorTotal[319] = 1;
NotaColorTotal[320] = 4;
NotaColorTotal[321] = 4;
NotaColorTotal[322] = 4;
NotaColorTotal[323] = 1;
NotaColorTotal[324] = 2;
NotaColorTotal[325] = 1;
NotaColorTotal[326] = 0;
NotaColorTotal[327] = 1;
NotaColorTotal[328] = 3;
NotaColorTotal[329] = 1;
NotaColorTotal[330] = 2;
NotaColorTotal[331] = 1;
NotaColorTotal[332] = 0;
NotaColorTotal[333] = 2;
NotaColorTotal[334] = 1;
NotaColorTotal[335] = 3;
NotaColorTotal[336] = 4;
NotaColorTotal[337] = 0;
NotaColorTotal[338] = 3;
NotaColorTotal[339] = 2;
NotaColorTotal[340] = 0;
NotaColorTotal[341] = 2;
NotaColorTotal[342] = 0;
NotaColorTotal[343] = 2;
NotaColorTotal[344] = 1;
NotaColorTotal[345] = 0;
NotaColorTotal[346] = 1;
NotaColorTotal[347] = 3;
NotaColorTotal[348] = 3;
NotaColorTotal[349] = 3;
NotaColorTotal[350] = 4;
NotaColorTotal[351] = 1;
NotaColorTotal[352] = 2;
NotaColorTotal[353] = 3;
NotaColorTotal[354] = 1;
NotaColorTotal[355] = 2;
NotaColorTotal[356] = 0;
NotaColorTotal[357] = 1;
NotaColorTotal[358] = 3;
NotaColorTotal[359] = 3;
NotaColorTotal[360] = 3;
NotaColorTotal[361] = 4;
NotaColorTotal[362] = 1;
NotaColorTotal[363] = 2;
NotaColorTotal[364] = 3;
NotaColorTotal[365] = 1;
NotaColorTotal[366] = 2;
NotaColorTotal[367] = 0;
NotaColorTotal[368] = 1;
NotaColorTotal[369] = 4;
NotaColorTotal[370] = 4;
NotaColorTotal[371] = 4;
NotaColorTotal[372] = 1;
NotaColorTotal[373] = 2;
NotaColorTotal[374] = 3;
NotaColorTotal[375] = 1;
NotaColorTotal[376] = 2;
NotaColorTotal[377] = 0;
NotaColorTotal[378] = 1;
NotaColorTotal[379] = 0;
NotaColorTotal[380] = 2;
NotaColorTotal[381] = 1;
NotaColorTotal[382] = 2;
NotaColorTotal[383] = 4;
NotaColorTotal[384] = 1;
NotaColorTotal[385] = 1;
NotaColorTotal[386] = 2;
NotaColorTotal[387] = 0;
NotaColorTotal[388] = 1;
NotaColorTotal[389] = 4;
NotaColorTotal[390] = 4;
NotaColorTotal[391] = 4;
NotaColorTotal[392] = 1;
NotaColorTotal[393] = 2;
NotaColorTotal[394] = 3;
NotaColorTotal[395] = 1;
NotaColorTotal[396] = 2;
NotaColorTotal[397] = 0;
NotaColorTotal[398] = 1;
NotaColorTotal[399] = 0;
NotaColorTotal[400] = 2;
NotaColorTotal[401] = 1;
NotaColorTotal[402] = 4;
NotaColorTotal[403] = 1;
NotaColorTotal[404] = 1;
NotaColorTotal[405] = 2;
NotaColorTotal[406] = 3;
NotaColorTotal[407] = 0;
NotaColorTotal[408] = 1;
NotaColorTotal[409] = 1;
NotaColorTotal[410] = 0;
NotaColorTotal[411] = 1;
NotaColorTotal[412] = 4;
NotaColorTotal[413] = 2;
NotaColorTotal[414] = 0;
NotaColorTotal[415] = 1;
NotaColorTotal[416] = 4;
NotaColorTotal[417] = 2;
NotaColorTotal[418] = 0;
NotaColorTotal[419] = 1;
NotaColorTotal[420] = 4;
NotaColorTotal[421] = 2;
NotaColorTotal[422] = 0;
NotaColorTotal[423] = 1;
NotaColorTotal[424] = 4;
NotaColorTotal[425] = 2;
NotaColorTotal[426] = 0;
NotaColorTotal[427] = 1;
NotaColorTotal[428] = 4;
NotaColorTotal[429] = 2;
NotaColorTotal[430] = 0;
NotaColorTotal[431] = 1;
NotaColorTotal[432] = 4;
NotaColorTotal[433] = 2;
NotaColorTotal[434] = 0;
NotaColorTotal[435] = 1;
NotaColorTotal[436] = 4;
NotaColorTotal[437] = 2;
NotaColorTotal[438] = 0;
NotaColorTotal[439] = 1;
NotaColorTotal[440] = 4;
NotaColorTotal[441] = 2;
NotaColorTotal[442] = 4;
NotaColorTotal[443] = 3;
NotaColorTotal[444] = 4;
}
public function easyColores(){
NotaColorTotal[1] = 0;
NotaColorTotal[2] = 1;
NotaColorTotal[3] = 0;
NotaColorTotal[4] = 1;
NotaColorTotal[5] = 0;
NotaColorTotal[6] = 1;
NotaColorTotal[7] = 0;
NotaColorTotal[8] = 1;
NotaColorTotal[9] = 2;
NotaColorTotal[10] = 2;
NotaColorTotal[11] = 0;
NotaColorTotal[12] = 1;
NotaColorTotal[13] = 0;
NotaColorTotal[14] = 1;
NotaColorTotal[15] = 0;
NotaColorTotal[16] = 1;
NotaColorTotal[17] = 0;
NotaColorTotal[18] = 1;
NotaColorTotal[19] = 0;
NotaColorTotal[20] = 0;
NotaColorTotal[21] = 1;
NotaColorTotal[22] = 0;
NotaColorTotal[23] = 1;
NotaColorTotal[24] = 0;
NotaColorTotal[25] = 1;
NotaColorTotal[26] = 0;
NotaColorTotal[27] = 1;
NotaColorTotal[28] = 2;
NotaColorTotal[29] = 2;
NotaColorTotal[30] = 0;
NotaColorTotal[31] = 1;
NotaColorTotal[32] = 0;
NotaColorTotal[33] = 1;
NotaColorTotal[34] = 0;
NotaColorTotal[35] = 1;
NotaColorTotal[36] = 0;
NotaColorTotal[37] = 1;
NotaColorTotal[38] = 0;
NotaColorTotal[39] = 2;
NotaColorTotal[40] = 1;
NotaColorTotal[41] = 2;
NotaColorTotal[42] = 1;
NotaColorTotal[43] = 2;
NotaColorTotal[44] = 1;
NotaColorTotal[45] = 2;
NotaColorTotal[46] = 1;
NotaColorTotal[47] = 2;
NotaColorTotal[48] = 1;
NotaColorTotal[49] = 2;
NotaColorTotal[50] = 1;
NotaColorTotal[51] = 2;
NotaColorTotal[52] = 1;
NotaColorTotal[53] = 2;
NotaColorTotal[54] = 1;
NotaColorTotal[55] = 2;
NotaColorTotal[56] = 1;
NotaColorTotal[57] = 2;
NotaColorTotal[58] = 1;
NotaColorTotal[59] = 0;
NotaColorTotal[60] = 2;
NotaColorTotal[61] = 1;
NotaColorTotal[62] = 2;
NotaColorTotal[63] = 1;
NotaColorTotal[64] = 2;
NotaColorTotal[65] = 2;
NotaColorTotal[66] = 2;
NotaColorTotal[67] = 1;
NotaColorTotal[68] = 2;
NotaColorTotal[69] = 1;
NotaColorTotal[70] = 0;
NotaColorTotal[71] = 1;
NotaColorTotal[72] = 2;
NotaColorTotal[73] = 1;
NotaColorTotal[74] = 1;
NotaColorTotal[75] = 0;
NotaColorTotal[76] = 2;
NotaColorTotal[77] = 1;
NotaColorTotal[78] = 2;
NotaColorTotal[79] = 0;
NotaColorTotal[80] = 2;
NotaColorTotal[81] = 1;
NotaColorTotal[82] = 0;
NotaColorTotal[83] = 0;
NotaColorTotal[84] = 2;
NotaColorTotal[85] = 1;
NotaColorTotal[86] = 0;
NotaColorTotal[87] = 1;
NotaColorTotal[88] = 2;
NotaColorTotal[89] = 1;
NotaColorTotal[90] = 2;
NotaColorTotal[91] = 1;
NotaColorTotal[92] = 2;
NotaColorTotal[93] = 1;
NotaColorTotal[94] = 2;
NotaColorTotal[95] = 1;
NotaColorTotal[96] = 2;
NotaColorTotal[97] = 1;
NotaColorTotal[98] = 2;
NotaColorTotal[99] = 1;
NotaColorTotal[100] = 0;
NotaColorTotal[101] = 2;
NotaColorTotal[102] = 1;
NotaColorTotal[103] = 2;
NotaColorTotal[104] = 1;
NotaColorTotal[105] = 2;
NotaColorTotal[106] = 2;
NotaColorTotal[107] = 2;
NotaColorTotal[108] = 1;
NotaColorTotal[109] = 2;
NotaColorTotal[110] = 1;
NotaColorTotal[111] = 0;
NotaColorTotal[112] = 1;
NotaColorTotal[113] = 2;
NotaColorTotal[114] = 1;
NotaColorTotal[115] = 1;
NotaColorTotal[116] = 0;
NotaColorTotal[117] = 2;
NotaColorTotal[118] = 1;
NotaColorTotal[119] = 2;
NotaColorTotal[120] = 0;
NotaColorTotal[121] = 2;
NotaColorTotal[122] = 1;
NotaColorTotal[123] = 0;
NotaColorTotal[124] = 0;
NotaColorTotal[125] = 2;
NotaColorTotal[126] = 1;
NotaColorTotal[127] = 0;
NotaColorTotal[128] = 1;
NotaColorTotal[129] = 2;
NotaColorTotal[130] = 2;
NotaColorTotal[131] = 2;
NotaColorTotal[132] = 1;
NotaColorTotal[133] = 2;
NotaColorTotal[134] = 1;
NotaColorTotal[135] = 2;
NotaColorTotal[136] = 0;
NotaColorTotal[137] = 2;
NotaColorTotal[138] = 2;
NotaColorTotal[139] = 2;
NotaColorTotal[140] = 0;
NotaColorTotal[141] = 2;
NotaColorTotal[142] = 0;
NotaColorTotal[143] = 1;
NotaColorTotal[144] = 1;
NotaColorTotal[145] = 2;
NotaColorTotal[146] = 2;
NotaColorTotal[147] = 2;
NotaColorTotal[148] = 2;
NotaColorTotal[149] = 1;
NotaColorTotal[150] = 2;
NotaColorTotal[151] = 1;
NotaColorTotal[152] = 0;
NotaColorTotal[153] = 1;
NotaColorTotal[154] = 0;
NotaColorTotal[155] = 2;
NotaColorTotal[156] = 1;
NotaColorTotal[157] = 2;
NotaColorTotal[158] = 1;
NotaColorTotal[159] = 1;
NotaColorTotal[160] = 0;
NotaColorTotal[161] = 1;
NotaColorTotal[162] = 2;
NotaColorTotal[163] = 2;
NotaColorTotal[164] = 2;
NotaColorTotal[165] = 1;
NotaColorTotal[166] = 2;
NotaColorTotal[167] = 1;
NotaColorTotal[168] = 0;
NotaColorTotal[169] = 1;
NotaColorTotal[170] = 0;
NotaColorTotal[171] = 2;
NotaColorTotal[172] = 1;
NotaColorTotal[173] = 2;
NotaColorTotal[174] = 1;
NotaColorTotal[175] = 1;
NotaColorTotal[176] = 0;
NotaColorTotal[177] = 1;
NotaColorTotal[178] = 1;
NotaColorTotal[179] = 2;
NotaColorTotal[180] = 0;
NotaColorTotal[181] = 1;
NotaColorTotal[182] = 2;
NotaColorTotal[183] = 1;
NotaColorTotal[184] = 2;
NotaColorTotal[185] = 1;
NotaColorTotal[186] = 0;
NotaColorTotal[187] = 1;
NotaColorTotal[188] = 2;
NotaColorTotal[189] = 2;
NotaColorTotal[190] = 1;
NotaColorTotal[191] = 2;
NotaColorTotal[192] = 1;
NotaColorTotal[193] = 0;
NotaColorTotal[194] = 2;
NotaColorTotal[195] = 1;
NotaColorTotal[196] = 1;
NotaColorTotal[197] = 1;
NotaColorTotal[198] = 1;
NotaColorTotal[199] = 2;
NotaColorTotal[200] = 2;
NotaColorTotal[201] = 2;
NotaColorTotal[202] = 2;
NotaColorTotal[203] = 1;
NotaColorTotal[204] = 1;
NotaColorTotal[205] = 1;
NotaColorTotal[206] = 1;
NotaColorTotal[207] = 2;
NotaColorTotal[208] = 1;
NotaColorTotal[209] = 0;
NotaColorTotal[210] = 1;
NotaColorTotal[211] = 1;
NotaColorTotal[212] = 2;
NotaColorTotal[213] = 1;
NotaColorTotal[214] = 2;
NotaColorTotal[215] = 2;
NotaColorTotal[216] = 1;
NotaColorTotal[217] = 0;
NotaColorTotal[218] = 2;
NotaColorTotal[219] = 2;
NotaColorTotal[220] = 1;
NotaColorTotal[221] = 0;
NotaColorTotal[222] = 1;
NotaColorTotal[223] = 0;
NotaColorTotal[224] = 0;
NotaColorTotal[225] = 0;
NotaColorTotal[226] = 0;
NotaColorTotal[227] = 1;
NotaColorTotal[228] = 1;
NotaColorTotal[229] = 1;
NotaColorTotal[230] = 2;
NotaColorTotal[231] = 2;
NotaColorTotal[232] = 2;
NotaColorTotal[233] = 2;
NotaColorTotal[234] = 2;
NotaColorTotal[235] = 2;
NotaColorTotal[236] = 2;
NotaColorTotal[237] = 2;
NotaColorTotal[238] = 2;
NotaColorTotal[239] = 2;
NotaColorTotal[240] = 2;
NotaColorTotal[241] = 2;
NotaColorTotal[242] = 2;
NotaColorTotal[243] = 1;
NotaColorTotal[244] = 2;
NotaColorTotal[245] = 1;
NotaColorTotal[246] = 0;
NotaColorTotal[247] = 2;
NotaColorTotal[248] = 1;
NotaColorTotal[249] = 2;
NotaColorTotal[250] = 1;
NotaColorTotal[251] = 2;
NotaColorTotal[252] = 2;
NotaColorTotal[253] = 2;
NotaColorTotal[254] = 1;
NotaColorTotal[0xFF] = 2;
NotaColorTotal[0x0100] = 1;
NotaColorTotal[0x0101] = 0;
NotaColorTotal[258] = 1;
NotaColorTotal[259] = 2;
NotaColorTotal[260] = 1;
NotaColorTotal[261] = 1;
NotaColorTotal[262] = 0;
NotaColorTotal[263] = 2;
NotaColorTotal[264] = 1;
NotaColorTotal[265] = 2;
NotaColorTotal[266] = 0;
NotaColorTotal[267] = 2;
NotaColorTotal[268] = 1;
NotaColorTotal[269] = 0;
NotaColorTotal[270] = 0;
NotaColorTotal[271] = 2;
NotaColorTotal[272] = 1;
NotaColorTotal[273] = 0;
NotaColorTotal[274] = 1;
NotaColorTotal[275] = 2;
NotaColorTotal[276] = 2;
NotaColorTotal[277] = 2;
NotaColorTotal[278] = 1;
NotaColorTotal[279] = 2;
NotaColorTotal[280] = 1;
NotaColorTotal[281] = 2;
NotaColorTotal[282] = 0;
NotaColorTotal[283] = 2;
NotaColorTotal[284] = 2;
NotaColorTotal[285] = 2;
NotaColorTotal[286] = 0;
NotaColorTotal[287] = 2;
NotaColorTotal[288] = 0;
NotaColorTotal[289] = 1;
NotaColorTotal[290] = 1;
NotaColorTotal[291] = 2;
NotaColorTotal[292] = 2;
NotaColorTotal[293] = 2;
NotaColorTotal[294] = 2;
NotaColorTotal[295] = 1;
NotaColorTotal[296] = 2;
NotaColorTotal[297] = 1;
NotaColorTotal[298] = 0;
NotaColorTotal[299] = 1;
NotaColorTotal[300] = 0;
NotaColorTotal[301] = 2;
NotaColorTotal[302] = 1;
NotaColorTotal[303] = 2;
NotaColorTotal[304] = 1;
NotaColorTotal[305] = 1;
NotaColorTotal[306] = 0;
NotaColorTotal[307] = 1;
NotaColorTotal[308] = 2;
NotaColorTotal[309] = 2;
NotaColorTotal[310] = 2;
NotaColorTotal[311] = 1;
NotaColorTotal[312] = 2;
NotaColorTotal[313] = 1;
NotaColorTotal[314] = 0;
NotaColorTotal[315] = 1;
NotaColorTotal[316] = 0;
NotaColorTotal[317] = 2;
NotaColorTotal[318] = 1;
NotaColorTotal[319] = 2;
NotaColorTotal[320] = 1;
NotaColorTotal[321] = 1;
NotaColorTotal[322] = 0;
NotaColorTotal[323] = 1;
NotaColorTotal[324] = 0;
NotaColorTotal[325] = 0;
NotaColorTotal[326] = 0;
NotaColorTotal[327] = 2;
NotaColorTotal[328] = 0;
NotaColorTotal[329] = 0;
NotaColorTotal[330] = 0;
NotaColorTotal[331] = 2;
NotaColorTotal[332] = 0;
NotaColorTotal[333] = 0;
NotaColorTotal[334] = 0;
NotaColorTotal[335] = 2;
NotaColorTotal[336] = 0;
NotaColorTotal[337] = 0;
NotaColorTotal[338] = 0;
NotaColorTotal[339] = 2;
NotaColorTotal[340] = 0;
NotaColorTotal[341] = 0;
NotaColorTotal[342] = 0;
NotaColorTotal[343] = 2;
NotaColorTotal[344] = 0;
NotaColorTotal[345] = 0;
NotaColorTotal[346] = 0;
NotaColorTotal[347] = 2;
NotaColorTotal[348] = 0;
NotaColorTotal[349] = 0;
NotaColorTotal[350] = 0;
NotaColorTotal[351] = 2;
NotaColorTotal[352] = 0;
NotaColorTotal[353] = 0;
NotaColorTotal[354] = 0;
NotaColorTotal[355] = 2;
NotaColorTotal[356] = 1;
NotaColorTotal[357] = 2;
NotaColorTotal[358] = 1;
NotaColorTotal[359] = 2;
}
public function easyStarPower(){
NotaStarPower[1] = 0;
NotaStarPower[2] = 0;
NotaStarPower[3] = 0;
NotaStarPower[4] = 0;
NotaStarPower[5] = 0;
NotaStarPower[6] = 0;
NotaStarPower[7] = 0;
NotaStarPower[8] = 0;
NotaStarPower[9] = 0;
NotaStarPower[10] = 0;
NotaStarPower[11] = 0;
NotaStarPower[12] = 0;
NotaStarPower[13] = 0;
NotaStarPower[14] = 0;
NotaStarPower[15] = 0;
NotaStarPower[16] = 0;
NotaStarPower[17] = 0;
NotaStarPower[18] = 0;
NotaStarPower[19] = 0;
NotaStarPower[20] = 0;
NotaStarPower[21] = 0;
NotaStarPower[22] = 0;
NotaStarPower[23] = 0;
NotaStarPower[24] = 0;
NotaStarPower[25] = 0;
NotaStarPower[26] = 0;
NotaStarPower[27] = 0;
NotaStarPower[28] = 0;
NotaStarPower[29] = 0;
NotaStarPower[30] = 1;
NotaStarPower[31] = 1;
NotaStarPower[32] = 1;
NotaStarPower[33] = 1;
NotaStarPower[34] = 1;
NotaStarPower[35] = 1;
NotaStarPower[36] = 1;
NotaStarPower[37] = 1;
NotaStarPower[38] = 1;
NotaStarPower[39] = 0;
NotaStarPower[40] = 0;
NotaStarPower[41] = 0;
NotaStarPower[42] = 0;
NotaStarPower[43] = 0;
NotaStarPower[44] = 0;
NotaStarPower[45] = 0;
NotaStarPower[46] = 0;
NotaStarPower[47] = 0;
NotaStarPower[48] = 0;
NotaStarPower[49] = 0;
NotaStarPower[50] = 0;
NotaStarPower[51] = 0;
NotaStarPower[52] = 0;
NotaStarPower[53] = 0;
NotaStarPower[54] = 0;
NotaStarPower[55] = 0;
NotaStarPower[56] = 0;
NotaStarPower[57] = 0;
NotaStarPower[58] = 0;
NotaStarPower[59] = 0;
NotaStarPower[60] = 0;
NotaStarPower[61] = 0;
NotaStarPower[62] = 0;
NotaStarPower[63] = 0;
NotaStarPower[64] = 0;
NotaStarPower[65] = 0;
NotaStarPower[66] = 0;
NotaStarPower[67] = 0;
NotaStarPower[68] = 0;
NotaStarPower[69] = 0;
NotaStarPower[70] = 0;
NotaStarPower[71] = 0;
NotaStarPower[72] = 0;
NotaStarPower[73] = 0;
NotaStarPower[74] = 0;
NotaStarPower[75] = 0;
NotaStarPower[76] = 0;
NotaStarPower[77] = 0;
NotaStarPower[78] = 0;
NotaStarPower[79] = 0;
NotaStarPower[80] = 1;
NotaStarPower[81] = 1;
NotaStarPower[82] = 1;
NotaStarPower[83] = 1;
NotaStarPower[84] = 1;
NotaStarPower[85] = 1;
NotaStarPower[86] = 1;
NotaStarPower[87] = 1;
NotaStarPower[88] = 0;
NotaStarPower[89] = 0;
NotaStarPower[90] = 0;
NotaStarPower[91] = 0;
NotaStarPower[92] = 0;
NotaStarPower[93] = 0;
NotaStarPower[94] = 0;
NotaStarPower[95] = 0;
NotaStarPower[96] = 0;
NotaStarPower[97] = 0;
NotaStarPower[98] = 0;
NotaStarPower[99] = 0;
NotaStarPower[100] = 0;
NotaStarPower[101] = 0;
NotaStarPower[102] = 0;
NotaStarPower[103] = 0;
NotaStarPower[104] = 0;
NotaStarPower[105] = 0;
NotaStarPower[106] = 0;
NotaStarPower[107] = 0;
NotaStarPower[108] = 0;
NotaStarPower[109] = 0;
NotaStarPower[110] = 0;
NotaStarPower[111] = 0;
NotaStarPower[112] = 0;
NotaStarPower[113] = 0;
NotaStarPower[114] = 0;
NotaStarPower[115] = 0;
NotaStarPower[116] = 0;
NotaStarPower[117] = 0;
NotaStarPower[118] = 0;
NotaStarPower[119] = 0;
NotaStarPower[120] = 0;
NotaStarPower[121] = 0;
NotaStarPower[122] = 0;
NotaStarPower[123] = 0;
NotaStarPower[124] = 0;
NotaStarPower[125] = 0;
NotaStarPower[126] = 0;
NotaStarPower[127] = 0;
NotaStarPower[128] = 0;
NotaStarPower[129] = 1;
NotaStarPower[130] = 1;
NotaStarPower[131] = 1;
NotaStarPower[132] = 1;
NotaStarPower[133] = 1;
NotaStarPower[134] = 1;
NotaStarPower[135] = 1;
NotaStarPower[136] = 1;
NotaStarPower[137] = 0;
NotaStarPower[138] = 0;
NotaStarPower[139] = 0;
NotaStarPower[140] = 0;
NotaStarPower[141] = 0;
NotaStarPower[142] = 0;
NotaStarPower[143] = 0;
NotaStarPower[144] = 0;
NotaStarPower[145] = 0;
NotaStarPower[146] = 0;
NotaStarPower[147] = 0;
NotaStarPower[148] = 0;
NotaStarPower[149] = 0;
NotaStarPower[150] = 0;
NotaStarPower[151] = 0;
NotaStarPower[152] = 0;
NotaStarPower[153] = 0;
NotaStarPower[154] = 0;
NotaStarPower[155] = 0;
NotaStarPower[156] = 0;
NotaStarPower[157] = 0;
NotaStarPower[158] = 0;
NotaStarPower[159] = 0;
NotaStarPower[160] = 0;
NotaStarPower[161] = 0;
NotaStarPower[162] = 0;
NotaStarPower[163] = 0;
NotaStarPower[164] = 0;
NotaStarPower[165] = 0;
NotaStarPower[166] = 0;
NotaStarPower[167] = 0;
NotaStarPower[168] = 0;
NotaStarPower[169] = 0;
NotaStarPower[170] = 0;
NotaStarPower[171] = 1;
NotaStarPower[172] = 1;
NotaStarPower[173] = 1;
NotaStarPower[174] = 1;
NotaStarPower[175] = 1;
NotaStarPower[176] = 1;
NotaStarPower[177] = 1;
NotaStarPower[178] = 0;
NotaStarPower[179] = 0;
NotaStarPower[180] = 0;
NotaStarPower[181] = 0;
NotaStarPower[182] = 0;
NotaStarPower[183] = 0;
NotaStarPower[184] = 0;
NotaStarPower[185] = 0;
NotaStarPower[186] = 0;
NotaStarPower[187] = 0;
NotaStarPower[188] = 0;
NotaStarPower[189] = 0;
NotaStarPower[190] = 0;
NotaStarPower[191] = 0;
NotaStarPower[192] = 0;
NotaStarPower[193] = 0;
NotaStarPower[194] = 0;
NotaStarPower[195] = 0;
NotaStarPower[196] = 0;
NotaStarPower[197] = 0;
NotaStarPower[198] = 0;
NotaStarPower[199] = 0;
NotaStarPower[200] = 0;
NotaStarPower[201] = 0;
NotaStarPower[202] = 0;
NotaStarPower[203] = 0;
NotaStarPower[204] = 0;
NotaStarPower[205] = 0;
NotaStarPower[206] = 0;
NotaStarPower[207] = 0;
NotaStarPower[208] = 1;
NotaStarPower[209] = 1;
NotaStarPower[210] = 1;
NotaStarPower[211] = 1;
NotaStarPower[212] = 1;
NotaStarPower[213] = 1;
NotaStarPower[214] = 1;
NotaStarPower[215] = 0;
NotaStarPower[216] = 0;
NotaStarPower[217] = 0;
NotaStarPower[218] = 0;
NotaStarPower[219] = 0;
NotaStarPower[220] = 0;
NotaStarPower[221] = 0;
NotaStarPower[222] = 0;
NotaStarPower[223] = 0;
NotaStarPower[224] = 0;
NotaStarPower[225] = 0;
NotaStarPower[226] = 0;
NotaStarPower[227] = 0;
NotaStarPower[228] = 0;
NotaStarPower[229] = 0;
NotaStarPower[230] = 0;
NotaStarPower[231] = 0;
NotaStarPower[232] = 0;
NotaStarPower[233] = 0;
NotaStarPower[234] = 0;
NotaStarPower[235] = 0;
NotaStarPower[236] = 0;
NotaStarPower[237] = 0;
NotaStarPower[238] = 0;
NotaStarPower[239] = 0;
NotaStarPower[240] = 0;
NotaStarPower[241] = 0;
NotaStarPower[242] = 0;
NotaStarPower[243] = 0;
NotaStarPower[244] = 0;
NotaStarPower[245] = 0;
NotaStarPower[246] = 0;
NotaStarPower[247] = 0;
NotaStarPower[248] = 0;
NotaStarPower[249] = 0;
NotaStarPower[250] = 0;
NotaStarPower[251] = 0;
NotaStarPower[252] = 0;
NotaStarPower[253] = 0;
NotaStarPower[254] = 0;
NotaStarPower[0xFF] = 0;
NotaStarPower[0x0100] = 0;
NotaStarPower[0x0101] = 0;
NotaStarPower[258] = 0;
NotaStarPower[259] = 1;
NotaStarPower[260] = 1;
NotaStarPower[261] = 1;
NotaStarPower[262] = 1;
NotaStarPower[263] = 1;
NotaStarPower[264] = 1;
NotaStarPower[265] = 1;
NotaStarPower[266] = 1;
NotaStarPower[267] = 0;
NotaStarPower[268] = 0;
NotaStarPower[269] = 0;
NotaStarPower[270] = 0;
NotaStarPower[271] = 0;
NotaStarPower[272] = 0;
NotaStarPower[273] = 0;
NotaStarPower[274] = 0;
NotaStarPower[275] = 0;
NotaStarPower[276] = 0;
NotaStarPower[277] = 0;
NotaStarPower[278] = 0;
NotaStarPower[279] = 0;
NotaStarPower[280] = 0;
NotaStarPower[281] = 0;
NotaStarPower[282] = 0;
NotaStarPower[283] = 0;
NotaStarPower[284] = 0;
NotaStarPower[285] = 0;
NotaStarPower[286] = 0;
NotaStarPower[287] = 0;
NotaStarPower[288] = 0;
NotaStarPower[289] = 0;
NotaStarPower[290] = 0;
NotaStarPower[291] = 0;
NotaStarPower[292] = 1;
NotaStarPower[293] = 1;
NotaStarPower[294] = 1;
NotaStarPower[295] = 1;
NotaStarPower[296] = 1;
NotaStarPower[297] = 1;
NotaStarPower[298] = 1;
NotaStarPower[299] = 1;
NotaStarPower[300] = 0;
NotaStarPower[301] = 0;
NotaStarPower[302] = 0;
NotaStarPower[303] = 0;
NotaStarPower[304] = 0;
NotaStarPower[305] = 0;
NotaStarPower[306] = 0;
NotaStarPower[307] = 0;
NotaStarPower[308] = 0;
NotaStarPower[309] = 0;
NotaStarPower[310] = 0;
NotaStarPower[311] = 0;
NotaStarPower[312] = 0;
NotaStarPower[313] = 0;
NotaStarPower[314] = 0;
NotaStarPower[315] = 0;
NotaStarPower[316] = 0;
NotaStarPower[317] = 0;
NotaStarPower[318] = 0;
NotaStarPower[319] = 0;
NotaStarPower[320] = 0;
NotaStarPower[321] = 0;
NotaStarPower[322] = 0;
NotaStarPower[323] = 0;
NotaStarPower[324] = 0;
NotaStarPower[325] = 0;
NotaStarPower[326] = 0;
NotaStarPower[327] = 0;
NotaStarPower[328] = 0;
NotaStarPower[329] = 0;
NotaStarPower[330] = 0;
NotaStarPower[331] = 0;
NotaStarPower[332] = 0;
NotaStarPower[333] = 0;
NotaStarPower[334] = 0;
NotaStarPower[335] = 0;
NotaStarPower[336] = 0;
NotaStarPower[337] = 0;
NotaStarPower[338] = 0;
NotaStarPower[339] = 0;
NotaStarPower[340] = 0;
NotaStarPower[341] = 0;
NotaStarPower[342] = 0;
NotaStarPower[343] = 0;
NotaStarPower[344] = 0;
NotaStarPower[345] = 0;
NotaStarPower[346] = 0;
NotaStarPower[347] = 0;
NotaStarPower[348] = 0;
NotaStarPower[349] = 0;
NotaStarPower[350] = 0;
NotaStarPower[351] = 0;
NotaStarPower[352] = 0;
NotaStarPower[353] = 0;
NotaStarPower[354] = 0;
NotaStarPower[355] = 0;
NotaStarPower[356] = 0;
NotaStarPower[357] = 0;
NotaStarPower[358] = 0;
NotaStarPower[359] = 0;
LargoStar[1] = 9;
LargoStar[2] = 8;
LargoStar[3] = 8;
LargoStar[4] = 7;
LargoStar[5] = 7;
LargoStar[6] = 8;
LargoStar[7] = 8;
}
public function NotasTiempos(_arg1:int):void{
if (_arg1 == 1){
easyTiempos();
} else {
if (_arg1 == 2){
mediumTiempos();
} else {
if (_arg1 == 3){
hardTiempos();
};
};
};
}
public function NotasPressTotales(_arg1:int):void{
if (_arg1 == 1){
easyPress();
} else {
if (_arg1 == 2){
mediumPress();
} else {
if (_arg1 == 3){
hardPress();
};
};
};
}
public function easyTiempos(){
NotaTiempo[1] = 6;
NotaTiempo[2] = 6.1875;
NotaTiempo[3] = 6.5625;
NotaTiempo[4] = 6.75;
NotaTiempo[5] = 7.0625;
NotaTiempo[6] = 7.25;
NotaTiempo[7] = 7.5625;
NotaTiempo[8] = 7.75;
NotaTiempo[9] = 8.125;
NotaTiempo[10] = 8.4375;
NotaTiempo[11] = 8.75;
NotaTiempo[12] = 8.9375;
NotaTiempo[13] = 9.25;
NotaTiempo[14] = 9.4375;
NotaTiempo[15] = 9.6875;
NotaTiempo[16] = 9.875;
NotaTiempo[17] = 10.1875;
NotaTiempo[18] = 10.375;
NotaTiempo[19] = 10.75;
NotaTiempo[20] = 11.375;
NotaTiempo[21] = 11.5625;
NotaTiempo[22] = 11.9375;
NotaTiempo[23] = 12.125;
NotaTiempo[24] = 12.4375;
NotaTiempo[25] = 12.625;
NotaTiempo[26] = 12.9375;
NotaTiempo[27] = 13.125;
NotaTiempo[28] = 13.4375;
NotaTiempo[29] = 13.75;
NotaTiempo[30] = 14.125;
NotaTiempo[31] = 14.3125;
NotaTiempo[32] = 14.625;
NotaTiempo[33] = 14.8125;
NotaTiempo[34] = 15.0625;
NotaTiempo[35] = 15.25;
NotaTiempo[36] = 15.5625;
NotaTiempo[37] = 15.75;
NotaTiempo[38] = 16.1875;
NotaTiempo[39] = 17;
NotaTiempo[40] = 17.625;
NotaTiempo[41] = 18.25;
NotaTiempo[42] = 18.9375;
NotaTiempo[43] = 19.5625;
NotaTiempo[44] = 20.25;
NotaTiempo[45] = 20.9375;
NotaTiempo[46] = 21.625;
NotaTiempo[47] = 22.3125;
NotaTiempo[48] = 23;
NotaTiempo[49] = 23.6875;
NotaTiempo[50] = 24.375;
NotaTiempo[51] = 25.0625;
NotaTiempo[52] = 25.75;
NotaTiempo[53] = 26.4375;
NotaTiempo[54] = 27.0625;
NotaTiempo[55] = 27.75;
NotaTiempo[56] = 28.25;
NotaTiempo[57] = 28.25;
NotaTiempo[58] = 28.5;
NotaTiempo[59] = 28.875;
NotaTiempo[60] = 29.1875;
NotaTiempo[61] = 29.5;
NotaTiempo[62] = 29.8125;
NotaTiempo[63] = 30.1875;
NotaTiempo[64] = 30.5625;
NotaTiempo[65] = 30.875;
NotaTiempo[66] = 31.1875;
NotaTiempo[67] = 31.75;
NotaTiempo[68] = 31.9375;
NotaTiempo[69] = 32.25;
NotaTiempo[70] = 32.5625;
NotaTiempo[71] = 32.5625;
NotaTiempo[72] = 33.1875;
NotaTiempo[73] = 33.5;
NotaTiempo[74] = 33.875;
NotaTiempo[75] = 34.375;
NotaTiempo[76] = 34.625;
NotaTiempo[77] = 34.9375;
NotaTiempo[78] = 35.25;
NotaTiempo[79] = 35.625;
NotaTiempo[80] = 36;
NotaTiempo[81] = 36.3125;
NotaTiempo[82] = 36.625;
NotaTiempo[83] = 37.1875;
NotaTiempo[84] = 37.375;
NotaTiempo[85] = 37.6875;
NotaTiempo[86] = 38;
NotaTiempo[87] = 38;
NotaTiempo[88] = 38.6875;
NotaTiempo[89] = 39.3125;
NotaTiempo[90] = 39.9375;
NotaTiempo[91] = 40.625;
NotaTiempo[92] = 41.25;
NotaTiempo[93] = 41.9375;
NotaTiempo[94] = 42.625;
NotaTiempo[95] = 43.3125;
NotaTiempo[96] = 44.0625;
NotaTiempo[97] = 44.5625;
NotaTiempo[98] = 44.5625;
NotaTiempo[99] = 44.8125;
NotaTiempo[100] = 45.1875;
NotaTiempo[101] = 45.5;
NotaTiempo[102] = 45.8125;
NotaTiempo[103] = 46.125;
NotaTiempo[104] = 46.5;
NotaTiempo[105] = 46.875;
NotaTiempo[106] = 47.1875;
NotaTiempo[107] = 47.5;
NotaTiempo[108] = 48.125;
NotaTiempo[109] = 48.3125;
NotaTiempo[110] = 48.625;
NotaTiempo[111] = 48.9375;
NotaTiempo[112] = 48.9375;
NotaTiempo[113] = 49.5625;
NotaTiempo[114] = 49.875;
NotaTiempo[115] = 50.25;
NotaTiempo[116] = 50.75;
NotaTiempo[117] = 51;
NotaTiempo[118] = 51.3125;
NotaTiempo[119] = 51.625;
NotaTiempo[120] = 52;
NotaTiempo[121] = 52.375;
NotaTiempo[122] = 52.6875;
NotaTiempo[123] = 53;
NotaTiempo[124] = 53.5625;
NotaTiempo[125] = 53.8125;
NotaTiempo[126] = 54.125;
NotaTiempo[127] = 54.4375;
NotaTiempo[128] = 54.4375;
NotaTiempo[129] = 55.0625;
NotaTiempo[130] = 55.375;
NotaTiempo[131] = 55.6875;
NotaTiempo[132] = 56.25;
NotaTiempo[133] = 56.5;
NotaTiempo[134] = 56.8125;
NotaTiempo[135] = 57.125;
NotaTiempo[136] = 57.5;
NotaTiempo[137] = 57.875;
NotaTiempo[138] = 58.1875;
NotaTiempo[139] = 58.5;
NotaTiempo[140] = 59.0625;
NotaTiempo[141] = 59.25;
NotaTiempo[142] = 59.5625;
NotaTiempo[143] = 59.8125;
NotaTiempo[144] = 60.0625;
NotaTiempo[145] = 60.0625;
NotaTiempo[146] = 60.5;
NotaTiempo[147] = 60.8125;
NotaTiempo[148] = 61.1875;
NotaTiempo[149] = 61.4375;
NotaTiempo[150] = 61.8125;
NotaTiempo[151] = 62.125;
NotaTiempo[152] = 62.4375;
NotaTiempo[153] = 62.4375;
NotaTiempo[154] = 63.3125;
NotaTiempo[155] = 63.5625;
NotaTiempo[156] = 63.75;
NotaTiempo[157] = 63.9375;
NotaTiempo[158] = 64.5;
NotaTiempo[159] = 64.6875;
NotaTiempo[160] = 65;
NotaTiempo[161] = 65.3125;
NotaTiempo[162] = 65.9375;
NotaTiempo[163] = 66.4375;
NotaTiempo[164] = 66.625;
NotaTiempo[165] = 66.875;
NotaTiempo[166] = 67.3125;
NotaTiempo[167] = 67.625;
NotaTiempo[168] = 67.9375;
NotaTiempo[169] = 67.9375;
NotaTiempo[170] = 68.6875;
NotaTiempo[171] = 68.9375;
NotaTiempo[172] = 69.125;
NotaTiempo[173] = 69.3125;
NotaTiempo[174] = 69.875;
NotaTiempo[175] = 70.0625;
NotaTiempo[176] = 70.375;
NotaTiempo[177] = 70.6875;
NotaTiempo[178] = 71.5;
NotaTiempo[179] = 72.1875;
NotaTiempo[180] = 72.75;
NotaTiempo[181] = 73;
NotaTiempo[182] = 73.1875;
NotaTiempo[183] = 73.375;
NotaTiempo[184] = 73.5625;
NotaTiempo[185] = 73.75;
NotaTiempo[186] = 73.9375;
NotaTiempo[187] = 74.125;
NotaTiempo[188] = 74.3125;
NotaTiempo[189] = 74.875;
NotaTiempo[190] = 75.0625;
NotaTiempo[191] = 75.25;
NotaTiempo[192] = 75.4375;
NotaTiempo[193] = 75.75;
NotaTiempo[194] = 75.75;
NotaTiempo[195] = 77;
NotaTiempo[196] = 77.1875;
NotaTiempo[197] = 77.375;
NotaTiempo[198] = 77.5625;
NotaTiempo[199] = 77.6875;
NotaTiempo[200] = 77.875;
NotaTiempo[201] = 78.0625;
NotaTiempo[202] = 78.25;
NotaTiempo[203] = 78.375;
NotaTiempo[204] = 78.5625;
NotaTiempo[205] = 78.75;
NotaTiempo[206] = 79.0625;
NotaTiempo[207] = 79.0625;
NotaTiempo[208] = 80;
NotaTiempo[209] = 80.1875;
NotaTiempo[210] = 80.375;
NotaTiempo[211] = 80.5625;
NotaTiempo[212] = 80.75;
NotaTiempo[213] = 81.6875;
NotaTiempo[214] = 81.6875;
NotaTiempo[215] = 82.375;
NotaTiempo[216] = 83;
NotaTiempo[217] = 83.8125;
NotaTiempo[218] = 83.8125;
NotaTiempo[219] = 84.4375;
NotaTiempo[220] = 85.125;
NotaTiempo[221] = 85.8125;
NotaTiempo[222] = 85.8125;
NotaTiempo[223] = 86.5;
NotaTiempo[224] = 87.125;
NotaTiempo[225] = 87.875;
NotaTiempo[226] = 88.5625;
NotaTiempo[227] = 88.5625;
NotaTiempo[228] = 89.1875;
NotaTiempo[229] = 89.875;
NotaTiempo[230] = 89.875;
NotaTiempo[231] = 90.6875;
NotaTiempo[232] = 90.875;
NotaTiempo[233] = 91.0625;
NotaTiempo[234] = 91.25;
NotaTiempo[235] = 91.4375;
NotaTiempo[236] = 91.625;
NotaTiempo[237] = 91.8125;
NotaTiempo[238] = 92;
NotaTiempo[239] = 92.1875;
NotaTiempo[240] = 92.375;
NotaTiempo[241] = 92.625;
NotaTiempo[242] = 115;
NotaTiempo[243] = 115.5;
NotaTiempo[244] = 115.5;
NotaTiempo[245] = 115.75;
NotaTiempo[246] = 116.125;
NotaTiempo[247] = 116.4375;
NotaTiempo[248] = 116.75;
NotaTiempo[249] = 117.0625;
NotaTiempo[250] = 117.375;
NotaTiempo[251] = 117.875;
NotaTiempo[252] = 118.1875;
NotaTiempo[253] = 118.5;
NotaTiempo[254] = 119.0625;
NotaTiempo[0xFF] = 119.25;
NotaTiempo[0x0100] = 119.5;
NotaTiempo[0x0101] = 119.875;
NotaTiempo[258] = 119.875;
NotaTiempo[259] = 120.4375;
NotaTiempo[260] = 120.75;
NotaTiempo[261] = 121.125;
NotaTiempo[262] = 121.6875;
NotaTiempo[263] = 121.9375;
NotaTiempo[264] = 122.25;
NotaTiempo[265] = 122.5625;
NotaTiempo[266] = 122.9375;
NotaTiempo[267] = 123.3125;
NotaTiempo[268] = 123.625;
NotaTiempo[269] = 123.9375;
NotaTiempo[270] = 124.5;
NotaTiempo[271] = 124.6875;
NotaTiempo[272] = 125.0625;
NotaTiempo[273] = 125.375;
NotaTiempo[274] = 125.375;
NotaTiempo[275] = 126;
NotaTiempo[276] = 126.3125;
NotaTiempo[277] = 126.625;
NotaTiempo[278] = 127.1875;
NotaTiempo[279] = 127.4375;
NotaTiempo[280] = 127.75;
NotaTiempo[281] = 128.0625;
NotaTiempo[282] = 128.4375;
NotaTiempo[283] = 128.75;
NotaTiempo[284] = 129.0625;
NotaTiempo[285] = 129.375;
NotaTiempo[286] = 129.9375;
NotaTiempo[287] = 130.1875;
NotaTiempo[288] = 130.5;
NotaTiempo[289] = 130.75;
NotaTiempo[290] = 131;
NotaTiempo[291] = 131;
NotaTiempo[292] = 131.4375;
NotaTiempo[293] = 131.75;
NotaTiempo[294] = 132.125;
NotaTiempo[295] = 132.375;
NotaTiempo[296] = 132.75;
NotaTiempo[297] = 133.0625;
NotaTiempo[298] = 133.4375;
NotaTiempo[299] = 133.4375;
NotaTiempo[300] = 134.1875;
NotaTiempo[301] = 134.5;
NotaTiempo[302] = 134.6875;
NotaTiempo[303] = 134.875;
NotaTiempo[304] = 135.4375;
NotaTiempo[305] = 135.625;
NotaTiempo[306] = 135.9375;
NotaTiempo[307] = 136.25;
NotaTiempo[308] = 136.8125;
NotaTiempo[309] = 137.3125;
NotaTiempo[310] = 137.5625;
NotaTiempo[311] = 137.8125;
NotaTiempo[312] = 138.25;
NotaTiempo[313] = 138.5625;
NotaTiempo[314] = 138.875;
NotaTiempo[315] = 138.875;
NotaTiempo[316] = 139.625;
NotaTiempo[317] = 139.875;
NotaTiempo[318] = 140.0625;
NotaTiempo[319] = 140.25;
NotaTiempo[320] = 140.8125;
NotaTiempo[321] = 141;
NotaTiempo[322] = 141.3125;
NotaTiempo[323] = 141.625;
NotaTiempo[324] = 142.375;
NotaTiempo[325] = 142.6875;
NotaTiempo[326] = 143.125;
NotaTiempo[327] = 143.125;
NotaTiempo[328] = 143.6875;
NotaTiempo[329] = 144.0625;
NotaTiempo[330] = 144.375;
NotaTiempo[331] = 144.375;
NotaTiempo[332] = 145.0625;
NotaTiempo[333] = 145.4375;
NotaTiempo[334] = 145.75;
NotaTiempo[335] = 145.75;
NotaTiempo[336] = 146.4375;
NotaTiempo[337] = 146.8125;
NotaTiempo[338] = 147.1875;
NotaTiempo[339] = 147.1875;
NotaTiempo[340] = 147.8125;
NotaTiempo[341] = 148.1875;
NotaTiempo[342] = 148.5625;
NotaTiempo[343] = 148.5625;
NotaTiempo[344] = 149.1875;
NotaTiempo[345] = 149.5;
NotaTiempo[346] = 149.8125;
NotaTiempo[347] = 149.8125;
NotaTiempo[348] = 150.5;
NotaTiempo[349] = 150.875;
NotaTiempo[350] = 151.25;
NotaTiempo[351] = 151.25;
NotaTiempo[352] = 151.9375;
NotaTiempo[353] = 152.25;
NotaTiempo[354] = 152.625;
NotaTiempo[355] = 152.625;
NotaTiempo[356] = 153.25;
NotaTiempo[357] = 153.25;
NotaTiempo[358] = 153.5625;
NotaTiempo[359] = 153.5625;
NotaTiempo[360] = -1;
}
public function NotasStarPower(_arg1:int):void{
if (_arg1 == 1){
easyStarPower();
} else {
if (_arg1 == 2){
mediumStarPower();
} else {
if (_arg1 == 3){
hardStarPower();
};
};
};
}
}
}//package
Section 200
//Song3 (Song3)
package {
public class Song3 {
public var NotaColorTotal:Array;
public var NotaTiempo:Array;
public var demora:Number;// = 2
public var LargoStar:Array;
public var NotaStarPower:Array;
public var NotaPressTotal:Array;
public var corrimientoInicial:Number;// = 2170
public function Song3(){
NotaColorTotal = new Array();
NotaPressTotal = new Array();
NotaTiempo = new Array();
NotaStarPower = new Array();
LargoStar = new Array();
}
public function mediumStarPower(){
NotaStarPower[1] = 0;
NotaStarPower[2] = 0;
NotaStarPower[3] = 0;
NotaStarPower[4] = 0;
NotaStarPower[5] = 0;
NotaStarPower[6] = 0;
NotaStarPower[7] = 0;
NotaStarPower[8] = 0;
NotaStarPower[9] = 0;
NotaStarPower[10] = 0;
NotaStarPower[11] = 0;
NotaStarPower[12] = 0;
NotaStarPower[13] = 0;
NotaStarPower[14] = 0;
NotaStarPower[15] = 0;
NotaStarPower[16] = 0;
NotaStarPower[17] = 0;
NotaStarPower[18] = 0;
NotaStarPower[19] = 0;
NotaStarPower[20] = 0;
NotaStarPower[21] = 0;
NotaStarPower[22] = 0;
NotaStarPower[23] = 0;
NotaStarPower[24] = 0;
NotaStarPower[25] = 0;
NotaStarPower[26] = 0;
NotaStarPower[27] = 1;
NotaStarPower[28] = 1;
NotaStarPower[29] = 1;
NotaStarPower[30] = 1;
NotaStarPower[31] = 1;
NotaStarPower[32] = 1;
NotaStarPower[33] = 1;
NotaStarPower[34] = 1;
NotaStarPower[35] = 1;
NotaStarPower[36] = 0;
NotaStarPower[37] = 0;
NotaStarPower[38] = 0;
NotaStarPower[39] = 0;
NotaStarPower[40] = 0;
NotaStarPower[41] = 0;
NotaStarPower[42] = 0;
NotaStarPower[43] = 0;
NotaStarPower[44] = 0;
NotaStarPower[45] = 0;
NotaStarPower[46] = 0;
NotaStarPower[47] = 0;
NotaStarPower[48] = 0;
NotaStarPower[49] = 0;
NotaStarPower[50] = 0;
NotaStarPower[51] = 0;
NotaStarPower[52] = 0;
NotaStarPower[53] = 1;
NotaStarPower[54] = 1;
NotaStarPower[55] = 1;
NotaStarPower[56] = 1;
NotaStarPower[57] = 1;
NotaStarPower[58] = 1;
NotaStarPower[59] = 1;
NotaStarPower[60] = 1;
NotaStarPower[61] = 0;
NotaStarPower[62] = 0;
NotaStarPower[63] = 0;
NotaStarPower[64] = 0;
NotaStarPower[65] = 0;
NotaStarPower[66] = 0;
NotaStarPower[67] = 0;
NotaStarPower[68] = 0;
NotaStarPower[69] = 0;
NotaStarPower[70] = 0;
NotaStarPower[71] = 0;
NotaStarPower[72] = 0;
NotaStarPower[73] = 0;
NotaStarPower[74] = 0;
NotaStarPower[75] = 0;
NotaStarPower[76] = 0;
NotaStarPower[77] = 0;
NotaStarPower[78] = 0;
NotaStarPower[79] = 0;
NotaStarPower[80] = 1;
NotaStarPower[81] = 1;
NotaStarPower[82] = 1;
NotaStarPower[83] = 1;
NotaStarPower[84] = 1;
NotaStarPower[85] = 1;
NotaStarPower[86] = 1;
NotaStarPower[87] = 1;
NotaStarPower[88] = 1;
NotaStarPower[89] = 1;
NotaStarPower[90] = 0;
NotaStarPower[91] = 0;
NotaStarPower[92] = 0;
NotaStarPower[93] = 0;
NotaStarPower[94] = 0;
NotaStarPower[95] = 0;
NotaStarPower[96] = 0;
NotaStarPower[97] = 0;
NotaStarPower[98] = 0;
NotaStarPower[99] = 0;
NotaStarPower[100] = 0;
NotaStarPower[101] = 0;
NotaStarPower[102] = 0;
NotaStarPower[103] = 0;
NotaStarPower[104] = 0;
NotaStarPower[105] = 0;
NotaStarPower[106] = 0;
NotaStarPower[107] = 0;
NotaStarPower[108] = 0;
NotaStarPower[109] = 0;
NotaStarPower[110] = 0;
NotaStarPower[111] = 0;
NotaStarPower[112] = 0;
NotaStarPower[113] = 0;
NotaStarPower[114] = 0;
NotaStarPower[115] = 0;
NotaStarPower[116] = 0;
NotaStarPower[117] = 0;
NotaStarPower[118] = 0;
NotaStarPower[119] = 1;
NotaStarPower[120] = 1;
NotaStarPower[121] = 1;
NotaStarPower[122] = 1;
NotaStarPower[123] = 1;
NotaStarPower[124] = 1;
NotaStarPower[125] = 1;
NotaStarPower[126] = 1;
NotaStarPower[127] = 1;
NotaStarPower[128] = 1;
NotaStarPower[129] = 1;
NotaStarPower[130] = 0;
NotaStarPower[131] = 0;
NotaStarPower[132] = 0;
NotaStarPower[133] = 0;
NotaStarPower[134] = 0;
NotaStarPower[135] = 0;
NotaStarPower[136] = 0;
NotaStarPower[137] = 0;
NotaStarPower[138] = 0;
NotaStarPower[139] = 0;
NotaStarPower[140] = 0;
NotaStarPower[141] = 0;
NotaStarPower[142] = 0;
NotaStarPower[143] = 0;
NotaStarPower[144] = 0;
NotaStarPower[145] = 0;
NotaStarPower[146] = 0;
NotaStarPower[147] = 0;
NotaStarPower[148] = 0;
NotaStarPower[149] = 0;
NotaStarPower[150] = 0;
NotaStarPower[151] = 0;
NotaStarPower[152] = 0;
NotaStarPower[153] = 0;
NotaStarPower[154] = 0;
NotaStarPower[155] = 0;
LargoStar[1] = 9;
LargoStar[2] = 8;
LargoStar[3] = 10;
LargoStar[4] = 11;
}
public function mediumPress(){
NotaPressTotal[1] = 0;
NotaPressTotal[2] = 0;
NotaPressTotal[3] = 0;
NotaPressTotal[4] = 0;
NotaPressTotal[5] = 0;
NotaPressTotal[6] = 0;
NotaPressTotal[7] = 0;
NotaPressTotal[8] = 0.4375;
NotaPressTotal[9] = 0.4375;
NotaPressTotal[10] = 0;
NotaPressTotal[11] = 0;
NotaPressTotal[12] = 0;
NotaPressTotal[13] = 0;
NotaPressTotal[14] = 0;
NotaPressTotal[15] = 0;
NotaPressTotal[16] = 0;
NotaPressTotal[17] = 0.4375;
NotaPressTotal[18] = 0;
NotaPressTotal[19] = 0;
NotaPressTotal[20] = 0;
NotaPressTotal[21] = 0;
NotaPressTotal[22] = 0;
NotaPressTotal[23] = 0;
NotaPressTotal[24] = 0;
NotaPressTotal[25] = 0.375;
NotaPressTotal[26] = 0.375;
NotaPressTotal[27] = 0;
NotaPressTotal[28] = 0;
NotaPressTotal[29] = 0;
NotaPressTotal[30] = 0;
NotaPressTotal[31] = 0;
NotaPressTotal[32] = 0;
NotaPressTotal[33] = 0;
NotaPressTotal[34] = 0.375;
NotaPressTotal[35] = 0.375;
NotaPressTotal[36] = 0;
NotaPressTotal[37] = 0;
NotaPressTotal[38] = 0.5;
NotaPressTotal[39] = 0.5;
NotaPressTotal[40] = 0;
NotaPressTotal[41] = 0;
NotaPressTotal[42] = 0.5;
NotaPressTotal[43] = 0.5;
NotaPressTotal[44] = 0;
NotaPressTotal[45] = 0;
NotaPressTotal[46] = 0.5;
NotaPressTotal[47] = 0.5;
NotaPressTotal[48] = 0;
NotaPressTotal[49] = 0;
NotaPressTotal[50] = 0;
NotaPressTotal[51] = 0;
NotaPressTotal[52] = 0;
NotaPressTotal[53] = 0;
NotaPressTotal[54] = 0;
NotaPressTotal[55] = 0;
NotaPressTotal[56] = 0;
NotaPressTotal[57] = 0;
NotaPressTotal[58] = 0;
NotaPressTotal[59] = 0;
NotaPressTotal[60] = 0;
NotaPressTotal[61] = 0;
NotaPressTotal[62] = 0;
NotaPressTotal[63] = 0;
NotaPressTotal[64] = 0;
NotaPressTotal[65] = 0;
NotaPressTotal[66] = 0;
NotaPressTotal[67] = 0;
NotaPressTotal[68] = 0;
NotaPressTotal[69] = 0;
NotaPressTotal[70] = 0;
NotaPressTotal[71] = 0;
NotaPressTotal[72] = 0;
NotaPressTotal[73] = 0;
NotaPressTotal[74] = 0;
NotaPressTotal[75] = 0;
NotaPressTotal[76] = 0;
NotaPressTotal[77] = 0;
NotaPressTotal[78] = 0;
NotaPressTotal[79] = 0;
NotaPressTotal[80] = 0;
NotaPressTotal[81] = 0;
NotaPressTotal[82] = 0;
NotaPressTotal[83] = 0;
NotaPressTotal[84] = 0;
NotaPressTotal[85] = 0;
NotaPressTotal[86] = 0;
NotaPressTotal[87] = 0;
NotaPressTotal[88] = 0.3125;
NotaPressTotal[89] = 0.3125;
NotaPressTotal[90] = 0;
NotaPressTotal[91] = 0;
NotaPressTotal[92] = 0;
NotaPressTotal[93] = 0;
NotaPressTotal[94] = 0;
NotaPressTotal[95] = 0;
NotaPressTotal[96] = 0;
NotaPressTotal[97] = 0;
NotaPressTotal[98] = 0;
NotaPressTotal[99] = 0;
NotaPressTotal[100] = 0;
NotaPressTotal[101] = 0;
NotaPressTotal[102] = 0;
NotaPressTotal[103] = 0;
NotaPressTotal[104] = 0;
NotaPressTotal[105] = 0.5;
NotaPressTotal[106] = 0.5;
NotaPressTotal[107] = 0;
NotaPressTotal[108] = 0;
NotaPressTotal[109] = 0.375;
NotaPressTotal[110] = 0;
NotaPressTotal[111] = 0;
NotaPressTotal[112] = 0.375;
NotaPressTotal[113] = 0;
NotaPressTotal[114] = 0;
NotaPressTotal[115] = 0.375;
NotaPressTotal[116] = 0;
NotaPressTotal[117] = 0;
NotaPressTotal[118] = 0.25;
NotaPressTotal[119] = 0;
NotaPressTotal[120] = 0;
NotaPressTotal[121] = 0;
NotaPressTotal[122] = 0;
NotaPressTotal[123] = 0;
NotaPressTotal[124] = 0;
NotaPressTotal[125] = 0;
NotaPressTotal[126] = 0;
NotaPressTotal[127] = 0;
NotaPressTotal[128] = 0.375;
NotaPressTotal[129] = 0.375;
NotaPressTotal[130] = 0;
NotaPressTotal[131] = 0;
NotaPressTotal[132] = 0;
NotaPressTotal[133] = 0;
NotaPressTotal[134] = 0;
NotaPressTotal[135] = 0;
NotaPressTotal[136] = 0;
NotaPressTotal[137] = 0;
NotaPressTotal[138] = 0.75;
NotaPressTotal[139] = 0.75;
NotaPressTotal[140] = 0;
NotaPressTotal[141] = 0;
NotaPressTotal[142] = 0;
NotaPressTotal[143] = 0.5;
NotaPressTotal[144] = 0.5;
NotaPressTotal[145] = 0;
NotaPressTotal[146] = 0;
NotaPressTotal[147] = 0;
NotaPressTotal[148] = 0;
NotaPressTotal[149] = 0;
NotaPressTotal[150] = 0;
NotaPressTotal[151] = 0;
NotaPressTotal[152] = 0.375;
NotaPressTotal[153] = 0.375;
NotaPressTotal[154] = 0.5;
NotaPressTotal[155] = 0.5;
}
public function hardPress(){
NotaPressTotal[1] = 0;
NotaPressTotal[2] = 0;
NotaPressTotal[3] = 0;
NotaPressTotal[4] = 0;
NotaPressTotal[5] = 0;
NotaPressTotal[6] = 0;
NotaPressTotal[7] = 0;
NotaPressTotal[8] = 0.4375;
NotaPressTotal[9] = 0.4375;
NotaPressTotal[10] = 0;
NotaPressTotal[11] = 0;
NotaPressTotal[12] = 0;
NotaPressTotal[13] = 0;
NotaPressTotal[14] = 0;
NotaPressTotal[15] = 0;
NotaPressTotal[16] = 0;
NotaPressTotal[17] = 0.4375;
NotaPressTotal[18] = 0;
NotaPressTotal[19] = 0;
NotaPressTotal[20] = 0;
NotaPressTotal[21] = 0;
NotaPressTotal[22] = 0;
NotaPressTotal[23] = 0;
NotaPressTotal[24] = 0;
NotaPressTotal[25] = 0.375;
NotaPressTotal[26] = 0.375;
NotaPressTotal[27] = 0;
NotaPressTotal[28] = 0;
NotaPressTotal[29] = 0;
NotaPressTotal[30] = 0;
NotaPressTotal[31] = 0;
NotaPressTotal[32] = 0;
NotaPressTotal[33] = 0;
NotaPressTotal[34] = 0.375;
NotaPressTotal[35] = 0.375;
NotaPressTotal[36] = 0;
NotaPressTotal[37] = 0;
NotaPressTotal[38] = 0.5;
NotaPressTotal[39] = 0.5;
NotaPressTotal[40] = 0;
NotaPressTotal[41] = 0;
NotaPressTotal[42] = 0.5;
NotaPressTotal[43] = 0.5;
NotaPressTotal[44] = 0;
NotaPressTotal[45] = 0;
NotaPressTotal[46] = 0.5;
NotaPressTotal[47] = 0.5;
NotaPressTotal[48] = 0;
NotaPressTotal[49] = 0;
NotaPressTotal[50] = 0;
NotaPressTotal[51] = 0;
NotaPressTotal[52] = 0;
NotaPressTotal[53] = 0;
NotaPressTotal[54] = 0;
NotaPressTotal[55] = 0;
NotaPressTotal[56] = 0;
NotaPressTotal[57] = 0;
NotaPressTotal[58] = 0;
NotaPressTotal[59] = 0;
NotaPressTotal[60] = 0;
NotaPressTotal[61] = 0;
NotaPressTotal[62] = 0;
NotaPressTotal[63] = 0;
NotaPressTotal[64] = 0;
NotaPressTotal[65] = 0;
NotaPressTotal[66] = 0;
NotaPressTotal[67] = 0;
NotaPressTotal[68] = 0;
NotaPressTotal[69] = 0;
NotaPressTotal[70] = 0;
NotaPressTotal[71] = 0;
NotaPressTotal[72] = 0;
NotaPressTotal[73] = 0;
NotaPressTotal[74] = 0;
NotaPressTotal[75] = 0;
NotaPressTotal[76] = 0;
NotaPressTotal[77] = 0;
NotaPressTotal[78] = 0;
NotaPressTotal[79] = 0;
NotaPressTotal[80] = 0;
NotaPressTotal[81] = 0;
NotaPressTotal[82] = 0;
NotaPressTotal[83] = 0;
NotaPressTotal[84] = 0;
NotaPressTotal[85] = 0;
NotaPressTotal[86] = 0;
NotaPressTotal[87] = 0;
NotaPressTotal[88] = 0;
NotaPressTotal[89] = 0;
NotaPressTotal[90] = 0.3125;
NotaPressTotal[91] = 0.3125;
NotaPressTotal[92] = 0;
NotaPressTotal[93] = 0;
NotaPressTotal[94] = 0;
NotaPressTotal[95] = 0;
NotaPressTotal[96] = 0;
NotaPressTotal[97] = 0;
NotaPressTotal[98] = 0;
NotaPressTotal[99] = 0;
NotaPressTotal[100] = 0;
NotaPressTotal[101] = 0;
NotaPressTotal[102] = 0;
NotaPressTotal[103] = 0;
NotaPressTotal[104] = 0;
NotaPressTotal[105] = 0;
NotaPressTotal[106] = 0;
NotaPressTotal[107] = 0;
NotaPressTotal[108] = 0.5;
NotaPressTotal[109] = 0.5;
NotaPressTotal[110] = 0;
NotaPressTotal[111] = 0;
NotaPressTotal[112] = 0.375;
NotaPressTotal[113] = 0.375;
NotaPressTotal[114] = 0;
NotaPressTotal[115] = 0;
NotaPressTotal[116] = 0.375;
NotaPressTotal[117] = 0.375;
NotaPressTotal[118] = 0;
NotaPressTotal[119] = 0;
NotaPressTotal[120] = 0.375;
NotaPressTotal[121] = 0;
NotaPressTotal[122] = 0;
NotaPressTotal[123] = 0.1875;
NotaPressTotal[124] = 0.1875;
NotaPressTotal[125] = 0;
NotaPressTotal[126] = 0;
NotaPressTotal[127] = 0;
NotaPressTotal[128] = 0;
NotaPressTotal[129] = 0;
NotaPressTotal[130] = 0;
NotaPressTotal[131] = 0;
NotaPressTotal[132] = 0;
NotaPressTotal[133] = 0.3125;
NotaPressTotal[134] = 0.3125;
NotaPressTotal[135] = 0;
NotaPressTotal[136] = 0;
NotaPressTotal[137] = 0;
NotaPressTotal[138] = 0;
NotaPressTotal[139] = 0;
NotaPressTotal[140] = 0;
NotaPressTotal[141] = 0;
NotaPressTotal[142] = 0;
NotaPressTotal[143] = 0;
NotaPressTotal[144] = 0;
NotaPressTotal[145] = 0;
NotaPressTotal[146] = 0;
NotaPressTotal[147] = 0;
NotaPressTotal[148] = 0;
NotaPressTotal[149] = 0;
NotaPressTotal[150] = 0;
NotaPressTotal[151] = 0.375;
NotaPressTotal[152] = 0.375;
NotaPressTotal[153] = 0;
NotaPressTotal[154] = 0;
NotaPressTotal[155] = 0;
NotaPressTotal[156] = 0;
NotaPressTotal[157] = 0;
NotaPressTotal[158] = 0;
NotaPressTotal[159] = 0;
NotaPressTotal[160] = 0.375;
NotaPressTotal[161] = 0.375;
NotaPressTotal[162] = 0.5;
NotaPressTotal[163] = 0.5;
}
public function mediumColores(){
NotaColorTotal[1] = 0;
NotaColorTotal[2] = 0;
NotaColorTotal[3] = 1;
NotaColorTotal[4] = 2;
NotaColorTotal[5] = 1;
NotaColorTotal[6] = 0;
NotaColorTotal[7] = 1;
NotaColorTotal[8] = 2;
NotaColorTotal[9] = 3;
NotaColorTotal[10] = 1;
NotaColorTotal[11] = 1;
NotaColorTotal[12] = 2;
NotaColorTotal[13] = 3;
NotaColorTotal[14] = 2;
NotaColorTotal[15] = 0;
NotaColorTotal[16] = 1;
NotaColorTotal[17] = 1;
NotaColorTotal[18] = 0;
NotaColorTotal[19] = 0;
NotaColorTotal[20] = 1;
NotaColorTotal[21] = 2;
NotaColorTotal[22] = 1;
NotaColorTotal[23] = 0;
NotaColorTotal[24] = 1;
NotaColorTotal[25] = 2;
NotaColorTotal[26] = 3;
NotaColorTotal[27] = 1;
NotaColorTotal[28] = 1;
NotaColorTotal[29] = 3;
NotaColorTotal[30] = 0;
NotaColorTotal[31] = 2;
NotaColorTotal[32] = 1;
NotaColorTotal[33] = 3;
NotaColorTotal[34] = 0;
NotaColorTotal[35] = 1;
NotaColorTotal[36] = 1;
NotaColorTotal[37] = 1;
NotaColorTotal[38] = 2;
NotaColorTotal[39] = 3;
NotaColorTotal[40] = 2;
NotaColorTotal[41] = 2;
NotaColorTotal[42] = 0;
NotaColorTotal[43] = 1;
NotaColorTotal[44] = 1;
NotaColorTotal[45] = 1;
NotaColorTotal[46] = 2;
NotaColorTotal[47] = 3;
NotaColorTotal[48] = 1;
NotaColorTotal[49] = 3;
NotaColorTotal[50] = 2;
NotaColorTotal[51] = 0;
NotaColorTotal[52] = 1;
NotaColorTotal[53] = 0;
NotaColorTotal[54] = 1;
NotaColorTotal[55] = 2;
NotaColorTotal[56] = 2;
NotaColorTotal[57] = 0;
NotaColorTotal[58] = 1;
NotaColorTotal[59] = 2;
NotaColorTotal[60] = 3;
NotaColorTotal[61] = 1;
NotaColorTotal[62] = 1;
NotaColorTotal[63] = 2;
NotaColorTotal[64] = 0;
NotaColorTotal[65] = 3;
NotaColorTotal[66] = 0;
NotaColorTotal[67] = 2;
NotaColorTotal[68] = 0;
NotaColorTotal[69] = 1;
NotaColorTotal[70] = 0;
NotaColorTotal[71] = 0;
NotaColorTotal[72] = 1;
NotaColorTotal[73] = 2;
NotaColorTotal[74] = 3;
NotaColorTotal[75] = 2;
NotaColorTotal[76] = 0;
NotaColorTotal[77] = 1;
NotaColorTotal[78] = 2;
NotaColorTotal[79] = 3;
NotaColorTotal[80] = 1;
NotaColorTotal[81] = 1;
NotaColorTotal[82] = 2;
NotaColorTotal[83] = 1;
NotaColorTotal[84] = 0;
NotaColorTotal[85] = 0;
NotaColorTotal[86] = 1;
NotaColorTotal[87] = 2;
NotaColorTotal[88] = 1;
NotaColorTotal[89] = 2;
NotaColorTotal[90] = 0;
NotaColorTotal[91] = 0;
NotaColorTotal[92] = 1;
NotaColorTotal[93] = 3;
NotaColorTotal[94] = 2;
NotaColorTotal[95] = 1;
NotaColorTotal[96] = 2;
NotaColorTotal[97] = 3;
NotaColorTotal[98] = 1;
NotaColorTotal[99] = 1;
NotaColorTotal[100] = 2;
NotaColorTotal[101] = 1;
NotaColorTotal[102] = 0;
NotaColorTotal[103] = 0;
NotaColorTotal[104] = 2;
NotaColorTotal[105] = 0;
NotaColorTotal[106] = 1;
NotaColorTotal[107] = 1;
NotaColorTotal[108] = 1;
NotaColorTotal[109] = 3;
NotaColorTotal[110] = 2;
NotaColorTotal[111] = 2;
NotaColorTotal[112] = 0;
NotaColorTotal[113] = 1;
NotaColorTotal[114] = 1;
NotaColorTotal[115] = 2;
NotaColorTotal[116] = 1;
NotaColorTotal[117] = 3;
NotaColorTotal[118] = 0;
NotaColorTotal[119] = 0;
NotaColorTotal[120] = 0;
NotaColorTotal[121] = 1;
NotaColorTotal[122] = 1;
NotaColorTotal[123] = 0;
NotaColorTotal[124] = 2;
NotaColorTotal[125] = 1;
NotaColorTotal[126] = 3;
NotaColorTotal[127] = 1;
NotaColorTotal[128] = 2;
NotaColorTotal[129] = 3;
NotaColorTotal[130] = 2;
NotaColorTotal[131] = 1;
NotaColorTotal[132] = 2;
NotaColorTotal[133] = 3;
NotaColorTotal[134] = 1;
NotaColorTotal[135] = 0;
NotaColorTotal[136] = 1;
NotaColorTotal[137] = 2;
NotaColorTotal[138] = 0;
NotaColorTotal[139] = 1;
NotaColorTotal[140] = 1;
NotaColorTotal[141] = 2;
NotaColorTotal[142] = 3;
NotaColorTotal[143] = 0;
NotaColorTotal[144] = 2;
NotaColorTotal[145] = 1;
NotaColorTotal[146] = 2;
NotaColorTotal[147] = 3;
NotaColorTotal[148] = 3;
NotaColorTotal[149] = 1;
NotaColorTotal[150] = 0;
NotaColorTotal[151] = 3;
NotaColorTotal[152] = 0;
NotaColorTotal[153] = 2;
NotaColorTotal[154] = 0;
NotaColorTotal[155] = 1;
}
public function easyPress(){
NotaPressTotal[1] = 0;
NotaPressTotal[2] = 0;
NotaPressTotal[3] = 0;
NotaPressTotal[4] = 0;
NotaPressTotal[5] = 0;
NotaPressTotal[6] = 0;
NotaPressTotal[7] = 0;
NotaPressTotal[8] = 0;
NotaPressTotal[9] = 0;
NotaPressTotal[10] = 0;
NotaPressTotal[11] = 0;
NotaPressTotal[12] = 0;
NotaPressTotal[13] = 0;
NotaPressTotal[14] = 0;
NotaPressTotal[15] = 0;
NotaPressTotal[16] = 0;
NotaPressTotal[17] = 0;
NotaPressTotal[18] = 0;
NotaPressTotal[19] = 0;
NotaPressTotal[20] = 0;
NotaPressTotal[21] = 0;
NotaPressTotal[22] = 0;
NotaPressTotal[23] = 0;
NotaPressTotal[24] = 0;
NotaPressTotal[25] = 0;
NotaPressTotal[26] = 0;
NotaPressTotal[27] = 0;
NotaPressTotal[28] = 0;
NotaPressTotal[29] = 0;
NotaPressTotal[30] = 0;
NotaPressTotal[31] = 0;
NotaPressTotal[32] = 0;
NotaPressTotal[33] = 0;
NotaPressTotal[34] = 0;
NotaPressTotal[35] = 0.5;
NotaPressTotal[36] = 0;
NotaPressTotal[37] = 0;
NotaPressTotal[38] = 0.5;
NotaPressTotal[39] = 0;
NotaPressTotal[40] = 0;
NotaPressTotal[41] = 0.5;
NotaPressTotal[42] = 0;
NotaPressTotal[43] = 0;
NotaPressTotal[44] = 0;
NotaPressTotal[45] = 0;
NotaPressTotal[46] = 0;
NotaPressTotal[47] = 0;
NotaPressTotal[48] = 0;
NotaPressTotal[49] = 0;
NotaPressTotal[50] = 0;
NotaPressTotal[51] = 0;
NotaPressTotal[52] = 0;
NotaPressTotal[53] = 0;
NotaPressTotal[54] = 0;
NotaPressTotal[55] = 0;
NotaPressTotal[56] = 0;
NotaPressTotal[57] = 0;
NotaPressTotal[58] = 0;
NotaPressTotal[59] = 0;
NotaPressTotal[60] = 0;
NotaPressTotal[61] = 0;
NotaPressTotal[62] = 0;
NotaPressTotal[63] = 0;
NotaPressTotal[64] = 0;
NotaPressTotal[65] = 0;
NotaPressTotal[66] = 0;
NotaPressTotal[67] = 0;
NotaPressTotal[68] = 0;
NotaPressTotal[69] = 0;
NotaPressTotal[70] = 0;
NotaPressTotal[71] = 0;
NotaPressTotal[72] = 0;
NotaPressTotal[73] = 0;
NotaPressTotal[74] = 0;
NotaPressTotal[75] = 0;
NotaPressTotal[76] = 0;
NotaPressTotal[77] = 0;
NotaPressTotal[78] = 0.3125;
NotaPressTotal[79] = 0;
NotaPressTotal[80] = 0;
NotaPressTotal[81] = 0;
NotaPressTotal[82] = 0;
NotaPressTotal[83] = 0;
NotaPressTotal[84] = 0;
NotaPressTotal[85] = 0;
NotaPressTotal[86] = 0;
NotaPressTotal[87] = 0;
NotaPressTotal[88] = 0;
NotaPressTotal[89] = 0;
NotaPressTotal[90] = 0;
NotaPressTotal[91] = 0;
NotaPressTotal[92] = 0;
NotaPressTotal[93] = 0;
NotaPressTotal[94] = 0.5;
NotaPressTotal[95] = 0;
NotaPressTotal[96] = 0;
NotaPressTotal[97] = 0.375;
NotaPressTotal[98] = 0;
NotaPressTotal[99] = 0;
NotaPressTotal[100] = 0.375;
NotaPressTotal[101] = 0;
NotaPressTotal[102] = 0;
NotaPressTotal[103] = 0.375;
NotaPressTotal[104] = 0;
NotaPressTotal[105] = 0;
NotaPressTotal[106] = 0.375;
NotaPressTotal[107] = 0;
NotaPressTotal[108] = 0;
NotaPressTotal[109] = 0;
NotaPressTotal[110] = 0;
NotaPressTotal[111] = 0;
NotaPressTotal[112] = 0;
NotaPressTotal[113] = 0;
NotaPressTotal[114] = 0.3125;
NotaPressTotal[115] = 0;
NotaPressTotal[116] = 0;
NotaPressTotal[117] = 0;
NotaPressTotal[118] = 0;
NotaPressTotal[119] = 0;
NotaPressTotal[120] = 0;
NotaPressTotal[121] = 0;
NotaPressTotal[122] = 1;
NotaPressTotal[123] = 1;
NotaPressTotal[124] = 0;
NotaPressTotal[125] = 0;
NotaPressTotal[126] = 0;
NotaPressTotal[127] = 0.4375;
NotaPressTotal[128] = 0;
NotaPressTotal[129] = 0;
NotaPressTotal[130] = 0;
NotaPressTotal[131] = 0;
NotaPressTotal[132] = 0;
NotaPressTotal[133] = 0;
NotaPressTotal[134] = 0;
NotaPressTotal[135] = 0.375;
NotaPressTotal[136] = 0.5;
NotaPressTotal[137] = 0.5;
}
public function mediumTiempos(){
NotaTiempo[1] = 0.625;
NotaTiempo[2] = 1;
NotaTiempo[3] = 1.25;
NotaTiempo[4] = 1.4375;
NotaTiempo[5] = 1.75;
NotaTiempo[6] = 2.125;
NotaTiempo[7] = 2.5;
NotaTiempo[8] = 2.875;
NotaTiempo[9] = 2.875;
NotaTiempo[10] = 3.5625;
NotaTiempo[11] = 3.9375;
NotaTiempo[12] = 4.25;
NotaTiempo[13] = 4.4375;
NotaTiempo[14] = 4.75;
NotaTiempo[15] = 5.125;
NotaTiempo[16] = 5.5;
NotaTiempo[17] = 5.8125;
NotaTiempo[18] = 6.5625;
NotaTiempo[19] = 6.9375;
NotaTiempo[20] = 7.25;
NotaTiempo[21] = 7.4375;
NotaTiempo[22] = 7.75;
NotaTiempo[23] = 8.1875;
NotaTiempo[24] = 8.5;
NotaTiempo[25] = 8.8125;
NotaTiempo[26] = 8.8125;
NotaTiempo[27] = 9.5625;
NotaTiempo[28] = 9.9375;
NotaTiempo[29] = 10.25;
NotaTiempo[30] = 10.4375;
NotaTiempo[31] = 10.75;
NotaTiempo[32] = 11.1875;
NotaTiempo[33] = 11.5;
NotaTiempo[34] = 11.8125;
NotaTiempo[35] = 11.8125;
NotaTiempo[36] = 12.5625;
NotaTiempo[37] = 13;
NotaTiempo[38] = 13.3125;
NotaTiempo[39] = 13.3125;
NotaTiempo[40] = 14.0625;
NotaTiempo[41] = 14.4375;
NotaTiempo[42] = 14.8125;
NotaTiempo[43] = 14.8125;
NotaTiempo[44] = 15.625;
NotaTiempo[45] = 16;
NotaTiempo[46] = 16.3125;
NotaTiempo[47] = 16.3125;
NotaTiempo[48] = 17.0625;
NotaTiempo[49] = 17.4375;
NotaTiempo[50] = 17.8125;
NotaTiempo[51] = 18.1875;
NotaTiempo[52] = 18.1875;
NotaTiempo[53] = 18.625;
NotaTiempo[54] = 18.9375;
NotaTiempo[55] = 19.3125;
NotaTiempo[56] = 19.4375;
NotaTiempo[57] = 19.75;
NotaTiempo[58] = 20.125;
NotaTiempo[59] = 20.4375;
NotaTiempo[60] = 20.8125;
NotaTiempo[61] = 21.5625;
NotaTiempo[62] = 21.875;
NotaTiempo[63] = 22.125;
NotaTiempo[64] = 22.375;
NotaTiempo[65] = 22.6875;
NotaTiempo[66] = 23.125;
NotaTiempo[67] = 23.4375;
NotaTiempo[68] = 23.8125;
NotaTiempo[69] = 23.8125;
NotaTiempo[70] = 24.5;
NotaTiempo[71] = 24.8125;
NotaTiempo[72] = 25.0625;
NotaTiempo[73] = 25.0625;
NotaTiempo[74] = 25.3125;
NotaTiempo[75] = 25.625;
NotaTiempo[76] = 25.875;
NotaTiempo[77] = 26.25;
NotaTiempo[78] = 26.625;
NotaTiempo[79] = 26.625;
NotaTiempo[80] = 27.25;
NotaTiempo[81] = 27.4375;
NotaTiempo[82] = 27.625;
NotaTiempo[83] = 27.75;
NotaTiempo[84] = 28.0625;
NotaTiempo[85] = 28.25;
NotaTiempo[86] = 28.5;
NotaTiempo[87] = 28.5;
NotaTiempo[88] = 28.8125;
NotaTiempo[89] = 28.8125;
NotaTiempo[90] = 29.5625;
NotaTiempo[91] = 29.75;
NotaTiempo[92] = 30;
NotaTiempo[93] = 30.1875;
NotaTiempo[94] = 30.5;
NotaTiempo[95] = 30.75;
NotaTiempo[96] = 31.125;
NotaTiempo[97] = 31.5;
NotaTiempo[98] = 32.0625;
NotaTiempo[99] = 32.25;
NotaTiempo[100] = 32.4375;
NotaTiempo[101] = 32.5625;
NotaTiempo[102] = 32.875;
NotaTiempo[103] = 33.0625;
NotaTiempo[104] = 33.375;
NotaTiempo[105] = 33.6875;
NotaTiempo[106] = 33.6875;
NotaTiempo[107] = 34.4375;
NotaTiempo[108] = 34.75;
NotaTiempo[109] = 35.0625;
NotaTiempo[110] = 35.6875;
NotaTiempo[111] = 35.9375;
NotaTiempo[112] = 36.3125;
NotaTiempo[113] = 37;
NotaTiempo[114] = 37.3125;
NotaTiempo[115] = 37.625;
NotaTiempo[116] = 38.1875;
NotaTiempo[117] = 38.5;
NotaTiempo[118] = 38.875;
NotaTiempo[119] = 39.3125;
NotaTiempo[120] = 39.6875;
NotaTiempo[121] = 39.6875;
NotaTiempo[122] = 39.9375;
NotaTiempo[123] = 40.1875;
NotaTiempo[124] = 40.4375;
NotaTiempo[125] = 40.75;
NotaTiempo[126] = 40.9375;
NotaTiempo[127] = 41.3125;
NotaTiempo[128] = 41.625;
NotaTiempo[129] = 41.625;
NotaTiempo[130] = 42.25;
NotaTiempo[131] = 42.5625;
NotaTiempo[132] = 42.75;
NotaTiempo[133] = 42.9375;
NotaTiempo[134] = 43.375;
NotaTiempo[135] = 43.625;
NotaTiempo[136] = 44.3125;
NotaTiempo[137] = 44.3125;
NotaTiempo[138] = 45;
NotaTiempo[139] = 45;
NotaTiempo[140] = 46.25;
NotaTiempo[141] = 46.5;
NotaTiempo[142] = 46.75;
NotaTiempo[143] = 47.1875;
NotaTiempo[144] = 47.1875;
NotaTiempo[145] = 48;
NotaTiempo[146] = 48.375;
NotaTiempo[147] = 48.6875;
NotaTiempo[148] = 48.8125;
NotaTiempo[149] = 49.375;
NotaTiempo[150] = 49.5625;
NotaTiempo[151] = 49.875;
NotaTiempo[152] = 50.25;
NotaTiempo[153] = 50.25;
NotaTiempo[154] = 50.9375;
NotaTiempo[155] = 50.9375;
NotaTiempo[156] = -1;
}
public function NotasColoresTotales(_arg1:int){
if (_arg1 == 1){
easyColores();
} else {
if (_arg1 == 2){
trace("Q SHUSHA");
mediumColores();
} else {
if (_arg1 == 3){
hardColores();
};
};
};
}
public function hardStarPower(){
NotaStarPower[1] = 0;
NotaStarPower[2] = 0;
NotaStarPower[3] = 0;
NotaStarPower[4] = 0;
NotaStarPower[5] = 0;
NotaStarPower[6] = 0;
NotaStarPower[7] = 0;
NotaStarPower[8] = 0;
NotaStarPower[9] = 0;
NotaStarPower[10] = 0;
NotaStarPower[11] = 0;
NotaStarPower[12] = 0;
NotaStarPower[13] = 0;
NotaStarPower[14] = 0;
NotaStarPower[15] = 0;
NotaStarPower[16] = 0;
NotaStarPower[17] = 0;
NotaStarPower[18] = 0;
NotaStarPower[19] = 0;
NotaStarPower[20] = 0;
NotaStarPower[21] = 0;
NotaStarPower[22] = 0;
NotaStarPower[23] = 0;
NotaStarPower[24] = 0;
NotaStarPower[25] = 0;
NotaStarPower[26] = 0;
NotaStarPower[27] = 1;
NotaStarPower[28] = 1;
NotaStarPower[29] = 1;
NotaStarPower[30] = 1;
NotaStarPower[31] = 1;
NotaStarPower[32] = 1;
NotaStarPower[33] = 1;
NotaStarPower[34] = 1;
NotaStarPower[35] = 1;
NotaStarPower[36] = 0;
NotaStarPower[37] = 0;
NotaStarPower[38] = 0;
NotaStarPower[39] = 0;
NotaStarPower[40] = 0;
NotaStarPower[41] = 0;
NotaStarPower[42] = 0;
NotaStarPower[43] = 0;
NotaStarPower[44] = 0;
NotaStarPower[45] = 0;
NotaStarPower[46] = 0;
NotaStarPower[47] = 0;
NotaStarPower[48] = 0;
NotaStarPower[49] = 0;
NotaStarPower[50] = 0;
NotaStarPower[51] = 0;
NotaStarPower[52] = 0;
NotaStarPower[53] = 1;
NotaStarPower[54] = 1;
NotaStarPower[55] = 1;
NotaStarPower[56] = 1;
NotaStarPower[57] = 1;
NotaStarPower[58] = 1;
NotaStarPower[59] = 1;
NotaStarPower[60] = 1;
NotaStarPower[61] = 1;
NotaStarPower[62] = 0;
NotaStarPower[63] = 0;
NotaStarPower[64] = 0;
NotaStarPower[65] = 0;
NotaStarPower[66] = 0;
NotaStarPower[67] = 0;
NotaStarPower[68] = 0;
NotaStarPower[69] = 0;
NotaStarPower[70] = 0;
NotaStarPower[71] = 0;
NotaStarPower[72] = 0;
NotaStarPower[73] = 0;
NotaStarPower[74] = 0;
NotaStarPower[75] = 0;
NotaStarPower[76] = 0;
NotaStarPower[77] = 0;
NotaStarPower[78] = 0;
NotaStarPower[79] = 0;
NotaStarPower[80] = 0;
NotaStarPower[81] = 0;
NotaStarPower[82] = 1;
NotaStarPower[83] = 1;
NotaStarPower[84] = 1;
NotaStarPower[85] = 1;
NotaStarPower[86] = 1;
NotaStarPower[87] = 1;
NotaStarPower[88] = 1;
NotaStarPower[89] = 1;
NotaStarPower[90] = 1;
NotaStarPower[91] = 1;
NotaStarPower[92] = 0;
NotaStarPower[93] = 0;
NotaStarPower[94] = 0;
NotaStarPower[95] = 0;
NotaStarPower[96] = 0;
NotaStarPower[97] = 0;
NotaStarPower[98] = 0;
NotaStarPower[99] = 0;
NotaStarPower[100] = 0;
NotaStarPower[101] = 0;
NotaStarPower[102] = 0;
NotaStarPower[103] = 0;
NotaStarPower[104] = 0;
NotaStarPower[105] = 0;
NotaStarPower[106] = 0;
NotaStarPower[107] = 0;
NotaStarPower[108] = 0;
NotaStarPower[109] = 0;
NotaStarPower[110] = 0;
NotaStarPower[111] = 0;
NotaStarPower[112] = 0;
NotaStarPower[113] = 0;
NotaStarPower[114] = 0;
NotaStarPower[115] = 0;
NotaStarPower[116] = 0;
NotaStarPower[117] = 0;
NotaStarPower[118] = 0;
NotaStarPower[119] = 0;
NotaStarPower[120] = 0;
NotaStarPower[121] = 0;
NotaStarPower[122] = 0;
NotaStarPower[123] = 0;
NotaStarPower[124] = 0;
NotaStarPower[125] = 1;
NotaStarPower[126] = 1;
NotaStarPower[127] = 1;
NotaStarPower[128] = 1;
NotaStarPower[129] = 1;
NotaStarPower[130] = 1;
NotaStarPower[131] = 1;
NotaStarPower[132] = 1;
NotaStarPower[133] = 1;
NotaStarPower[134] = 1;
NotaStarPower[135] = 0;
NotaStarPower[136] = 0;
NotaStarPower[137] = 0;
NotaStarPower[138] = 0;
NotaStarPower[139] = 0;
NotaStarPower[140] = 0;
NotaStarPower[141] = 0;
NotaStarPower[142] = 0;
NotaStarPower[143] = 0;
NotaStarPower[144] = 0;
NotaStarPower[145] = 0;
NotaStarPower[146] = 0;
NotaStarPower[147] = 0;
NotaStarPower[148] = 0;
NotaStarPower[149] = 0;
NotaStarPower[150] = 0;
NotaStarPower[151] = 0;
NotaStarPower[152] = 0;
NotaStarPower[153] = 0;
NotaStarPower[154] = 0;
NotaStarPower[155] = 0;
NotaStarPower[156] = 0;
NotaStarPower[157] = 0;
NotaStarPower[158] = 0;
NotaStarPower[159] = 0;
NotaStarPower[160] = 0;
NotaStarPower[161] = 0;
NotaStarPower[162] = 0;
NotaStarPower[163] = 0;
LargoStar[1] = 9;
LargoStar[2] = 9;
LargoStar[3] = 10;
LargoStar[4] = 10;
}
public function hardTiempos(){
NotaTiempo[1] = 0.625;
NotaTiempo[2] = 1;
NotaTiempo[3] = 1.1875;
NotaTiempo[4] = 1.375;
NotaTiempo[5] = 1.75;
NotaTiempo[6] = 2.125;
NotaTiempo[7] = 2.375;
NotaTiempo[8] = 2.8125;
NotaTiempo[9] = 2.8125;
NotaTiempo[10] = 3.5625;
NotaTiempo[11] = 3.9375;
NotaTiempo[12] = 4.25;
NotaTiempo[13] = 4.4375;
NotaTiempo[14] = 4.75;
NotaTiempo[15] = 5.125;
NotaTiempo[16] = 5.5;
NotaTiempo[17] = 5.8125;
NotaTiempo[18] = 6.5625;
NotaTiempo[19] = 6.9375;
NotaTiempo[20] = 7.25;
NotaTiempo[21] = 7.4375;
NotaTiempo[22] = 7.75;
NotaTiempo[23] = 8.1875;
NotaTiempo[24] = 8.5;
NotaTiempo[25] = 8.8125;
NotaTiempo[26] = 8.8125;
NotaTiempo[27] = 9.5625;
NotaTiempo[28] = 9.9375;
NotaTiempo[29] = 10.25;
NotaTiempo[30] = 10.4375;
NotaTiempo[31] = 10.75;
NotaTiempo[32] = 11.1875;
NotaTiempo[33] = 11.5;
NotaTiempo[34] = 11.8125;
NotaTiempo[35] = 11.8125;
NotaTiempo[36] = 12.5625;
NotaTiempo[37] = 13;
NotaTiempo[38] = 13.3125;
NotaTiempo[39] = 13.3125;
NotaTiempo[40] = 14.0625;
NotaTiempo[41] = 14.4375;
NotaTiempo[42] = 14.8125;
NotaTiempo[43] = 14.8125;
NotaTiempo[44] = 15.625;
NotaTiempo[45] = 16;
NotaTiempo[46] = 16.3125;
NotaTiempo[47] = 16.3125;
NotaTiempo[48] = 17.0625;
NotaTiempo[49] = 17.4375;
NotaTiempo[50] = 17.8125;
NotaTiempo[51] = 18.1875;
NotaTiempo[52] = 18.1875;
NotaTiempo[53] = 18.625;
NotaTiempo[54] = 18.9375;
NotaTiempo[55] = 19.3125;
NotaTiempo[56] = 19.4375;
NotaTiempo[57] = 19.75;
NotaTiempo[58] = 20.125;
NotaTiempo[59] = 20.4375;
NotaTiempo[60] = 20.8125;
NotaTiempo[61] = 20.8125;
NotaTiempo[62] = 21.5;
NotaTiempo[63] = 21.875;
NotaTiempo[64] = 22.125;
NotaTiempo[65] = 22.3125;
NotaTiempo[66] = 22.75;
NotaTiempo[67] = 23.0625;
NotaTiempo[68] = 23.4375;
NotaTiempo[69] = 23.4375;
NotaTiempo[70] = 23.8125;
NotaTiempo[71] = 23.8125;
NotaTiempo[72] = 24.5625;
NotaTiempo[73] = 24.875;
NotaTiempo[74] = 25.125;
NotaTiempo[75] = 25.125;
NotaTiempo[76] = 25.375;
NotaTiempo[77] = 25.6875;
NotaTiempo[78] = 25.9375;
NotaTiempo[79] = 26.3125;
NotaTiempo[80] = 26.6875;
NotaTiempo[81] = 26.6875;
NotaTiempo[82] = 27.25;
NotaTiempo[83] = 27.4375;
NotaTiempo[84] = 27.625;
NotaTiempo[85] = 27.75;
NotaTiempo[86] = 28;
NotaTiempo[87] = 28.1875;
NotaTiempo[88] = 28.5625;
NotaTiempo[89] = 28.5625;
NotaTiempo[90] = 28.875;
NotaTiempo[91] = 28.875;
NotaTiempo[92] = 29.5625;
NotaTiempo[93] = 29.8125;
NotaTiempo[94] = 30;
NotaTiempo[95] = 30.1875;
NotaTiempo[96] = 30.5;
NotaTiempo[97] = 30.75;
NotaTiempo[98] = 31.1875;
NotaTiempo[99] = 31.5625;
NotaTiempo[100] = 31.5625;
NotaTiempo[101] = 32.0625;
NotaTiempo[102] = 32.25;
NotaTiempo[103] = 32.4375;
NotaTiempo[104] = 32.5625;
NotaTiempo[105] = 32.875;
NotaTiempo[106] = 33.0625;
NotaTiempo[107] = 33.375;
NotaTiempo[108] = 33.6875;
NotaTiempo[109] = 33.6875;
NotaTiempo[110] = 34.4375;
NotaTiempo[111] = 34.75;
NotaTiempo[112] = 35.0625;
NotaTiempo[113] = 35.0625;
NotaTiempo[114] = 35.75;
NotaTiempo[115] = 36;
NotaTiempo[116] = 36.375;
NotaTiempo[117] = 36.375;
NotaTiempo[118] = 37;
NotaTiempo[119] = 37.3125;
NotaTiempo[120] = 37.625;
NotaTiempo[121] = 38.25;
NotaTiempo[122] = 38.5625;
NotaTiempo[123] = 38.9375;
NotaTiempo[124] = 38.9375;
NotaTiempo[125] = 39.375;
NotaTiempo[126] = 39.6875;
NotaTiempo[127] = 39.9375;
NotaTiempo[128] = 40.1875;
NotaTiempo[129] = 40.375;
NotaTiempo[130] = 40.75;
NotaTiempo[131] = 40.9375;
NotaTiempo[132] = 41.3125;
NotaTiempo[133] = 41.625;
NotaTiempo[134] = 41.625;
NotaTiempo[135] = 42.25;
NotaTiempo[136] = 42.5625;
NotaTiempo[137] = 42.8125;
NotaTiempo[138] = 43.0625;
NotaTiempo[139] = 43.375;
NotaTiempo[140] = 43.625;
NotaTiempo[141] = 44.25;
NotaTiempo[142] = 44.25;
NotaTiempo[143] = 45;
NotaTiempo[144] = 45;
NotaTiempo[145] = 45.375;
NotaTiempo[146] = 45.625;
NotaTiempo[147] = 45.8125;
NotaTiempo[148] = 46.3125;
NotaTiempo[149] = 46.5;
NotaTiempo[150] = 46.875;
NotaTiempo[151] = 47.3125;
NotaTiempo[152] = 47.3125;
NotaTiempo[153] = 48.0625;
NotaTiempo[154] = 48.375;
NotaTiempo[155] = 48.6875;
NotaTiempo[156] = 48.8125;
NotaTiempo[157] = 49.375;
NotaTiempo[158] = 49.5625;
NotaTiempo[159] = 49.875;
NotaTiempo[160] = 50.25;
NotaTiempo[161] = 50.25;
NotaTiempo[162] = 50.9375;
NotaTiempo[163] = 50.9375;
NotaTiempo[164] = -1;
}
public function hardColores(){
NotaColorTotal[1] = 0;
NotaColorTotal[2] = 0;
NotaColorTotal[3] = 1;
NotaColorTotal[4] = 3;
NotaColorTotal[5] = 2;
NotaColorTotal[6] = 0;
NotaColorTotal[7] = 1;
NotaColorTotal[8] = 2;
NotaColorTotal[9] = 4;
NotaColorTotal[10] = 1;
NotaColorTotal[11] = 1;
NotaColorTotal[12] = 2;
NotaColorTotal[13] = 3;
NotaColorTotal[14] = 2;
NotaColorTotal[15] = 0;
NotaColorTotal[16] = 1;
NotaColorTotal[17] = 1;
NotaColorTotal[18] = 0;
NotaColorTotal[19] = 0;
NotaColorTotal[20] = 1;
NotaColorTotal[21] = 2;
NotaColorTotal[22] = 1;
NotaColorTotal[23] = 0;
NotaColorTotal[24] = 1;
NotaColorTotal[25] = 2;
NotaColorTotal[26] = 4;
NotaColorTotal[27] = 1;
NotaColorTotal[28] = 1;
NotaColorTotal[29] = 3;
NotaColorTotal[30] = 1;
NotaColorTotal[31] = 2;
NotaColorTotal[32] = 0;
NotaColorTotal[33] = 3;
NotaColorTotal[34] = 0;
NotaColorTotal[35] = 1;
NotaColorTotal[36] = 1;
NotaColorTotal[37] = 1;
NotaColorTotal[38] = 3;
NotaColorTotal[39] = 4;
NotaColorTotal[40] = 2;
NotaColorTotal[41] = 2;
NotaColorTotal[42] = 0;
NotaColorTotal[43] = 1;
NotaColorTotal[44] = 1;
NotaColorTotal[45] = 1;
NotaColorTotal[46] = 2;
NotaColorTotal[47] = 4;
NotaColorTotal[48] = 1;
NotaColorTotal[49] = 3;
NotaColorTotal[50] = 2;
NotaColorTotal[51] = 0;
NotaColorTotal[52] = 1;
NotaColorTotal[53] = 0;
NotaColorTotal[54] = 1;
NotaColorTotal[55] = 2;
NotaColorTotal[56] = 2;
NotaColorTotal[57] = 0;
NotaColorTotal[58] = 1;
NotaColorTotal[59] = 2;
NotaColorTotal[60] = 3;
NotaColorTotal[61] = 4;
NotaColorTotal[62] = 1;
NotaColorTotal[63] = 1;
NotaColorTotal[64] = 3;
NotaColorTotal[65] = 0;
NotaColorTotal[66] = 2;
NotaColorTotal[67] = 0;
NotaColorTotal[68] = 2;
NotaColorTotal[69] = 3;
NotaColorTotal[70] = 0;
NotaColorTotal[71] = 1;
NotaColorTotal[72] = 0;
NotaColorTotal[73] = 0;
NotaColorTotal[74] = 1;
NotaColorTotal[75] = 2;
NotaColorTotal[76] = 3;
NotaColorTotal[77] = 2;
NotaColorTotal[78] = 0;
NotaColorTotal[79] = 1;
NotaColorTotal[80] = 2;
NotaColorTotal[81] = 4;
NotaColorTotal[82] = 1;
NotaColorTotal[83] = 1;
NotaColorTotal[84] = 2;
NotaColorTotal[85] = 1;
NotaColorTotal[86] = 0;
NotaColorTotal[87] = 0;
NotaColorTotal[88] = 1;
NotaColorTotal[89] = 2;
NotaColorTotal[90] = 1;
NotaColorTotal[91] = 2;
NotaColorTotal[92] = 0;
NotaColorTotal[93] = 0;
NotaColorTotal[94] = 1;
NotaColorTotal[95] = 3;
NotaColorTotal[96] = 2;
NotaColorTotal[97] = 1;
NotaColorTotal[98] = 2;
NotaColorTotal[99] = 3;
NotaColorTotal[100] = 4;
NotaColorTotal[101] = 1;
NotaColorTotal[102] = 1;
NotaColorTotal[103] = 2;
NotaColorTotal[104] = 1;
NotaColorTotal[105] = 0;
NotaColorTotal[106] = 0;
NotaColorTotal[107] = 3;
NotaColorTotal[108] = 0;
NotaColorTotal[109] = 1;
NotaColorTotal[110] = 1;
NotaColorTotal[111] = 1;
NotaColorTotal[112] = 3;
NotaColorTotal[113] = 4;
NotaColorTotal[114] = 2;
NotaColorTotal[115] = 2;
NotaColorTotal[116] = 0;
NotaColorTotal[117] = 2;
NotaColorTotal[118] = 1;
NotaColorTotal[119] = 1;
NotaColorTotal[120] = 2;
NotaColorTotal[121] = 1;
NotaColorTotal[122] = 3;
NotaColorTotal[123] = 0;
NotaColorTotal[124] = 1;
NotaColorTotal[125] = 0;
NotaColorTotal[126] = 1;
NotaColorTotal[127] = 1;
NotaColorTotal[128] = 0;
NotaColorTotal[129] = 2;
NotaColorTotal[130] = 1;
NotaColorTotal[131] = 4;
NotaColorTotal[132] = 1;
NotaColorTotal[133] = 2;
NotaColorTotal[134] = 3;
NotaColorTotal[135] = 2;
NotaColorTotal[136] = 1;
NotaColorTotal[137] = 2;
NotaColorTotal[138] = 4;
NotaColorTotal[139] = 1;
NotaColorTotal[140] = 0;
NotaColorTotal[141] = 1;
NotaColorTotal[142] = 2;
NotaColorTotal[143] = 1;
NotaColorTotal[144] = 3;
NotaColorTotal[145] = 1;
NotaColorTotal[146] = 2;
NotaColorTotal[147] = 3;
NotaColorTotal[148] = 1;
NotaColorTotal[149] = 2;
NotaColorTotal[150] = 4;
NotaColorTotal[151] = 0;
NotaColorTotal[152] = 2;
NotaColorTotal[153] = 1;
NotaColorTotal[154] = 2;
NotaColorTotal[155] = 4;
NotaColorTotal[156] = 4;
NotaColorTotal[157] = 1;
NotaColorTotal[158] = 0;
NotaColorTotal[159] = 3;
NotaColorTotal[160] = 0;
NotaColorTotal[161] = 2;
NotaColorTotal[162] = 0;
NotaColorTotal[163] = 1;
}
public function easyColores(){
NotaColorTotal[1] = 0;
NotaColorTotal[2] = 0;
NotaColorTotal[3] = 1;
NotaColorTotal[4] = 2;
NotaColorTotal[5] = 1;
NotaColorTotal[6] = 0;
NotaColorTotal[7] = 1;
NotaColorTotal[8] = 2;
NotaColorTotal[9] = 0;
NotaColorTotal[10] = 0;
NotaColorTotal[11] = 1;
NotaColorTotal[12] = 2;
NotaColorTotal[13] = 1;
NotaColorTotal[14] = 0;
NotaColorTotal[15] = 2;
NotaColorTotal[16] = 2;
NotaColorTotal[17] = 0;
NotaColorTotal[18] = 0;
NotaColorTotal[19] = 1;
NotaColorTotal[20] = 2;
NotaColorTotal[21] = 1;
NotaColorTotal[22] = 0;
NotaColorTotal[23] = 1;
NotaColorTotal[24] = 2;
NotaColorTotal[25] = 2;
NotaColorTotal[26] = 2;
NotaColorTotal[27] = 1;
NotaColorTotal[28] = 0;
NotaColorTotal[29] = 1;
NotaColorTotal[30] = 0;
NotaColorTotal[31] = 2;
NotaColorTotal[32] = 0;
NotaColorTotal[33] = 1;
NotaColorTotal[34] = 1;
NotaColorTotal[35] = 2;
NotaColorTotal[36] = 1;
NotaColorTotal[37] = 1;
NotaColorTotal[38] = 0;
NotaColorTotal[39] = 1;
NotaColorTotal[40] = 1;
NotaColorTotal[41] = 2;
NotaColorTotal[42] = 1;
NotaColorTotal[43] = 2;
NotaColorTotal[44] = 0;
NotaColorTotal[45] = 1;
NotaColorTotal[46] = 0;
NotaColorTotal[47] = 1;
NotaColorTotal[48] = 2;
NotaColorTotal[49] = 2;
NotaColorTotal[50] = 0;
NotaColorTotal[51] = 1;
NotaColorTotal[52] = 1;
NotaColorTotal[53] = 2;
NotaColorTotal[54] = 2;
NotaColorTotal[55] = 2;
NotaColorTotal[56] = 2;
NotaColorTotal[57] = 1;
NotaColorTotal[58] = 0;
NotaColorTotal[59] = 1;
NotaColorTotal[60] = 0;
NotaColorTotal[61] = 2;
NotaColorTotal[62] = 0;
NotaColorTotal[63] = 0;
NotaColorTotal[64] = 0;
NotaColorTotal[65] = 1;
NotaColorTotal[66] = 2;
NotaColorTotal[67] = 1;
NotaColorTotal[68] = 0;
NotaColorTotal[69] = 1;
NotaColorTotal[70] = 2;
NotaColorTotal[71] = 1;
NotaColorTotal[72] = 1;
NotaColorTotal[73] = 2;
NotaColorTotal[74] = 1;
NotaColorTotal[75] = 0;
NotaColorTotal[76] = 0;
NotaColorTotal[77] = 2;
NotaColorTotal[78] = 2;
NotaColorTotal[79] = 0;
NotaColorTotal[80] = 0;
NotaColorTotal[81] = 1;
NotaColorTotal[82] = 2;
NotaColorTotal[83] = 1;
NotaColorTotal[84] = 1;
NotaColorTotal[85] = 2;
NotaColorTotal[86] = 0;
NotaColorTotal[87] = 1;
NotaColorTotal[88] = 1;
NotaColorTotal[89] = 2;
NotaColorTotal[90] = 1;
NotaColorTotal[91] = 0;
NotaColorTotal[92] = 0;
NotaColorTotal[93] = 2;
NotaColorTotal[94] = 0;
NotaColorTotal[95] = 1;
NotaColorTotal[96] = 1;
NotaColorTotal[97] = 2;
NotaColorTotal[98] = 2;
NotaColorTotal[99] = 2;
NotaColorTotal[100] = 0;
NotaColorTotal[101] = 1;
NotaColorTotal[102] = 1;
NotaColorTotal[103] = 2;
NotaColorTotal[104] = 1;
NotaColorTotal[105] = 2;
NotaColorTotal[106] = 0;
NotaColorTotal[107] = 0;
NotaColorTotal[108] = 0;
NotaColorTotal[109] = 1;
NotaColorTotal[110] = 2;
NotaColorTotal[111] = 1;
NotaColorTotal[112] = 2;
NotaColorTotal[113] = 1;
NotaColorTotal[114] = 2;
NotaColorTotal[115] = 1;
NotaColorTotal[116] = 0;
NotaColorTotal[117] = 1;
NotaColorTotal[118] = 2;
NotaColorTotal[119] = 1;
NotaColorTotal[120] = 0;
NotaColorTotal[121] = 1;
NotaColorTotal[122] = 0;
NotaColorTotal[123] = 1;
NotaColorTotal[124] = 1;
NotaColorTotal[125] = 2;
NotaColorTotal[126] = 1;
NotaColorTotal[127] = 0;
NotaColorTotal[128] = 0;
NotaColorTotal[129] = 1;
NotaColorTotal[130] = 2;
NotaColorTotal[131] = 2;
NotaColorTotal[132] = 1;
NotaColorTotal[133] = 0;
NotaColorTotal[134] = 2;
NotaColorTotal[135] = 0;
NotaColorTotal[136] = 0;
NotaColorTotal[137] = 1;
}
public function easyStarPower(){
NotaStarPower[1] = 0;
NotaStarPower[2] = 0;
NotaStarPower[3] = 0;
NotaStarPower[4] = 0;
NotaStarPower[5] = 0;
NotaStarPower[6] = 0;
NotaStarPower[7] = 0;
NotaStarPower[8] = 0;
NotaStarPower[9] = 0;
NotaStarPower[10] = 0;
NotaStarPower[11] = 0;
NotaStarPower[12] = 0;
NotaStarPower[13] = 0;
NotaStarPower[14] = 0;
NotaStarPower[15] = 0;
NotaStarPower[16] = 0;
NotaStarPower[17] = 0;
NotaStarPower[18] = 0;
NotaStarPower[19] = 0;
NotaStarPower[20] = 0;
NotaStarPower[21] = 0;
NotaStarPower[22] = 0;
NotaStarPower[23] = 0;
NotaStarPower[24] = 0;
NotaStarPower[25] = 0;
NotaStarPower[26] = 1;
NotaStarPower[27] = 1;
NotaStarPower[28] = 1;
NotaStarPower[29] = 1;
NotaStarPower[30] = 1;
NotaStarPower[31] = 1;
NotaStarPower[32] = 1;
NotaStarPower[33] = 0;
NotaStarPower[34] = 0;
NotaStarPower[35] = 0;
NotaStarPower[36] = 0;
NotaStarPower[37] = 0;
NotaStarPower[38] = 0;
NotaStarPower[39] = 0;
NotaStarPower[40] = 0;
NotaStarPower[41] = 0;
NotaStarPower[42] = 0;
NotaStarPower[43] = 0;
NotaStarPower[44] = 0;
NotaStarPower[45] = 0;
NotaStarPower[46] = 1;
NotaStarPower[47] = 1;
NotaStarPower[48] = 1;
NotaStarPower[49] = 1;
NotaStarPower[50] = 1;
NotaStarPower[51] = 1;
NotaStarPower[52] = 1;
NotaStarPower[53] = 1;
NotaStarPower[54] = 1;
NotaStarPower[55] = 0;
NotaStarPower[56] = 0;
NotaStarPower[57] = 0;
NotaStarPower[58] = 0;
NotaStarPower[59] = 0;
NotaStarPower[60] = 0;
NotaStarPower[61] = 0;
NotaStarPower[62] = 0;
NotaStarPower[63] = 0;
NotaStarPower[64] = 0;
NotaStarPower[65] = 0;
NotaStarPower[66] = 0;
NotaStarPower[67] = 0;
NotaStarPower[68] = 0;
NotaStarPower[69] = 0;
NotaStarPower[70] = 0;
NotaStarPower[71] = 1;
NotaStarPower[72] = 1;
NotaStarPower[73] = 1;
NotaStarPower[74] = 1;
NotaStarPower[75] = 1;
NotaStarPower[76] = 1;
NotaStarPower[77] = 1;
NotaStarPower[78] = 1;
NotaStarPower[79] = 0;
NotaStarPower[80] = 0;
NotaStarPower[81] = 0;
NotaStarPower[82] = 0;
NotaStarPower[83] = 0;
NotaStarPower[84] = 0;
NotaStarPower[85] = 0;
NotaStarPower[86] = 0;
NotaStarPower[87] = 0;
NotaStarPower[88] = 0;
NotaStarPower[89] = 0;
NotaStarPower[90] = 0;
NotaStarPower[91] = 0;
NotaStarPower[92] = 0;
NotaStarPower[93] = 0;
NotaStarPower[94] = 0;
NotaStarPower[95] = 0;
NotaStarPower[96] = 0;
NotaStarPower[97] = 0;
NotaStarPower[98] = 0;
NotaStarPower[99] = 0;
NotaStarPower[100] = 0;
NotaStarPower[101] = 0;
NotaStarPower[102] = 0;
NotaStarPower[103] = 0;
NotaStarPower[104] = 0;
NotaStarPower[105] = 0;
NotaStarPower[106] = 0;
NotaStarPower[107] = 1;
NotaStarPower[108] = 1;
NotaStarPower[109] = 1;
NotaStarPower[110] = 1;
NotaStarPower[111] = 1;
NotaStarPower[112] = 1;
NotaStarPower[113] = 1;
NotaStarPower[114] = 1;
NotaStarPower[115] = 0;
NotaStarPower[116] = 0;
NotaStarPower[117] = 0;
NotaStarPower[118] = 0;
NotaStarPower[119] = 0;
NotaStarPower[120] = 0;
NotaStarPower[121] = 0;
NotaStarPower[122] = 0;
NotaStarPower[123] = 0;
NotaStarPower[124] = 0;
NotaStarPower[125] = 0;
NotaStarPower[126] = 0;
NotaStarPower[127] = 0;
NotaStarPower[128] = 0;
NotaStarPower[129] = 0;
NotaStarPower[130] = 0;
NotaStarPower[131] = 0;
NotaStarPower[132] = 0;
NotaStarPower[133] = 0;
NotaStarPower[134] = 0;
NotaStarPower[135] = 0;
NotaStarPower[136] = 0;
NotaStarPower[137] = 0;
LargoStar[1] = 7;
LargoStar[2] = 9;
LargoStar[3] = 8;
LargoStar[4] = 8;
}
public function NotasTiempos(_arg1:int):void{
if (_arg1 == 1){
easyTiempos();
} else {
if (_arg1 == 2){
mediumTiempos();
} else {
if (_arg1 == 3){
hardTiempos();
};
};
};
}
public function NotasPressTotales(_arg1:int):void{
if (_arg1 == 1){
easyPress();
} else {
if (_arg1 == 2){
mediumPress();
} else {
if (_arg1 == 3){
hardPress();
};
};
};
}
public function easyTiempos(){
NotaTiempo[1] = 0.625;
NotaTiempo[2] = 1;
NotaTiempo[3] = 1.25;
NotaTiempo[4] = 1.4375;
NotaTiempo[5] = 1.8125;
NotaTiempo[6] = 2.1875;
NotaTiempo[7] = 2.5625;
NotaTiempo[8] = 2.875;
NotaTiempo[9] = 3.5625;
NotaTiempo[10] = 3.9375;
NotaTiempo[11] = 4.25;
NotaTiempo[12] = 4.4375;
NotaTiempo[13] = 4.75;
NotaTiempo[14] = 5.125;
NotaTiempo[15] = 5.5;
NotaTiempo[16] = 5.8125;
NotaTiempo[17] = 6.5;
NotaTiempo[18] = 6.875;
NotaTiempo[19] = 7.1875;
NotaTiempo[20] = 7.375;
NotaTiempo[21] = 7.75;
NotaTiempo[22] = 8.1875;
NotaTiempo[23] = 8.5;
NotaTiempo[24] = 8.8125;
NotaTiempo[25] = 9.5625;
NotaTiempo[26] = 9.9375;
NotaTiempo[27] = 10.25;
NotaTiempo[28] = 10.4375;
NotaTiempo[29] = 10.75;
NotaTiempo[30] = 11.1875;
NotaTiempo[31] = 11.5;
NotaTiempo[32] = 11.8125;
NotaTiempo[33] = 12.5625;
NotaTiempo[34] = 13;
NotaTiempo[35] = 13.3125;
NotaTiempo[36] = 14.0625;
NotaTiempo[37] = 14.4375;
NotaTiempo[38] = 14.8125;
NotaTiempo[39] = 15.625;
NotaTiempo[40] = 16;
NotaTiempo[41] = 16.3125;
NotaTiempo[42] = 17.0625;
NotaTiempo[43] = 17.4375;
NotaTiempo[44] = 17.8125;
NotaTiempo[45] = 18.1875;
NotaTiempo[46] = 18.625;
NotaTiempo[47] = 18.9375;
NotaTiempo[48] = 19.3125;
NotaTiempo[49] = 19.4375;
NotaTiempo[50] = 19.75;
NotaTiempo[51] = 20.125;
NotaTiempo[52] = 20.4375;
NotaTiempo[53] = 20.4375;
NotaTiempo[54] = 20.8125;
NotaTiempo[55] = 21.5625;
NotaTiempo[56] = 21.9375;
NotaTiempo[57] = 22.25;
NotaTiempo[58] = 22.4375;
NotaTiempo[59] = 22.75;
NotaTiempo[60] = 23.1875;
NotaTiempo[61] = 23.5;
NotaTiempo[62] = 23.8125;
NotaTiempo[63] = 24.5625;
NotaTiempo[64] = 24.875;
NotaTiempo[65] = 25.1875;
NotaTiempo[66] = 25.375;
NotaTiempo[67] = 25.6875;
NotaTiempo[68] = 25.9375;
NotaTiempo[69] = 26.3125;
NotaTiempo[70] = 26.6875;
NotaTiempo[71] = 27.25;
NotaTiempo[72] = 27.4375;
NotaTiempo[73] = 27.625;
NotaTiempo[74] = 27.75;
NotaTiempo[75] = 28.0625;
NotaTiempo[76] = 28.25;
NotaTiempo[77] = 28.5625;
NotaTiempo[78] = 28.875;
NotaTiempo[79] = 29.5625;
NotaTiempo[80] = 29.8125;
NotaTiempo[81] = 30;
NotaTiempo[82] = 30.25;
NotaTiempo[83] = 30.625;
NotaTiempo[84] = 30.8125;
NotaTiempo[85] = 31.1875;
NotaTiempo[86] = 31.5625;
NotaTiempo[87] = 32.0625;
NotaTiempo[88] = 32.25;
NotaTiempo[89] = 32.4375;
NotaTiempo[90] = 32.5625;
NotaTiempo[91] = 32.875;
NotaTiempo[92] = 33.0625;
NotaTiempo[93] = 33.375;
NotaTiempo[94] = 33.6875;
NotaTiempo[95] = 34.375;
NotaTiempo[96] = 34.6875;
NotaTiempo[97] = 35;
NotaTiempo[98] = 35.625;
NotaTiempo[99] = 35.875;
NotaTiempo[100] = 36.375;
NotaTiempo[101] = 37;
NotaTiempo[102] = 37.3125;
NotaTiempo[103] = 37.625;
NotaTiempo[104] = 38.25;
NotaTiempo[105] = 38.5625;
NotaTiempo[106] = 38.9375;
NotaTiempo[107] = 39.6875;
NotaTiempo[108] = 39.9375;
NotaTiempo[109] = 40.125;
NotaTiempo[110] = 40.3125;
NotaTiempo[111] = 40.6875;
NotaTiempo[112] = 40.875;
NotaTiempo[113] = 41.25;
NotaTiempo[114] = 41.625;
NotaTiempo[115] = 42.25;
NotaTiempo[116] = 42.5625;
NotaTiempo[117] = 42.8125;
NotaTiempo[118] = 43.0625;
NotaTiempo[119] = 43.4375;
NotaTiempo[120] = 43.6875;
NotaTiempo[121] = 44.25;
NotaTiempo[122] = 45;
NotaTiempo[123] = 45;
NotaTiempo[124] = 46.3125;
NotaTiempo[125] = 46.5625;
NotaTiempo[126] = 46.875;
NotaTiempo[127] = 47.25;
NotaTiempo[128] = 48.0625;
NotaTiempo[129] = 48.4375;
NotaTiempo[130] = 48.6875;
NotaTiempo[131] = 48.8125;
NotaTiempo[132] = 49.375;
NotaTiempo[133] = 49.5625;
NotaTiempo[134] = 49.875;
NotaTiempo[135] = 50.25;
NotaTiempo[136] = 50.9375;
NotaTiempo[137] = 50.9375;
NotaTiempo[138] = -1;
}
public function NotasStarPower(_arg1:int):void{
if (_arg1 == 1){
easyStarPower();
} else {
if (_arg1 == 2){
mediumStarPower();
} else {
if (_arg1 == 3){
hardStarPower();
};
};
};
}
}
}//package
Section 201
//Song4 (Song4)
package {
public class Song4 {
public var NotaColorTotal:Array;
public var NotaTiempo:Array;
public var demora:Number;// = 0
public var LargoStar:Array;
public var NotaStarPower:Array;
public var NotaPressTotal:Array;
public var corrimientoInicial:Number;// = 280
public function Song4(){
NotaColorTotal = new Array();
NotaPressTotal = new Array();
NotaTiempo = new Array();
NotaStarPower = new Array();
LargoStar = new Array();
}
public function mediumStarPower(){
NotaStarPower[1] = 0;
NotaStarPower[2] = 0;
NotaStarPower[3] = 0;
NotaStarPower[4] = 0;
NotaStarPower[5] = 0;
NotaStarPower[6] = 0;
NotaStarPower[7] = 0;
NotaStarPower[8] = 0;
NotaStarPower[9] = 0;
NotaStarPower[10] = 0;
NotaStarPower[11] = 0;
NotaStarPower[12] = 0;
NotaStarPower[13] = 0;
NotaStarPower[14] = 0;
NotaStarPower[15] = 0;
NotaStarPower[16] = 0;
NotaStarPower[17] = 0;
NotaStarPower[18] = 0;
NotaStarPower[19] = 0;
NotaStarPower[20] = 0;
NotaStarPower[21] = 0;
NotaStarPower[22] = 0;
NotaStarPower[23] = 0;
NotaStarPower[24] = 0;
NotaStarPower[25] = 0;
NotaStarPower[26] = 0;
NotaStarPower[27] = 0;
NotaStarPower[28] = 0;
NotaStarPower[29] = 0;
NotaStarPower[30] = 0;
NotaStarPower[31] = 0;
NotaStarPower[32] = 0;
NotaStarPower[33] = 0;
NotaStarPower[34] = 0;
NotaStarPower[35] = 0;
NotaStarPower[36] = 0;
NotaStarPower[37] = 0;
NotaStarPower[38] = 0;
NotaStarPower[39] = 0;
NotaStarPower[40] = 0;
NotaStarPower[41] = 0;
NotaStarPower[42] = 0;
NotaStarPower[43] = 0;
NotaStarPower[44] = 0;
NotaStarPower[45] = 0;
NotaStarPower[46] = 0;
NotaStarPower[47] = 0;
NotaStarPower[48] = 0;
NotaStarPower[49] = 0;
NotaStarPower[50] = 0;
NotaStarPower[51] = 0;
NotaStarPower[52] = 0;
NotaStarPower[53] = 0;
NotaStarPower[54] = 0;
NotaStarPower[55] = 0;
NotaStarPower[56] = 0;
NotaStarPower[57] = 0;
NotaStarPower[58] = 0;
NotaStarPower[59] = 0;
NotaStarPower[60] = 0;
NotaStarPower[61] = 0;
NotaStarPower[62] = 0;
NotaStarPower[63] = 0;
NotaStarPower[64] = 0;
NotaStarPower[65] = 0;
NotaStarPower[66] = 0;
NotaStarPower[67] = 0;
NotaStarPower[68] = 0;
NotaStarPower[69] = 0;
NotaStarPower[70] = 0;
NotaStarPower[71] = 0;
NotaStarPower[72] = 0;
NotaStarPower[73] = 0;
NotaStarPower[74] = 0;
NotaStarPower[75] = 0;
NotaStarPower[76] = 0;
NotaStarPower[77] = 0;
NotaStarPower[78] = 0;
NotaStarPower[79] = 0;
NotaStarPower[80] = 0;
NotaStarPower[81] = 0;
NotaStarPower[82] = 0;
NotaStarPower[83] = 0;
NotaStarPower[84] = 0;
NotaStarPower[85] = 0;
NotaStarPower[86] = 0;
NotaStarPower[87] = 0;
NotaStarPower[88] = 0;
NotaStarPower[89] = 0;
NotaStarPower[90] = 0;
NotaStarPower[91] = 0;
NotaStarPower[92] = 0;
NotaStarPower[93] = 0;
NotaStarPower[94] = 0;
NotaStarPower[95] = 0;
NotaStarPower[96] = 0;
NotaStarPower[97] = 0;
NotaStarPower[98] = 0;
NotaStarPower[99] = 0;
NotaStarPower[100] = 0;
NotaStarPower[101] = 0;
NotaStarPower[102] = 0;
NotaStarPower[103] = 0;
NotaStarPower[104] = 0;
NotaStarPower[105] = 0;
NotaStarPower[106] = 0;
NotaStarPower[107] = 0;
NotaStarPower[108] = 0;
NotaStarPower[109] = 0;
NotaStarPower[110] = 0;
NotaStarPower[111] = 0;
NotaStarPower[112] = 1;
NotaStarPower[113] = 1;
NotaStarPower[114] = 1;
NotaStarPower[115] = 1;
NotaStarPower[116] = 1;
NotaStarPower[117] = 1;
NotaStarPower[118] = 1;
NotaStarPower[119] = 1;
NotaStarPower[120] = 1;
NotaStarPower[121] = 1;
NotaStarPower[122] = 1;
NotaStarPower[123] = 1;
NotaStarPower[124] = 1;
NotaStarPower[125] = 1;
NotaStarPower[126] = 1;
NotaStarPower[127] = 1;
NotaStarPower[128] = 1;
NotaStarPower[129] = 0;
NotaStarPower[130] = 0;
NotaStarPower[131] = 0;
NotaStarPower[132] = 0;
NotaStarPower[133] = 0;
NotaStarPower[134] = 0;
NotaStarPower[135] = 0;
NotaStarPower[136] = 0;
NotaStarPower[137] = 0;
NotaStarPower[138] = 0;
NotaStarPower[139] = 0;
NotaStarPower[140] = 0;
NotaStarPower[141] = 0;
NotaStarPower[142] = 0;
NotaStarPower[143] = 0;
NotaStarPower[144] = 0;
NotaStarPower[145] = 0;
NotaStarPower[146] = 0;
NotaStarPower[147] = 0;
NotaStarPower[148] = 0;
NotaStarPower[149] = 0;
NotaStarPower[150] = 0;
NotaStarPower[151] = 0;
NotaStarPower[152] = 0;
NotaStarPower[153] = 0;
NotaStarPower[154] = 0;
NotaStarPower[155] = 0;
NotaStarPower[156] = 0;
NotaStarPower[157] = 1;
NotaStarPower[158] = 1;
NotaStarPower[159] = 1;
NotaStarPower[160] = 1;
NotaStarPower[161] = 1;
NotaStarPower[162] = 1;
NotaStarPower[163] = 1;
NotaStarPower[164] = 1;
NotaStarPower[165] = 1;
NotaStarPower[166] = 1;
NotaStarPower[167] = 1;
NotaStarPower[168] = 1;
NotaStarPower[169] = 0;
NotaStarPower[170] = 0;
NotaStarPower[171] = 0;
NotaStarPower[172] = 0;
NotaStarPower[173] = 0;
NotaStarPower[174] = 0;
NotaStarPower[175] = 0;
NotaStarPower[176] = 0;
NotaStarPower[177] = 0;
NotaStarPower[178] = 0;
NotaStarPower[179] = 0;
NotaStarPower[180] = 0;
NotaStarPower[181] = 0;
NotaStarPower[182] = 0;
NotaStarPower[183] = 0;
NotaStarPower[184] = 0;
NotaStarPower[185] = 0;
NotaStarPower[186] = 0;
NotaStarPower[187] = 0;
NotaStarPower[188] = 0;
NotaStarPower[189] = 0;
NotaStarPower[190] = 0;
NotaStarPower[191] = 0;
NotaStarPower[192] = 0;
NotaStarPower[193] = 0;
NotaStarPower[194] = 0;
NotaStarPower[195] = 0;
NotaStarPower[196] = 0;
NotaStarPower[197] = 0;
NotaStarPower[198] = 0;
NotaStarPower[199] = 0;
NotaStarPower[200] = 0;
NotaStarPower[201] = 0;
NotaStarPower[202] = 0;
NotaStarPower[203] = 0;
NotaStarPower[204] = 0;
NotaStarPower[205] = 0;
NotaStarPower[206] = 0;
NotaStarPower[207] = 0;
NotaStarPower[208] = 0;
NotaStarPower[209] = 0;
NotaStarPower[210] = 0;
NotaStarPower[211] = 0;
NotaStarPower[212] = 0;
NotaStarPower[213] = 0;
NotaStarPower[214] = 0;
NotaStarPower[215] = 0;
NotaStarPower[216] = 0;
NotaStarPower[217] = 0;
NotaStarPower[218] = 0;
NotaStarPower[219] = 0;
NotaStarPower[220] = 0;
NotaStarPower[221] = 0;
NotaStarPower[222] = 0;
NotaStarPower[223] = 0;
NotaStarPower[224] = 0;
NotaStarPower[225] = 0;
NotaStarPower[226] = 0;
NotaStarPower[227] = 0;
NotaStarPower[228] = 0;
NotaStarPower[229] = 0;
NotaStarPower[230] = 0;
NotaStarPower[231] = 0;
NotaStarPower[232] = 0;
NotaStarPower[233] = 0;
NotaStarPower[234] = 0;
NotaStarPower[235] = 0;
NotaStarPower[236] = 0;
NotaStarPower[237] = 0;
NotaStarPower[238] = 0;
NotaStarPower[239] = 0;
NotaStarPower[240] = 0;
NotaStarPower[241] = 0;
NotaStarPower[242] = 0;
NotaStarPower[243] = 0;
NotaStarPower[244] = 0;
NotaStarPower[245] = 0;
NotaStarPower[246] = 0;
NotaStarPower[247] = 0;
NotaStarPower[248] = 0;
NotaStarPower[249] = 0;
NotaStarPower[250] = 0;
NotaStarPower[251] = 0;
NotaStarPower[252] = 0;
NotaStarPower[253] = 0;
NotaStarPower[254] = 0;
NotaStarPower[0xFF] = 0;
NotaStarPower[0x0100] = 0;
NotaStarPower[0x0101] = 0;
NotaStarPower[258] = 0;
NotaStarPower[259] = 0;
NotaStarPower[260] = 0;
NotaStarPower[261] = 0;
NotaStarPower[262] = 0;
NotaStarPower[263] = 0;
NotaStarPower[264] = 0;
NotaStarPower[265] = 0;
NotaStarPower[266] = 0;
NotaStarPower[267] = 1;
NotaStarPower[268] = 1;
NotaStarPower[269] = 1;
NotaStarPower[270] = 1;
NotaStarPower[271] = 1;
NotaStarPower[272] = 1;
NotaStarPower[273] = 1;
NotaStarPower[274] = 1;
NotaStarPower[275] = 1;
NotaStarPower[276] = 1;
NotaStarPower[277] = 1;
NotaStarPower[278] = 1;
NotaStarPower[279] = 1;
NotaStarPower[280] = 1;
NotaStarPower[281] = 1;
NotaStarPower[282] = 1;
NotaStarPower[283] = 0;
NotaStarPower[284] = 0;
NotaStarPower[285] = 0;
NotaStarPower[286] = 0;
NotaStarPower[287] = 0;
NotaStarPower[288] = 0;
NotaStarPower[289] = 0;
NotaStarPower[290] = 0;
NotaStarPower[291] = 0;
NotaStarPower[292] = 0;
NotaStarPower[293] = 0;
NotaStarPower[294] = 0;
NotaStarPower[295] = 0;
NotaStarPower[296] = 0;
NotaStarPower[297] = 0;
NotaStarPower[298] = 0;
NotaStarPower[299] = 0;
NotaStarPower[300] = 0;
NotaStarPower[301] = 0;
NotaStarPower[302] = 0;
NotaStarPower[303] = 0;
NotaStarPower[304] = 0;
NotaStarPower[305] = 0;
NotaStarPower[306] = 0;
NotaStarPower[307] = 0;
NotaStarPower[308] = 0;
NotaStarPower[309] = 0;
NotaStarPower[310] = 0;
NotaStarPower[311] = 0;
NotaStarPower[312] = 0;
NotaStarPower[313] = 0;
NotaStarPower[314] = 0;
NotaStarPower[315] = 0;
NotaStarPower[316] = 0;
NotaStarPower[317] = 0;
NotaStarPower[318] = 0;
NotaStarPower[319] = 0;
NotaStarPower[320] = 0;
NotaStarPower[321] = 0;
NotaStarPower[322] = 0;
NotaStarPower[323] = 0;
NotaStarPower[324] = 0;
NotaStarPower[325] = 0;
NotaStarPower[326] = 0;
NotaStarPower[327] = 0;
NotaStarPower[328] = 0;
NotaStarPower[329] = 0;
NotaStarPower[330] = 0;
NotaStarPower[331] = 0;
NotaStarPower[332] = 0;
NotaStarPower[333] = 0;
NotaStarPower[334] = 0;
NotaStarPower[335] = 0;
NotaStarPower[336] = 0;
NotaStarPower[337] = 0;
NotaStarPower[338] = 0;
NotaStarPower[339] = 0;
NotaStarPower[340] = 1;
NotaStarPower[341] = 1;
NotaStarPower[342] = 1;
NotaStarPower[343] = 1;
NotaStarPower[344] = 1;
NotaStarPower[345] = 1;
NotaStarPower[346] = 1;
NotaStarPower[347] = 1;
NotaStarPower[348] = 1;
NotaStarPower[349] = 0;
NotaStarPower[350] = 0;
NotaStarPower[351] = 0;
NotaStarPower[352] = 0;
NotaStarPower[353] = 0;
NotaStarPower[354] = 0;
NotaStarPower[355] = 0;
NotaStarPower[356] = 0;
NotaStarPower[357] = 0;
NotaStarPower[358] = 0;
NotaStarPower[359] = 0;
NotaStarPower[360] = 0;
NotaStarPower[361] = 0;
NotaStarPower[362] = 0;
NotaStarPower[363] = 1;
NotaStarPower[364] = 1;
NotaStarPower[365] = 1;
NotaStarPower[366] = 1;
NotaStarPower[367] = 1;
NotaStarPower[368] = 1;
NotaStarPower[369] = 1;
NotaStarPower[370] = 1;
NotaStarPower[371] = 1;
NotaStarPower[372] = 1;
NotaStarPower[373] = 0;
NotaStarPower[374] = 0;
NotaStarPower[375] = 0;
NotaStarPower[376] = 0;
NotaStarPower[377] = 0;
NotaStarPower[378] = 0;
NotaStarPower[379] = 0;
NotaStarPower[380] = 0;
NotaStarPower[381] = 0;
NotaStarPower[382] = 0;
NotaStarPower[383] = 0;
NotaStarPower[384] = 0;
NotaStarPower[385] = 0;
NotaStarPower[386] = 0;
NotaStarPower[387] = 0;
NotaStarPower[388] = 0;
NotaStarPower[389] = 0;
NotaStarPower[390] = 0;
NotaStarPower[391] = 0;
NotaStarPower[392] = 1;
NotaStarPower[393] = 1;
NotaStarPower[394] = 1;
NotaStarPower[395] = 1;
NotaStarPower[396] = 1;
NotaStarPower[397] = 1;
NotaStarPower[398] = 1;
NotaStarPower[399] = 1;
NotaStarPower[400] = 1;
NotaStarPower[401] = 1;
NotaStarPower[402] = 1;
NotaStarPower[403] = 0;
NotaStarPower[404] = 0;
NotaStarPower[405] = 0;
NotaStarPower[406] = 0;
NotaStarPower[407] = 0;
NotaStarPower[408] = 0;
NotaStarPower[409] = 0;
NotaStarPower[410] = 0;
NotaStarPower[411] = 0;
NotaStarPower[412] = 0;
NotaStarPower[413] = 0;
NotaStarPower[414] = 0;
NotaStarPower[415] = 0;
NotaStarPower[416] = 0;
NotaStarPower[417] = 0;
NotaStarPower[418] = 0;
NotaStarPower[419] = 0;
NotaStarPower[420] = 0;
NotaStarPower[421] = 0;
NotaStarPower[422] = 0;
NotaStarPower[423] = 0;
NotaStarPower[424] = 0;
NotaStarPower[425] = 0;
NotaStarPower[426] = 0;
NotaStarPower[427] = 0;
NotaStarPower[428] = 0;
NotaStarPower[429] = 0;
NotaStarPower[430] = 0;
NotaStarPower[431] = 0;
NotaStarPower[432] = 0;
NotaStarPower[433] = 0;
NotaStarPower[434] = 0;
NotaStarPower[435] = 0;
NotaStarPower[436] = 0;
NotaStarPower[437] = 0;
NotaStarPower[438] = 0;
NotaStarPower[439] = 0;
NotaStarPower[440] = 0;
NotaStarPower[441] = 0;
NotaStarPower[442] = 0;
NotaStarPower[443] = 0;
NotaStarPower[444] = 0;
NotaStarPower[445] = 0;
NotaStarPower[446] = 0;
NotaStarPower[447] = 0;
NotaStarPower[448] = 0;
NotaStarPower[449] = 0;
NotaStarPower[450] = 0;
NotaStarPower[451] = 0;
NotaStarPower[452] = 0;
NotaStarPower[453] = 0;
NotaStarPower[454] = 0;
NotaStarPower[455] = 0;
NotaStarPower[456] = 0;
NotaStarPower[457] = 0;
NotaStarPower[458] = 0;
NotaStarPower[459] = 0;
NotaStarPower[460] = 0;
NotaStarPower[461] = 0;
NotaStarPower[462] = 0;
NotaStarPower[463] = 0;
NotaStarPower[464] = 0;
NotaStarPower[465] = 0;
NotaStarPower[466] = 0;
NotaStarPower[467] = 0;
NotaStarPower[468] = 0;
NotaStarPower[469] = 0;
NotaStarPower[470] = 0;
NotaStarPower[471] = 0;
NotaStarPower[472] = 0;
NotaStarPower[473] = 0;
NotaStarPower[474] = 0;
NotaStarPower[475] = 0;
NotaStarPower[476] = 0;
NotaStarPower[477] = 0;
NotaStarPower[478] = 0;
NotaStarPower[479] = 0;
NotaStarPower[480] = 0;
NotaStarPower[481] = 0;
NotaStarPower[482] = 0;
NotaStarPower[483] = 0;
NotaStarPower[484] = 0;
NotaStarPower[485] = 0;
NotaStarPower[486] = 0;
NotaStarPower[487] = 0;
NotaStarPower[488] = 1;
NotaStarPower[489] = 1;
NotaStarPower[490] = 1;
NotaStarPower[491] = 1;
NotaStarPower[492] = 1;
NotaStarPower[493] = 1;
NotaStarPower[494] = 1;
NotaStarPower[495] = 1;
NotaStarPower[496] = 1;
NotaStarPower[497] = 1;
NotaStarPower[498] = 1;
NotaStarPower[499] = 1;
NotaStarPower[500] = 1;
NotaStarPower[501] = 1;
NotaStarPower[502] = 1;
NotaStarPower[503] = 1;
NotaStarPower[504] = 0;
NotaStarPower[505] = 0;
NotaStarPower[506] = 0;
NotaStarPower[507] = 0;
NotaStarPower[508] = 0;
NotaStarPower[509] = 0;
NotaStarPower[510] = 0;
NotaStarPower[511] = 0;
NotaStarPower[0x0200] = 0;
NotaStarPower[513] = 0;
NotaStarPower[0x0202] = 0;
NotaStarPower[515] = 0;
NotaStarPower[516] = 0;
NotaStarPower[517] = 0;
NotaStarPower[518] = 0;
NotaStarPower[519] = 0;
NotaStarPower[520] = 1;
NotaStarPower[521] = 1;
NotaStarPower[522] = 1;
NotaStarPower[523] = 1;
NotaStarPower[524] = 1;
NotaStarPower[525] = 1;
NotaStarPower[526] = 1;
NotaStarPower[527] = 1;
NotaStarPower[528] = 1;
NotaStarPower[529] = 1;
NotaStarPower[530] = 1;
NotaStarPower[531] = 0;
NotaStarPower[532] = 0;
NotaStarPower[533] = 0;
NotaStarPower[534] = 0;
NotaStarPower[535] = 0;
NotaStarPower[536] = 0;
NotaStarPower[537] = 0;
NotaStarPower[538] = 0;
NotaStarPower[539] = 0;
NotaStarPower[540] = 0;
NotaStarPower[541] = 0;
NotaStarPower[542] = 0;
NotaStarPower[543] = 0;
NotaStarPower[544] = 0;
NotaStarPower[545] = 0;
NotaStarPower[546] = 0;
NotaStarPower[547] = 0;
NotaStarPower[548] = 0;
NotaStarPower[549] = 0;
NotaStarPower[550] = 0;
NotaStarPower[551] = 0;
NotaStarPower[552] = 0;
NotaStarPower[553] = 0;
NotaStarPower[554] = 0;
NotaStarPower[555] = 0;
NotaStarPower[556] = 0;
NotaStarPower[557] = 0;
NotaStarPower[558] = 0;
NotaStarPower[559] = 0;
NotaStarPower[560] = 0;
NotaStarPower[561] = 0;
NotaStarPower[562] = 0;
NotaStarPower[563] = 0;
NotaStarPower[564] = 0;
NotaStarPower[565] = 0;
NotaStarPower[566] = 0;
NotaStarPower[567] = 0;
NotaStarPower[568] = 0;
NotaStarPower[569] = 0;
NotaStarPower[570] = 0;
NotaStarPower[571] = 0;
NotaStarPower[572] = 0;
NotaStarPower[573] = 0;
NotaStarPower[574] = 0;
NotaStarPower[575] = 0;
NotaStarPower[576] = 0;
NotaStarPower[577] = 0;
NotaStarPower[578] = 0;
NotaStarPower[579] = 0;
NotaStarPower[580] = 0;
NotaStarPower[581] = 0;
NotaStarPower[582] = 0;
NotaStarPower[583] = 0;
NotaStarPower[584] = 0;
NotaStarPower[585] = 0;
NotaStarPower[586] = 0;
NotaStarPower[587] = 0;
NotaStarPower[588] = 0;
NotaStarPower[589] = 0;
NotaStarPower[590] = 0;
NotaStarPower[591] = 0;
NotaStarPower[592] = 0;
NotaStarPower[593] = 0;
NotaStarPower[594] = 0;
NotaStarPower[595] = 0;
NotaStarPower[596] = 0;
NotaStarPower[597] = 0;
NotaStarPower[598] = 0;
NotaStarPower[599] = 0;
NotaStarPower[600] = 0;
NotaStarPower[601] = 0;
NotaStarPower[602] = 0;
NotaStarPower[603] = 0;
NotaStarPower[604] = 0;
NotaStarPower[605] = 0;
NotaStarPower[606] = 0;
NotaStarPower[607] = 0;
NotaStarPower[608] = 0;
NotaStarPower[609] = 0;
NotaStarPower[610] = 0;
NotaStarPower[611] = 0;
NotaStarPower[612] = 0;
NotaStarPower[613] = 0;
NotaStarPower[614] = 0;
NotaStarPower[615] = 0;
NotaStarPower[616] = 0;
NotaStarPower[617] = 0;
NotaStarPower[618] = 0;
NotaStarPower[619] = 0;
NotaStarPower[620] = 0;
NotaStarPower[621] = 0;
NotaStarPower[622] = 0;
NotaStarPower[623] = 0;
NotaStarPower[624] = 0;
NotaStarPower[625] = 0;
NotaStarPower[626] = 0;
NotaStarPower[627] = 0;
NotaStarPower[628] = 0;
NotaStarPower[629] = 0;
NotaStarPower[630] = 0;
NotaStarPower[631] = 0;
NotaStarPower[632] = 0;
NotaStarPower[633] = 0;
NotaStarPower[634] = 0;
NotaStarPower[635] = 0;
NotaStarPower[636] = 0;
NotaStarPower[637] = 0;
NotaStarPower[638] = 0;
NotaStarPower[639] = 0;
NotaStarPower[640] = 0;
NotaStarPower[641] = 0;
NotaStarPower[642] = 0;
NotaStarPower[643] = 0;
NotaStarPower[644] = 0;
NotaStarPower[645] = 0;
NotaStarPower[646] = 0;
NotaStarPower[647] = 0;
NotaStarPower[648] = 0;
NotaStarPower[649] = 0;
NotaStarPower[650] = 0;
NotaStarPower[651] = 0;
NotaStarPower[652] = 0;
NotaStarPower[653] = 0;
NotaStarPower[654] = 0;
NotaStarPower[655] = 0;
NotaStarPower[656] = 0;
NotaStarPower[657] = 0;
NotaStarPower[658] = 0;
NotaStarPower[659] = 0;
NotaStarPower[660] = 0;
NotaStarPower[661] = 0;
NotaStarPower[662] = 0;
NotaStarPower[663] = 0;
NotaStarPower[664] = 0;
NotaStarPower[665] = 0;
NotaStarPower[666] = 0;
NotaStarPower[667] = 0;
NotaStarPower[668] = 0;
NotaStarPower[669] = 0;
NotaStarPower[670] = 0;
NotaStarPower[671] = 0;
NotaStarPower[672] = 0;
NotaStarPower[673] = 0;
NotaStarPower[674] = 0;
NotaStarPower[675] = 0;
NotaStarPower[676] = 0;
NotaStarPower[677] = 0;
NotaStarPower[678] = 0;
NotaStarPower[679] = 0;
NotaStarPower[680] = 0;
LargoStar[1] = 17;
LargoStar[2] = 12;
LargoStar[3] = 16;
LargoStar[4] = 9;
LargoStar[5] = 10;
LargoStar[6] = 11;
LargoStar[7] = 16;
LargoStar[8] = 11;
}
public function mediumPress(){
NotaPressTotal[1] = 0;
NotaPressTotal[2] = 0;
NotaPressTotal[3] = 0;
NotaPressTotal[4] = 0;
NotaPressTotal[5] = 0;
NotaPressTotal[6] = 0;
NotaPressTotal[7] = 0;
NotaPressTotal[8] = 0;
NotaPressTotal[9] = 0;
NotaPressTotal[10] = 0;
NotaPressTotal[11] = 0;
NotaPressTotal[12] = 0;
NotaPressTotal[13] = 0;
NotaPressTotal[14] = 0;
NotaPressTotal[15] = 0;
NotaPressTotal[16] = 0;
NotaPressTotal[17] = 0;
NotaPressTotal[18] = 0;
NotaPressTotal[19] = 0;
NotaPressTotal[20] = 0;
NotaPressTotal[21] = 0;
NotaPressTotal[22] = 0;
NotaPressTotal[23] = 0;
NotaPressTotal[24] = 0;
NotaPressTotal[25] = 0;
NotaPressTotal[26] = 0;
NotaPressTotal[27] = 0;
NotaPressTotal[28] = 0;
NotaPressTotal[29] = 0;
NotaPressTotal[30] = 0;
NotaPressTotal[31] = 0;
NotaPressTotal[32] = 0;
NotaPressTotal[33] = 0;
NotaPressTotal[34] = 0;
NotaPressTotal[35] = 0;
NotaPressTotal[36] = 0;
NotaPressTotal[37] = 0;
NotaPressTotal[38] = 0;
NotaPressTotal[39] = 0;
NotaPressTotal[40] = 0;
NotaPressTotal[41] = 0;
NotaPressTotal[42] = 0;
NotaPressTotal[43] = 0;
NotaPressTotal[44] = 0;
NotaPressTotal[45] = 0;
NotaPressTotal[46] = 0;
NotaPressTotal[47] = 0;
NotaPressTotal[48] = 0;
NotaPressTotal[49] = 0;
NotaPressTotal[50] = 0;
NotaPressTotal[51] = 0;
NotaPressTotal[52] = 0;
NotaPressTotal[53] = 0;
NotaPressTotal[54] = 0;
NotaPressTotal[55] = 0;
NotaPressTotal[56] = 0;
NotaPressTotal[57] = 0;
NotaPressTotal[58] = 0;
NotaPressTotal[59] = 0;
NotaPressTotal[60] = 0;
NotaPressTotal[61] = 0;
NotaPressTotal[62] = 0;
NotaPressTotal[63] = 0;
NotaPressTotal[64] = 0;
NotaPressTotal[65] = 0;
NotaPressTotal[66] = 0;
NotaPressTotal[67] = 0;
NotaPressTotal[68] = 0;
NotaPressTotal[69] = 0;
NotaPressTotal[70] = 0;
NotaPressTotal[71] = 0;
NotaPressTotal[72] = 0;
NotaPressTotal[73] = 0;
NotaPressTotal[74] = 0;
NotaPressTotal[75] = 0;
NotaPressTotal[76] = 0;
NotaPressTotal[77] = 0;
NotaPressTotal[78] = 0;
NotaPressTotal[79] = 0;
NotaPressTotal[80] = 0;
NotaPressTotal[81] = 0;
NotaPressTotal[82] = 0;
NotaPressTotal[83] = 0;
NotaPressTotal[84] = 0;
NotaPressTotal[85] = 0;
NotaPressTotal[86] = 0;
NotaPressTotal[87] = 0;
NotaPressTotal[88] = 0;
NotaPressTotal[89] = 0;
NotaPressTotal[90] = 0;
NotaPressTotal[91] = 0;
NotaPressTotal[92] = 0;
NotaPressTotal[93] = 0;
NotaPressTotal[94] = 0;
NotaPressTotal[95] = 0;
NotaPressTotal[96] = 0;
NotaPressTotal[97] = 0;
NotaPressTotal[98] = 0;
NotaPressTotal[99] = 0;
NotaPressTotal[100] = 0;
NotaPressTotal[101] = 0;
NotaPressTotal[102] = 0;
NotaPressTotal[103] = 0;
NotaPressTotal[104] = 0;
NotaPressTotal[105] = 0;
NotaPressTotal[106] = 0;
NotaPressTotal[107] = 0;
NotaPressTotal[108] = 0;
NotaPressTotal[109] = 0;
NotaPressTotal[110] = 0;
NotaPressTotal[111] = 0;
NotaPressTotal[112] = 0;
NotaPressTotal[113] = 0;
NotaPressTotal[114] = 0;
NotaPressTotal[115] = 0;
NotaPressTotal[116] = 0;
NotaPressTotal[117] = 0;
NotaPressTotal[118] = 0;
NotaPressTotal[119] = 0;
NotaPressTotal[120] = 0;
NotaPressTotal[121] = 0;
NotaPressTotal[122] = 0;
NotaPressTotal[123] = 0;
NotaPressTotal[124] = 0.1875;
NotaPressTotal[125] = 0;
NotaPressTotal[126] = 0;
NotaPressTotal[127] = 0;
NotaPressTotal[128] = 0.75;
NotaPressTotal[129] = 0;
NotaPressTotal[130] = 0;
NotaPressTotal[131] = 0;
NotaPressTotal[132] = 0;
NotaPressTotal[133] = 0;
NotaPressTotal[134] = 0;
NotaPressTotal[135] = 0;
NotaPressTotal[136] = 0;
NotaPressTotal[137] = 0;
NotaPressTotal[138] = 0;
NotaPressTotal[139] = 0;
NotaPressTotal[140] = 0.1875;
NotaPressTotal[141] = 0;
NotaPressTotal[142] = 0;
NotaPressTotal[143] = 0;
NotaPressTotal[144] = 0.6875;
NotaPressTotal[145] = 0;
NotaPressTotal[146] = 0;
NotaPressTotal[147] = 0;
NotaPressTotal[148] = 0;
NotaPressTotal[149] = 0;
NotaPressTotal[150] = 0;
NotaPressTotal[151] = 0;
NotaPressTotal[152] = 0;
NotaPressTotal[153] = 0;
NotaPressTotal[154] = 0;
NotaPressTotal[155] = 0;
NotaPressTotal[156] = 0;
NotaPressTotal[157] = 0;
NotaPressTotal[158] = 0;
NotaPressTotal[159] = 0;
NotaPressTotal[160] = 0;
NotaPressTotal[161] = 0;
NotaPressTotal[162] = 0;
NotaPressTotal[163] = 0;
NotaPressTotal[164] = 0;
NotaPressTotal[165] = 0;
NotaPressTotal[166] = 0;
NotaPressTotal[167] = 0;
NotaPressTotal[168] = 0;
NotaPressTotal[169] = 0;
NotaPressTotal[170] = 0;
NotaPressTotal[171] = 0;
NotaPressTotal[172] = 0;
NotaPressTotal[173] = 0;
NotaPressTotal[174] = 0;
NotaPressTotal[175] = 0;
NotaPressTotal[176] = 0;
NotaPressTotal[177] = 0;
NotaPressTotal[178] = 0;
NotaPressTotal[179] = 0;
NotaPressTotal[180] = 0;
NotaPressTotal[181] = 0;
NotaPressTotal[182] = 0;
NotaPressTotal[183] = 0;
NotaPressTotal[184] = 0;
NotaPressTotal[185] = 0;
NotaPressTotal[186] = 0;
NotaPressTotal[187] = 0;
NotaPressTotal[188] = 0;
NotaPressTotal[189] = 0;
NotaPressTotal[190] = 0;
NotaPressTotal[191] = 0;
NotaPressTotal[192] = 0;
NotaPressTotal[193] = 0;
NotaPressTotal[194] = 0;
NotaPressTotal[195] = 0;
NotaPressTotal[196] = 1.6875;
NotaPressTotal[197] = 0;
NotaPressTotal[198] = 0;
NotaPressTotal[199] = 0;
NotaPressTotal[200] = 0;
NotaPressTotal[201] = 0;
NotaPressTotal[202] = 0;
NotaPressTotal[203] = 0;
NotaPressTotal[204] = 0;
NotaPressTotal[205] = 0;
NotaPressTotal[206] = 0;
NotaPressTotal[207] = 0;
NotaPressTotal[208] = 0;
NotaPressTotal[209] = 0;
NotaPressTotal[210] = 0;
NotaPressTotal[211] = 0;
NotaPressTotal[212] = 0;
NotaPressTotal[213] = 0;
NotaPressTotal[214] = 0;
NotaPressTotal[215] = 0;
NotaPressTotal[216] = 0;
NotaPressTotal[217] = 0;
NotaPressTotal[218] = 0;
NotaPressTotal[219] = 0;
NotaPressTotal[220] = 0;
NotaPressTotal[221] = 0;
NotaPressTotal[222] = 0;
NotaPressTotal[223] = 0;
NotaPressTotal[224] = 0;
NotaPressTotal[225] = 0;
NotaPressTotal[226] = 0;
NotaPressTotal[227] = 0;
NotaPressTotal[228] = 0;
NotaPressTotal[229] = 0;
NotaPressTotal[230] = 0;
NotaPressTotal[231] = 0;
NotaPressTotal[232] = 0;
NotaPressTotal[233] = 0;
NotaPressTotal[234] = 0;
NotaPressTotal[235] = 0;
NotaPressTotal[236] = 0;
NotaPressTotal[237] = 0;
NotaPressTotal[238] = 0;
NotaPressTotal[239] = 0;
NotaPressTotal[240] = 0;
NotaPressTotal[241] = 0;
NotaPressTotal[242] = 0;
NotaPressTotal[243] = 0;
NotaPressTotal[244] = 0;
NotaPressTotal[245] = 0;
NotaPressTotal[246] = 0;
NotaPressTotal[247] = 0;
NotaPressTotal[248] = 0;
NotaPressTotal[249] = 0;
NotaPressTotal[250] = 0;
NotaPressTotal[251] = 0;
NotaPressTotal[252] = 0;
NotaPressTotal[253] = 0;
NotaPressTotal[254] = 0;
NotaPressTotal[0xFF] = 0;
NotaPressTotal[0x0100] = 0;
NotaPressTotal[0x0101] = 0;
NotaPressTotal[258] = 0;
NotaPressTotal[259] = 0;
NotaPressTotal[260] = 0;
NotaPressTotal[261] = 0;
NotaPressTotal[262] = 0;
NotaPressTotal[263] = 0;
NotaPressTotal[264] = 0;
NotaPressTotal[265] = 0;
NotaPressTotal[266] = 0;
NotaPressTotal[267] = 0;
NotaPressTotal[268] = 0;
NotaPressTotal[269] = 0;
NotaPressTotal[270] = 0;
NotaPressTotal[271] = 0;
NotaPressTotal[272] = 0;
NotaPressTotal[273] = 0;
NotaPressTotal[274] = 0;
NotaPressTotal[275] = 0;
NotaPressTotal[276] = 0;
NotaPressTotal[277] = 0;
NotaPressTotal[278] = 0.1875;
NotaPressTotal[279] = 0;
NotaPressTotal[280] = 0;
NotaPressTotal[281] = 0;
NotaPressTotal[282] = 0.6875;
NotaPressTotal[283] = 0;
NotaPressTotal[284] = 0;
NotaPressTotal[285] = 0;
NotaPressTotal[286] = 0;
NotaPressTotal[287] = 0;
NotaPressTotal[288] = 0;
NotaPressTotal[289] = 0;
NotaPressTotal[290] = 0;
NotaPressTotal[291] = 0;
NotaPressTotal[292] = 0;
NotaPressTotal[293] = 0;
NotaPressTotal[294] = 0.1875;
NotaPressTotal[295] = 0;
NotaPressTotal[296] = 0;
NotaPressTotal[297] = 0;
NotaPressTotal[298] = 0.6875;
NotaPressTotal[299] = 0;
NotaPressTotal[300] = 0;
NotaPressTotal[301] = 0;
NotaPressTotal[302] = 0;
NotaPressTotal[303] = 0;
NotaPressTotal[304] = 0;
NotaPressTotal[305] = 0;
NotaPressTotal[306] = 0;
NotaPressTotal[307] = 0;
NotaPressTotal[308] = 0;
NotaPressTotal[309] = 0;
NotaPressTotal[310] = 0;
NotaPressTotal[311] = 0;
NotaPressTotal[312] = 0;
NotaPressTotal[313] = 0;
NotaPressTotal[314] = 0;
NotaPressTotal[315] = 0;
NotaPressTotal[316] = 0;
NotaPressTotal[317] = 0;
NotaPressTotal[318] = 0;
NotaPressTotal[319] = 0;
NotaPressTotal[320] = 0;
NotaPressTotal[321] = 0;
NotaPressTotal[322] = 0;
NotaPressTotal[323] = 0;
NotaPressTotal[324] = 0;
NotaPressTotal[325] = 0;
NotaPressTotal[326] = 0;
NotaPressTotal[327] = 0;
NotaPressTotal[328] = 0;
NotaPressTotal[329] = 0;
NotaPressTotal[330] = 0;
NotaPressTotal[331] = 0;
NotaPressTotal[332] = 0;
NotaPressTotal[333] = 0;
NotaPressTotal[334] = 0;
NotaPressTotal[335] = 0;
NotaPressTotal[336] = 0;
NotaPressTotal[337] = 0;
NotaPressTotal[338] = 0;
NotaPressTotal[339] = 0;
NotaPressTotal[340] = 0;
NotaPressTotal[341] = 0;
NotaPressTotal[342] = 0;
NotaPressTotal[343] = 0;
NotaPressTotal[344] = 0;
NotaPressTotal[345] = 0;
NotaPressTotal[346] = 0;
NotaPressTotal[347] = 0;
NotaPressTotal[348] = 1.6875;
NotaPressTotal[349] = 0.3125;
NotaPressTotal[350] = 0.3125;
NotaPressTotal[351] = 0.375;
NotaPressTotal[352] = 0.375;
NotaPressTotal[353] = 0.25;
NotaPressTotal[354] = 0.25;
NotaPressTotal[355] = 0.25;
NotaPressTotal[356] = 0.375;
NotaPressTotal[357] = 0.375;
NotaPressTotal[358] = 0;
NotaPressTotal[359] = 0.375;
NotaPressTotal[360] = 0.375;
NotaPressTotal[361] = 0.3125;
NotaPressTotal[362] = 0.3125;
NotaPressTotal[363] = 0;
NotaPressTotal[364] = 0;
NotaPressTotal[365] = 0;
NotaPressTotal[366] = 0;
NotaPressTotal[