Instance of Symbol 4 MovieClip [Xray Connector 8-OS] in Frame 1
//component parameters
onClipEvent (construct) {
classPackages = [];
classPackages[0] = "com";
classPackages[1] = "mx";
classPackages[2] = "flash";
showFPS = false;
}
Frame 3
stop();
Frame 5
function gD() {
return(depth++);
}
function element(x, y, ty) {
var _local3 = this;
var T = _local3;
var _local7 = gD();
duplicateMovieClip (_root["base" + ty], "cElm" + _local7, _local7);
_local3.elm = _root["cElm" + _local7];
var oldColor = null;
var selected = false;
_local3.elm._xscale = (xOffset / 2) * 7.5;
_local3.elm._yscale = (yOffset / 2) * 7.5;
_local3.elm.ref = _local3;
_local3.del = function () {
baseArray[x][y] = null;
removeMovieClip(this.elm);
_root.onEnterFrame = function () {
if (!isInRemove) {
resetArray();
}
delete _root.onEnterFrame;
};
};
_local3.select = function (force) {
var _local2 = this;
if (!selected) {
selected = true;
var _local6 = _local2.selectNeighbour(baseArray[x - 1][y]);
var _local4 = _local2.selectNeighbour(baseArray[x + 1][y]);
var _local3 = _local2.selectNeighbour(baseArray[x][y - 1]);
var _local5 = _local2.selectNeighbour(baseArray[x][y + 1]);
if ((((_local6 || (_local4)) || (_local3)) || (_local5)) || (force)) {
_local2.elm.gotoAndPlay(4);
oldColor = color.getRGB();
selectedElements.push(_local2);
} else {
selected = false;
}
}
};
_local3.selectNeighbour = function (neighbour) {
var _local1 = neighbour;
if (_local1 && (_local1.type == ty)) {
_local1.select(true);
return(true);
}
return(false);
};
_local3.blur = function () {
if (selected) {
this.elm.gotoAndStop(3);
selected = false;
}
};
_local3.remove = function () {
this.elm.gotoAndPlay(5);
};
_local3.isSelected = function () {
return(selected);
};
_local3.moveTo = function (nx, ny) {
x = nx;
y = ny;
this.elm._x = (nx * xOffset) + (xOffset / 2);
this.elm._y = (ny * yOffset) + (yOffset / 2);
};
_local3.elm.onPress = function () {
if (isBusy) {
return(false);
}
if (selected) {
isBusy = (needReset = true);
var _local4 = 0;
var _local3 = 0;
var _local2 = 0;
while (_local2 < selectedElements.length) {
var _local1 = selectedElements[_local2];
_local4 = _local4 + _local1.elm._x;
_local3 = _local3 + _local1.elm._y;
_local2++;
}
_local4 = _local4 / selectedElements.length;
_local3 = _local3 / selectedElements.length;
showPoints(_local4, _local3, Math.pow(selectedElements.length, 2) >> 0);
while (selectedElements.length) {
selectedElements.pop().remove();
}
}
};
_local3.elm.onRollOver = function () {
if (isBusy) {
toSelect = T;
return(false);
}
if (!T.selected) {
T.select();
}
};
_local3.elm.onRollOut = function () {
while (selectedElements.length) {
selectedElements.pop().blur();
}
};
_local3.type = ty;
}
function resetArray() {
if (needReset) {
needReset = false;
var _local2 = 0;
while (_local2 < xSize) {
var _local4 = ySize - 1;
while (_local4 > -1) {
if (!baseArray[_local2][_local4]) {
var _local5 = 0;
var _local3 = _local4;
while (_local3 > -1) {
if (!baseArray[_local2][_local3]) {
_local5++;
} else {
_local3 = -1;
}
_local3--;
}
_local3 = _local4;
while (_local3 > -1) {
baseArray[_local2][_local3] = baseArray[_local2][_local3 - _local5];
baseArray[_local2][_local3].moveTo(_local2, _local3);
_local3--;
}
}
_local4--;
}
_local2++;
}
var _local6 = [];
_local2 = 0;
while (_local2 < xSize) {
_local6[_local2] = 0;
var _local4 = 0;
while (_local4 < ySize) {
if (baseArray[_local2][_local4]) {
_local6[_local2]++;
}
_local4++;
}
_local2++;
}
var _local7 = xSize - 1;
while (_local7 > -1) {
var _local5 = 0;
if (!_local6[_local7]) {
var _local3 = _local7;
while (_local3 > -1) {
if (!_local6[_local3]) {
_local5++;
} else {
_local3 = -1;
}
_local3--;
}
_local3 = _local7;
while (_local3 > -1) {
_local6[_local3] = 1;
var _local4 = 0;
while (_local4 < ySize) {
baseArray[_local3][_local4] = baseArray[_local3 - _local5][_local4];
baseArray[_local3][_local4].moveTo(_local3, _local4);
_local4++;
}
_local3--;
}
_local6 = [];
_local2 = _local7;
while (_local2 > -1) {
_local6[_local2] = 0;
var _local4 = 0;
while (_local4 < ySize) {
if (baseArray[_local2][_local4]) {
_local6[_local2]++;
}
_local4++;
}
_local2--;
}
}
_local7--;
}
}
isBusy = false;
if (toSelect) {
toSelect.select();
toSelect = null;
}
if (scanForDeath()) {
_root.score = tPoints;
trace(_root.score);
gameover.gotoAndPlay(3);
}
}
function showPoints(x, y, points) {
var _local3 = points;
var _local4 = _root.gD();
duplicateMovieClip (bp, "bp" + _local4, _local4);
var _local2 = _root["bp" + _local4];
_local2._x = x;
_local2._y = y;
_local2.points = _local3;
_local2._xscale = (_local2._yscale = 100 + (Math.abs(_local3) / 5));
tPoints = Math.max(_local3 + tPoints, 0);
}
function scanForDeath() {
var _local4 = 0;
var _local1 = 0;
while (_local1 < xSize) {
var _local3 = 0;
while (_local3 < ySize) {
if (baseArray[_local1][_local3]) {
if (baseArray[_local1 - 1][_local3].type == baseArray[_local1][_local3].type) {
return(false);
}
}
if (baseArray[_local1][_local3]) {
_local4++;
if (baseArray[_local1][_local3 - 1].type == baseArray[_local1][_local3].type) {
return(false);
}
}
_local3++;
}
_local1++;
}
if (_local4 <= fBalls) {
_local1 = 0;
while (_local1 < xSize) {
var _local3 = 0;
while (_local3 < ySize) {
var _local2 = baseArray[_local1][_local3];
if (_local2) {
showPoints(_local2.elm._x, _local2.elm._y, -100);
_local2.remove();
}
_local3++;
}
_local1++;
}
fBalls = fBalls - _local4;
fBalls = fBalls + 5;
if ((levelNR % 2) || (ballCount > 4)) {
levelAt = levelAt * 1.1;
levelAt = Math.ceil(levelAt);
} else {
ballCount++;
}
isInRemove = true;
levelText.exec = function () {
resetGame(levelAt, levelAt, ballCount);
isInRemove = false;
};
levelText.levelText = "Level " + (++levelNR);
levelText.gotoAndPlay(2);
return(false);
}
return(true);
}
function resetGame(xS, yS, cols) {
var _local6 = 0;
while (_local6 < xSize) {
var _local4 = 0;
while (_local4 < ySize) {
baseArray[_local6][_local4].del();
_local4++;
}
_local6++;
}
xSize = xS;
ySize = yS;
xOffset = 500 / xSize;
yOffset = 500 / ySize;
selectedElements = [];
needReset = false;
isBusy = false;
gameover.gotoAndStop(1);
var _local2 = 0;
while (_local2 < xSize) {
baseArray[_local2] = [];
var _local1 = 0;
while (_local1 < ySize) {
var _local5 = (Math.random() * cols) >> 0;
var _local3 = new element(_local2, _local1, _local5 + 1);
_local3.moveTo(_local2, _local1);
baseArray[_local2][_local1] = _local3;
_local1++;
}
_local2++;
}
}
var left = this.quadro._x;
var right = (left + this.quadro._width);
var top = this.quadro._y;
var bottom = (top + this.quadro._height);
var depth = 1;
var selectedElements = [];
var needReset = false;
var isBusy = false;
gameover.swapDepths(99999);
levelText.swapDepths(99991);
var levelNR = 1;
var xSize = 8;
var ySize = 8;
var xOffset = (500 / xSize);
var yOffset = (500 / ySize);
var isInRemove = false;
var toSelect = null;
var tPoints = 0;
var fBalls = 5;
var baseArray = [];
var x2 = 0;
var levelAt = 8;
var ballCount = 2;
levelText.levelText = "Level " + levelNR;
levelText.gotoAndPlay(2);
levelText.exec = function () {
resetGame(levelAt, levelAt, ballCount);
isInRemove = false;
};
stop();
Frame 6
tscore.text = _root.score;
stop();
phptop20 = new LoadVars();
phptop20.juego = "rainbowcollect";
phptop20.sendAndLoad("../top20.php", phptop20, "POST");
phptop20.onLoad = function () {
var _local5 = phptop20.nombres;
var _local4 = phptop20.scores;
var _local2 = _local5.split("|");
var _local3 = _local4.split("|");
var _local1 = 1;
while (_local1 < _local2.length) {
_level0[String(_local1)].text = (("(" + _local3[_local1 - 1]) + ")") + _local2[_local1 - 1];
_local1++;
}
};
Symbol 4 MovieClip [Xray Connector 8-OS] Frame 1
#initclip 16
com.blitzagency.xray.Xray.init();
this.onLoad = function () {
com.blitzagency.xray.Xray.initConnections(this);
};
#endinitclip
if (!_global.isLivePreview) {
label._visible = false;
if (this.classPackages.length > 1) {
com.blitzagency.xray.Xray.addPackages(this.classPackages);
}
if (this.showFPS) {
com.blitzagency.xray.Xray.createFPSMeter(this);
}
}
Symbol 22 Button
on (press) {
getURL ("http://nix.com.mx");
}
Symbol 1 MovieClip [__Packages.com.blitzagency.xray.Xray] Frame 0
class com.blitzagency.xray.Xray
{
static var recursionControl, xrayTrace, pointConverter, fpsMeter, functionName, lc_info, lc_exec;
function Xray () {
}
static function init() {
recursionControl = 0;
xrayTrace = com.blitzagency.xray.XrayTrace.getInstance();
_global.view = function () {
com.blitzagency.xray.Xray.xrayTrace.trace.apply(com.blitzagency.xray.Xray.xrayTrace, arguments);
};
_global.tt = function () {
com.blitzagency.xray.Xray.xrayTrace.trace.apply(com.blitzagency.xray.Xray.xrayTrace, arguments);
};
pointConverter = com.blitzagency.util.PointConverter.getInstance();
fpsMeter = com.blitzagency.xray.FPSMeter.getInstance();
fpsMeter.addEventListener("onFpsUpdate", com.blitzagency.util.Delegate.create(com.blitzagency.xray.Xray, updateFps));
functionName = com.blitzagency.xray.FunctionName.getInstance();
_global.tf = function () {
com.blitzagency.xray.Xray.functionName.traceFunction.apply(com.blitzagency.xray.Xray.functionName, arguments);
};
if (!_global.isLivePreview) {
if (lc_info) {
return(undefined);
}
lc_exec = new com.blitzagency.xray.ControlConnection();
lc_info = new com.blitzagency.xray.LoggerConnection();
}
}
static function addPackages(ary) {
var _local1 = 0;
while (_local1 < ary.length) {
if (ary[_local1] != "") {
com.blitzagency.xray.ClassPath.registerPackage(ary[_local1]);
}
_local1++;
}
com.blitzagency.xray.ClassPath.registerPackage();
}
static function trace() {
xrayTrace.trace.apply(_global.AdminTool, arguments);
}
static function tt() {
xrayTrace.trace.apply(xrayTrace, arguments);
}
static function tf() {
_global.FunctionName.traceFunction.apply(_global.FunctionName, arguments);
}
static function updateFps(obj) {
lc_exec.sendFPS(obj);
}
static function createFPSMeter(target_mc) {
target_mc = ((!target_mc) ? (_level0) : (target_mc));
var _local2 = target_mc.createEmptyMovieClip("fpsContainer", target_mc.getNextHighestDepth());
_local2.cacheAsBitmap = true;
_local2.createTextField("fps", 1, 0, 0, 40, 22);
_local2.embedFonts = false;
_local2.textFormat = new TextFormat();
_local2.textFormat.font = "_sans";
_local2.textFormat.size = 10;
_local2.fps.setNewTextFormat(_local2.textFormat);
_local2.fps.setTextFormat(_local2.textFormat);
_local2.updateFps = function (obj) {
this.fps.text = obj.fps;
};
fpsMeter.__set__runFPS(true);
fpsMeter.addEventListener("onFpsUpdate", com.blitzagency.util.Delegate.create(_local2, _local2.updateFps));
return(_local2);
}
static function initConnections() {
var _local2 = lc_exec.initConnection();
var _local3 = lc_info.initConnection();
if (_local2) {
lc_exec.send("_xray_conn", "checkFPSOn");
}
_global.tt("Connections", (_local2 + " | ") + _local3);
}
}
Symbol 5 MovieClip [__Packages.com.blitzagency.util.Delegate] Frame 0
class com.blitzagency.util.Delegate
{
function Delegate () {
}
static function create(target, handler) {
var extraArgs = arguments.slice(2);
var delegate;
delegate = function () {
var _local2 = arguments.concat(extraArgs, [delegate]);
return(handler.apply(target, _local2));
};
return(delegate);
}
}
Symbol 6 MovieClip [__Packages.com.blitzagency.xray.Watch] Frame 0
class com.blitzagency.xray.Watch
{
function Watch () {
}
static function createCallBack(obj, prop_str, callBack) {
var _local1 = obj[prop_str];
obj.watch(prop_str, _functionChanged, callBack);
obj[prop_str] = undefined;
if (_local1) {
obj[prop_str] = _local1;
}
}
static function removeCallBack(obj, prop_str, callBack) {
obj.unwatch(prop_str);
var _local2 = obj[prop_str];
var _local6;
var _local3;
var _local5 = new Array();
while (true) {
_local3 = _local2.callBack;
if (typeof(_local3) == "function") {
_local6 = _local2.newVal;
_local2.callBack = undefined;
if ((_local3 == callBack) || (callBack == undefined)) {
break;
}
_local5.push(_local3);
_local2 = _local6;
} else {
break;
}
}
if (_local6) {
obj[prop_str] = _local6;
} else {
delete obj[prop_str];
}
var _local1 = 0;
while (_local1 < _local5.length) {
callBack = _local5[_local1];
createCallBack(obj, prop_str, callBack);
_local1++;
}
}
static function _functionChanged(prop_str, oldVal, newVal, callBack) {
var _local3 = function () {
var _local3 = arguments.callee;
var _local5 = _local3.newVal;
var _local4 = _local3.callBack;
_local5.apply(this, arguments);
_local4.apply(this, arguments);
};
_local3.newVal = newVal;
_local3.callBack = callBack;
return(_local3);
}
}
Symbol 7 MovieClip [__Packages.com.blitzagency.xray.DragableMovieClip] Frame 0
class com.blitzagency.xray.DragableMovieClip extends MovieClip
{
static var _instance;
var startDrag, ___onMouseMove, onMouseMove, stopDrag;
function DragableMovieClip () {
super();
}
static function initialize(mc, restriction_obj) {
if (!_instance) {
_instance = new com.blitzagency.xray.DragableMovieClip();
}
var _local2 = arguments.slice(2);
_instance._enable.apply(_instance, [mc, restriction_obj].concat(_local2));
}
function _customOnPress(restriction_obj) {
var _local4 = arguments.slice(1);
if (restriction_obj) {
startDrag(false, restriction_obj.left, restriction_obj.top, restriction_obj.right, restriction_obj.bottom);
} else {
startDrag();
}
___onMouseMove = onMouseMove;
onMouseMove = updateAfterEvent;
}
function _customOnRelease() {
stopDrag();
com.blitzagency.xray.Xray.lc_exec.updateHistory(this);
onMouseMove = ___onMouseMove;
}
function _enable(mc, restriction_obj) {
var _local5 = arguments.slice(2);
var _local6 = com.blitzagency.util.Delegate.create.apply(com.blitzagency.util.Delegate, [mc, _customOnPress, restriction_obj].concat(_local5));
var _local4 = com.blitzagency.util.Delegate.create.apply(com.blitzagency.util.Delegate, [mc, _customOnRelease].concat(_local5));
mc.__removeReferenceDelegatePress__ = _local6;
mc.__removeReferenceDelegateRelease__ = _local4;
com.blitzagency.xray.Watch.createCallBack(mc, "onPress", _local6);
com.blitzagency.xray.Watch.createCallBack(mc, "onRelease", _local4);
com.blitzagency.xray.Watch.createCallBack(mc, "onReleaseOutside", _local4);
}
static function remove(mc) {
var _local3 = mc.__removeReferenceDelegatePress__;
var _local2 = mc.__removeReferenceDelegateRelease__;
if (_local3 && (_local2)) {
delete mc.__removeReferenceDelegatePress__;
delete mc.__removeReferenceDelegateRelease__;
com.blitzagency.xray.Watch.removeCallBack(mc, "onPress", _local3);
com.blitzagency.xray.Watch.removeCallBack(mc, "onRelease", _local2);
com.blitzagency.xray.Watch.removeCallBack(mc, "onReleaseOutside", _local2);
}
}
}
Symbol 8 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 9 MovieClip [__Packages.com.blitzagency.xray.ClassPath] Frame 0
class com.blitzagency.xray.ClassPath
{
static var check, fullPath;
function ClassPath () {
}
static function registerPackage(packageName) {
if (check == undefined) {
check = [];
}
if (packageName == undefined) {
var _local2 = [];
for (var _local3 in _global) {
_local2.push(_local3);
}
_global.ASSetPropFlags(_global, null, 0, true);
classPusher(_global);
_protect(_global, _local2);
} else {
classPusher(_global[packageName], packageName);
}
}
static function _protect(package_obj, unprotected) {
_global.ASSetPropFlags(package_obj, null, 1, true);
_global.ASSetPropFlags(package_obj, unprotected, 0, true);
_global.ASSetPropFlags(package_obj, ["constructor", "__constructor__", "prototype", "__proto__"], 1, true);
}
static function getClassName(obj) {
if (obj instanceof Function) {
return(obj.shortClassName);
}
return(obj.constructor.shortClassName);
}
static function getLongClassName(obj) {
if (obj instanceof Function) {
return(obj.className);
}
return(obj.constructor.className);
}
static function getPath(obj) {
if (obj instanceof Function) {
return(obj.className);
}
return(obj.constructor.className);
}
static function classPusher(node, name) {
var _local2 = ((name == undefined) ? "" : (name + "."));
for (var _local3 in node) {
if ((node[_local3] instanceof Function) && (node[_local3].constructor != null)) {
node[_local3].className = _local2 + _local3;
node[_local3].shortClassName = _local3;
check.push(node[_local3]);
} else if (node[_local3] instanceof Object) {
classPusher(node[_local3], _local2 + _local3);
}
}
}
static function checkProtoChain(obj, extendedPath, includePath) {
if ((obj.__proto__ != undefined) && (obj.__proto__.constructor.className != undefined)) {
var _local1 = checkExtended(obj);
var _local4 = ((extendedPath || (includePath)) ? (_local1.className) : (_local1.shortClassName));
fullPath = ((fullPath == "") ? (_local4) : ((fullPath + ".") + _local1.shortClassName));
if (extendedPath) {
checkProtoChain(obj.__proto__, extendedPath);
}
}
}
static function getClass(obj, extendedPath, includePath) {
fullPath = "";
checkProtoChain(obj, extendedPath, includePath);
if (fullPath == "") {
fullPath = typeof(obj);
}
return(fullPath);
}
static function checkExtended(obj) {
var _local2 = {extended:false};
var _local1 = 0;
while (_local1 < check.length) {
var _local3 = ((obj.__proto__ == check[_local1].prototype) ? true : false);
if (_local3) {
_local2.extended = _local3;
_local2.className = check[_local1].className;
_local2.shortClassName = check[_local1].shortClassName;
return(_local2);
}
_local1++;
}
return(_local2);
}
}
Symbol 10 MovieClip [__Packages.com.blitzagency.xray.ObjectViewer] Frame 0
class com.blitzagency.xray.ObjectViewer
{
var _recursionCount, mc_prop_ary, TextField_prop_ary, Button_prop_ary, Sound_prop_ary, mc_prop_small_ary, objMap, currentObjPath, XMLStr, dispatchEvent, XMLDoc;
function ObjectViewer () {
_recursionCount = 0.003;
mc_prop_ary = new Array("_name", "_x", "_y", "_width", "_height", "_rotation", "_visible", "_alpha", "_xscale", "_yscale", "cacheAsBitmap", "filters", "_currentframe", "_totalframes", "_framesloaded", "enabled", "hitArea", "_droptarget", "_target", "_focusEnabled", "_focusrect", "_lockroot", "menu", "_quality", "soundbuftime", "tabChildren", "tabEnabled", "tabIndex", "trackAsMenu", "_url", "useHandCursor");
TextField_prop_ary = new Array("_name", "_x", "_y", "_width", "_height", "_rotation", "_visible", "_alpha", "_xscale", "_yscale", "html", "htmlText", "text");
Button_prop_ary = new Array("_name", "_x", "_y", "_width", "_height", "_rotation", "_visible", "_alpha", "_xscale", "_yscale", "enabled");
Sound_prop_ary = new Array("position", "duration", "id3.comment", "id3.album", "id3.genre", "id3.songname", "id3.artist", "id3.track", "id3.year", "volume", "pan");
mc_prop_small_ary = new Array("_x", "_y", "_width", "_height", "_visible", "_alpha", "_currentframe");
mc_prop_ary.reverse();
TextField_prop_ary.reverse();
Button_prop_ary.reverse();
Sound_prop_ary.reverse();
mc_prop_small_ary.reverse();
mx.events.EventDispatcher.initialize(this);
}
function replace(str, srch_str, repl_str) {
var _local1 = new Array();
_local1 = str.split(srch_str);
var _local2 = _local1.join(repl_str);
return(_local2);
}
function setAttributes(xmlNode, obj) {
for (var _local3 in obj) {
if (((_local3 != "__recursionCheck") && (_local3 != "getRecursionChecked")) && (_local3 != "setRecursionChecked")) {
xmlNode.attributes[_local3] = obj[_local3];
}
}
}
function getObjProperties(obj) {
var _local3 = new Object();
var _local4 = 0;
for (var _local5 in obj) {
if ((((((_local5 != "Xray") && (_local5 != "__recursionCheck")) && (_local5 != "getRecursionChecked")) && (_local5 != "__removeReferenceDelegateRelease__")) && (_local5 != "__removeReferenceDelegatePress__")) && (_local5 != "setRecursionChecked")) {
_local4++;
var _local1 = com.blitzagency.xray.ClassPath.getClass(obj[_local5]);
_local1 = ((_local1 != "") ? (_local1) : (typeof(obj[_local5])));
_local3[_local5] = (_local1 + " :: ") + obj[_local5];
}
}
if (_local4 == 0) {
_local3.value = new Object();
_local3.value = obj.toString();
}
return(_local3);
}
function getFunctionProperties(obj, sPath) {
_global.ASSetPropFlags(obj, null, 0, true);
var _local4 = new Object();
for (var _local5 in obj) {
if ((((((((_local5 != "__proto__") && (_local5 != "prototype")) && (_local5 != "Xray")) && (_local5 != "__recursionCheck")) && (_local5 != "__removeReferenceDelegateRelease__")) && (_local5 != "__removeReferenceDelegatePress__")) && (_local5 != "getRecursionChecked")) && (_local5 != "setRecursionChecked")) {
var _local3 = ((typeof(obj[_local5]) == "function") ? "function" : (obj[_local5]));
_local4[_local5] = _local3;
}
}
if (obj.prototype) {
for (var _local5 in obj.prototype) {
if ((((((((_local5 != "__proto__") && (_local5 != "prototype")) && (_local5 != "Xray")) && (_local5 != "__recursionCheck")) && (_local5 != "__removeReferenceDelegateRelease__")) && (_local5 != "__removeReferenceDelegatePress__")) && (_local5 != "getRecursionChecked")) && (_local5 != "setRecursionChecked")) {
var _local3 = ((typeof(obj.prototype[_local5]) == "function") ? "function" : "property");
_local4[_local5] = _local3;
}
}
}
_global.ASSetPropFlags(obj, null, 1, true);
return(_local4);
}
function getBaseProperties(target_obj, path) {
var _local2 = new Object();
_local2.path = path;
for (var _local5 in target_obj) {
if (((((((_local5 != "__recursionCheck") && (_local5 != "Xray")) && (_local5 != "getRecursionChecked")) && (_local5 != "setRecursionChecked")) && (_local5 != "__removeReferenceDelegateRelease__")) && (_local5 != "__removeReferenceDelegatePress__")) && (_local5 != "__proto__")) {
var _local3 = com.blitzagency.xray.ClassPath.getClass(target_obj[_local5]);
_local3 = ((_local3 != "") ? (_local3) : (typeof(target_obj[_local5])));
_local2[_local5] = new Object();
_local2[_local5].className = _local3;
_local2[_local5].objName = _local5;
_local2[_local5].val = target_obj[_local5];
_local2[_local5].target = (_local2.path + ".") + _local5;
_local2[_local5].type = getType(target_obj[_local5]);
}
}
_local2.Class = com.blitzagency.xray.ClassPath.getClass(target_obj, true);
return(_local2);
}
function getProperties(target_obj, showAll) {
_global.ASSetPropFlags(target_obj, null, 0, true);
var obj = new Object();
obj.sTarget_mc = String(eval (target_obj._target));
if (showAll) {
for (var items in target_obj) {
if ((((((items != "__recursionCheck") && (items != "Xray")) && (items != "getRecursionChecked")) && (items != "__removeReferenceDelegateRelease__")) && (items != "__removeReferenceDelegatePress__")) && (items != "setRecursionChecked")) {
var sClass = com.blitzagency.xray.ClassPath.getClass(target_obj[items]);
sClass = ((sClass != "") ? (sClass) : (typeof(target_obj[items])));
obj[items] = (sClass + " :: ") + target_obj[items];
}
}
}
obj.Class = com.blitzagency.xray.ClassPath.getClass(target_obj, true);
obj._props = new Object();
var ary;
if (target_obj instanceof MovieClip) {
ary = mc_prop_ary;
}
if (target_obj instanceof TextField) {
ary = TextField_prop_ary;
}
if (target_obj instanceof Button) {
ary = Button_prop_ary;
}
if (target_obj instanceof Sound) {
ary = Sound_prop_ary;
}
var x = 0;
while (x < ary.length) {
switch (ary) {
case mc_prop_ary :
if (ary[x] == "_y") {
obj._props.depth = target_obj.getDepth();
}
obj._props[ary[x]] = target_obj[ary[x]];
break;
case TextField_prop_ary :
obj._props[ary[x]] = target_obj[ary[x]];
break;
case Button_prop_ary :
obj._props[ary[x]] = target_obj[ary[x]];
break;
case Sound_prop_ary :
if (ary[x] == "volume") {
obj._props.volume = target_obj.getVolume();
} else if (ary[x] == "pan") {
obj._props.pan = target_obj.getPan();
} else if (ary[x] == "id3.comment") {
obj._props.id3_comment = target_obj.id3.comment;
} else if (ary[x] == "id3.album") {
obj._props.id3_album = target_obj.id3.album();
} else if (ary[x] == "id3.genre") {
obj._props.id3_genre = target_obj.id3.genre();
} else if (ary[x] == "id3.songname") {
obj._props.id3_songname = target_obj.id3.songname();
} else if (ary[x] == "id3.artist") {
obj._props.id3_artist = target_obj.id3.artist();
} else if (ary[x] == "id3.track") {
obj._props.id3_track = target_obj.id3.track();
} else if (ary[x] == "id3.year") {
obj._props.id3_year = target_obj.id3.year();
} else {
obj._props[ary[x]] = target_obj[ary[x]];
}
}
x++;
}
_global.ASSetPropFlags(obj, ["constructor", "__constructor__", "prototype", "__proto__", "__recursionCheck"], 1, true);
return(obj);
}
function getStandardProperties(target_mc) {
var _local3 = new Object();
_local3._props = new Object();
var _local2 = 0;
while (_local2 < mc_prop_small_ary.length) {
if (mc_prop_small_ary[_local2] == "_y") {
_local3._props.depth = target_mc.getDepth();
}
_local3._props[mc_prop_small_ary[_local2]] = target_mc[mc_prop_small_ary[_local2]];
_local2++;
}
return(_local3);
}
function getSoundProperties(snd) {
var _local1 = new Object();
_local1.txtPosition = snd.position;
_local1.txtDuration = snd.duration;
_local1.txtComment = snd.id3.comment;
_local1.txtAlbum = snd.id3.album;
_local1.txtGenre = snd.id3.genre;
_local1.txtSongName = snd.id3.songname;
_local1.txtArtist = snd.id3.artist;
_local1.txtTrack = snd.id3.track;
_local1.txtYear = snd.id3.year;
_local1.txtVolume = snd.getVolume();
_local1.txtPan = snd.getPan();
return(_local1);
}
function getVideoProperties(ns) {
var _local2 = new Object();
_local2.txtPosition = ns.time;
_local2.txtBufferLength = ns.bufferLength;
_local2.txtBufferTime = ns.bufferTime;
_local2.txtBytesLoaded = ns.bytesLoaded;
_local2.txtBytesTotal = ns.bytesTotal;
_local2.txtCurrentFps = ns.currentFps;
var _local4 = getObjProperties(ns);
_local2.props = _local4;
return(_local2);
}
function getName(clip) {
var _local1 = clip._name;
return(((!_local1) ? (String(clip)) : (_local1)));
}
function addObject(link, iType, sName) {
if (link.lastIndexOf(".") > -1) {
var _local6 = link.split(".");
var _local2 = objMap;
var _local4 = 0;
while (_local4 < _local6.length) {
var _local3 = ((_local4 == (_local6.length - 1)) ? (sName) : (_local6[_local4]));
var _local5 = _local6.slice(0, _local4).join(".");
var _local8 = true;
if (!_local2[_local3]) {
_local8 = false;
_local2[_local3] = new Object();
_local5 = ((_local4 > 0) ? ((_local5 + ".") + _local3) : (_local5));
_local2[_local3].sPath = _local5;
_local2[_local3].iType = iType;
_local2[_local3].sName = _local3;
}
_local2 = _local2[_local3];
if ((_local4 == (_local6.length - 1)) && (!_local8)) {
var _local9 = link.split(".");
var _local12 = _local9.pop();
link = (_local9.join(".") + ".") + sName;
_local2.sPath = link;
_local2.iType = iType;
_local2.sName = sName;
}
_local4++;
}
} else {
if (!objMap[link]) {
objMap[link] = new Object();
}
objMap[link].sPath = link;
objMap[link].iType = iType;
objMap[link].sName = sName;
}
}
function buildTree(obj) {
var len = currentObjPath.split(".").length;
var aTemp = obj.sPath.split(".");
aTemp.splice(0, len - 1);
var checkPath = ((aTemp.join(".") == "") ? false : true);
var sNodeName;
var sNodeLabel;
var sCurrentTarget;
var iType;
var o;
if (((obj.sPath != undefined) && (checkPath)) && (obj.sName != undefined)) {
sNodeName = getName(obj.sName);
sNodeName = replace(sNodeName, " ", "_");
sNodeLabel = getName(obj.sName);
sCurrentTarget = obj.sPath;
iType = obj.iType;
switch (iType) {
case 0 :
var sClass = com.blitzagency.xray.ClassPath.getClass(eval (sCurrentTarget), false);
if (!sClass) {
var func = typeof(eval (sCurrentTarget));
sClass = "Object";
}
sNodeLabel = ((sNodeLabel + " (") + sClass) + ")";
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
break;
case 1 :
var sClass = com.blitzagency.xray.ClassPath.getClass(eval (sCurrentTarget), false);
sNodeLabel = ((sNodeLabel + " (") + sClass) + ")";
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
break;
case 2 :
var sClass = com.blitzagency.xray.ClassPath.getClass(eval (sCurrentTarget), false);
sNodeLabel = ((sNodeLabel + " (") + sClass) + ")";
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
break;
case 3 :
var sClass = com.blitzagency.xray.ClassPath.getClass(eval (sCurrentTarget), false);
sNodeLabel = ((sNodeLabel + " (") + sClass) + ")";
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
break;
case 4 :
var sClass = com.blitzagency.xray.ClassPath.getClass(eval (sCurrentTarget), false);
sNodeLabel = ((sNodeLabel + " (") + sClass) + ")";
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
break;
case 5 :
var sClass = "TextField";
sNodeLabel = ((sNodeLabel + " (") + sClass) + ")";
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
break;
case 6 :
var sClass = com.blitzagency.xray.ClassPath.getClass(eval (sCurrentTarget), false);
if (!sClass) {
var func = typeof(eval (sCurrentTarget));
sClass = "Object";
}
sNodeLabel = ((sNodeLabel + " (") + sClass) + ")";
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
break;
case 7 :
var sClass = com.blitzagency.xray.ClassPath.getClass(eval (sCurrentTarget), false);
if (sClass) {
sClass = ("( " + sClass) + " )";
} else {
sClass = "( function )";
}
sNodeLabel = sNodeLabel + sClass;
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
break;
case 8 :
var sClass = com.blitzagency.xray.ClassPath.getClass(eval (sCurrentTarget), false);
if (!sClass) {
var func = typeof(eval (sCurrentTarget));
sClass = "NetStream";
}
sNodeLabel = ((sNodeLabel + " (") + sClass) + ")";
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
break;
case 12 :
var sClass = "Date";
if (!sClass) {
var func = typeof(eval (sCurrentTarget));
sClass = "Date";
}
sNodeLabel = ((sNodeLabel + " (") + sClass) + ")";
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
break;
default :
var sClass = com.blitzagency.xray.ClassPath.getClass(eval (sCurrentTarget), false);
if (!sClass) {
var func = typeof(eval (sCurrentTarget));
sClass = "Object";
}
sNodeLabel = ((sNodeLabel + " (") + sClass) + ")";
o = {label:sNodeLabel, mc:sCurrentTarget, t:iType};
}
XMLStr = XMLStr + (("<" + sNodeName) + " ");
for (var atr in o) {
XMLStr = XMLStr + (((atr + "=\"") + o[atr]) + "\" ");
}
XMLStr = XMLStr + ">";
}
aTemp = new Array();
for (var items in obj) {
if (typeof(obj[items]) == "object") {
aTemp.push(obj[items]);
}
}
aTemp.sortOn("sName");
var x = 0;
while (x < aTemp.length) {
buildTree(aTemp[x]);
x++;
}
if (sNodeName) {
XMLStr = XMLStr + (("</" + sNodeName) + ">");
}
}
function _protect(package_obj, unprotected_array) {
_global.ASSetPropFlags(package_obj, null, 1, true);
_global.ASSetPropFlags(package_obj, unprotected_array, 0, true);
_global.ASSetPropFlags(package_obj, ["constructor", "__constructor__", "prototype", "__proto__"], 1, true);
}
function viewTree(obj, objPath, recursiveSearch, showHidden, objectSearch) {
dispatchEvent({type:"onViewTree", obj:obj});
objMap = new Object();
XMLStr = "";
com.blitzagency.xray.Xray.recursionControl = com.blitzagency.xray.Xray.recursionControl + 1;
var sNodeName;
if (typeof(obj) == "movieclip") {
sNodeName = getName(obj);
} else if (typeof(obj) == "object") {
sNodeName = objPath.split(".")[0];
}
var objType = getType(obj);
var targetPath;
if (objType == 2) {
targetPath = String(eval (obj._target));
objPath = targetPath;
} else {
targetPath = objPath;
}
currentObjPath = objPath;
var aTemp = currentObjPath.split(".");
if (aTemp.length > 1) {
aTemp.splice(aTemp.length - 1);
}
var o;
aTemp = targetPath.split(".");
XMLDoc = new XML();
if (recursiveSearch || ((!recursiveSearch) && (targetPath == "_level0"))) {
var currentNode;
var element1 = XMLDoc.createElement(aTemp[0]);
XMLDoc.appendChild(element1);
var attribute_obj = {label:aTemp[0], mc:aTemp[0], t:objType};
setAttributes(XMLDoc.lastChild, attribute_obj);
currentNode = XMLDoc.lastChild;
}
var bParsed = false;
addObject(sNodeName, getType(obj), sNodeName, obj.getDepth());
if (!objectSearch) {
objectSearch = ((getType(obj) == 0) ? true : false);
}
parseTree(obj, sNodeName, objPath, recursiveSearch, showHidden, objectSearch);
buildTree(objMap);
XMLDoc = new XML(XMLStr);
obj = new Object();
obj.XMLDoc = XMLDoc;
dispatchEvent({type:"onViewTreeReturn", obj:obj});
return(XMLDoc);
}
function parseTree(obj, sName, sPath, recursiveSearch, showHidden, objectSearch, parent, lastParent) {
var iDepth = Number(((typeof(obj) == "movieclip") ? (obj.getDepth()) : 0));
var objType = getType(obj);
var unprotected_array = new Array();
if (((typeof(obj) == "object") || (typeof(obj) == "movieclip")) || (typeof(obj) == "function")) {
if (showHidden) {
for (var items in obj) {
unprotected_array.push(items);
}
_global.ASSetPropFlags(obj, null, 0, true);
}
if (recursiveSearch) {
if (obj.__recursionCheck == null) {
obj.prototype.getRecursionChecked = function () {
};
obj.prototype.setRecursionChecked = function (value) {
};
var created = obj.prototype.addProperty("__recursionCheck", obj.prototype.getRecursionChecked, obj.prototype.setRecursionChecked);
obj.__recursionCheck = 0;
_global.ASSetPropFlags(obj, ["__recursionCheck", "getRecursionChecked", "setRecursionChecked"], 1, true);
}
if (Math.floor(obj.__recursionCheck) != Math.floor(com.blitzagency.xray.Xray.recursionControl)) {
obj.__recursionCheck = com.blitzagency.xray.Xray.recursionControl;
}
} else {
delete obj.__recursionCheck;
delete obj.getRecursionChecked;
delete obj.setRecursionChecked;
}
if (((typeof(obj) == "object") && (recursiveSearch)) && (!objectSearch)) {
if (showHidden) {
_protect(obj, unprotected_array);
}
return(undefined);
}
for (var items in obj) {
if ((items != "__recursionCheck") && (((typeof(obj[items]) == "object") || (typeof(obj[items]) == "movieclip")) || (typeof(obj[items]) == "function"))) {
var bReturn = false;
var pathCheck = "";
if (typeof(obj[items]) == "movieclip") {
var pathLength = sPath.split(".").length;
var targetLength = String(eval (obj[items]._target)).split(".").length;
if (pathLength <= targetLength) {
pathCheck = (sPath + ".") + items;
} else {
pathCheck = (sPath + ".") + items;
}
} else {
pathCheck = (sPath + ".") + items;
}
if (((((((((((((((typeof(obj[items]) == "object") || (typeof(obj[items]) == "movieclip")) || (typeof(obj[items]) == "function")) && (items.toLowerCase() != "xray")) && (items != "__recursionCheck")) && (items != "getRecursionChecked")) && (items != "setRecursionChecked")) && (items.toLowerCase() != "xray")) && (items != "__proto__")) && (items != "prototype")) && (items != "__constructor__")) && (items != "__resolve")) && (items != "__removeReferenceDelegateRelease__")) && (items != "__removeReferenceDelegatePress__")) && (items != "constructor")) {
iDepth = Number(((typeof(obj[items]) == "movieclip") ? (obj[items].getDepth()) : 0));
addObject(pathCheck, getType(obj[items]), items, iDepth);
if (recursiveSearch) {
if ((Math.floor(obj[items].__recursionCheck) != Math.floor(com.blitzagency.xray.Xray.recursionControl)) || (obj[items].__recursionCheck < (com.blitzagency.xray.Xray.recursionControl + _recursionCount))) {
if (Math.floor(obj[items].__recursionCheck) == Math.floor(com.blitzagency.xray.Xray.recursionControl)) {
obj[items].__recursionCheck = obj[items].__recursionCheck + 0.001;
}
if ((obj[items].__recursionCheck < (com.blitzagency.xray.Xray.recursionControl + _recursionCount)) || (obj[items].__recursionCheck == undefined)) {
parseTree(obj[items], items, pathCheck, recursiveSearch, showHidden, objectSearch, obj, parent);
}
}
}
}
}
}
if (showHidden) {
_protect(obj, unprotected_array);
}
}
}
function getType(obj) {
var _local14 = Boolean(((typeof(obj) == "object") ? true : false));
var _local6 = ((obj.constructor == Array) ? true : false);
var _local8 = obj instanceof MovieClip;
var _local15 = obj instanceof Button;
var _local5 = obj instanceof Sound;
var _local3 = obj instanceof Video;
var _local9 = obj instanceof NetStream;
var _local4 = obj instanceof TextField;
var _local11 = obj instanceof Date;
var _local12 = Boolean(((typeof(obj) == "function") ? true : false));
var _local7 = Boolean(((typeof(obj) == "string") ? true : false));
var _local13 = Boolean(((typeof(obj) == "number") ? true : false));
var _local10 = Boolean(((typeof(obj) == "boolean") ? true : false));
var _local1;
if (_local14) {
_local1 = 0;
}
if (_local6) {
_local1 = 1;
}
if (_local8) {
_local1 = 2;
}
if (_local15) {
_local1 = 3;
}
if (_local5) {
_local1 = 4;
}
if (_local4) {
_local1 = 5;
}
if (_local3) {
_local1 = 6;
}
if (_local12) {
_local1 = 7;
}
if (_local9) {
_local1 = 8;
}
if (_local7) {
_local1 = 9;
}
if (_local13) {
_local1 = 10;
}
if (_local10) {
_local1 = 11;
}
if (_local11) {
_local1 = 12;
}
return(_local1);
}
}
Symbol 11 MovieClip [__Packages.com.blitzagency.events.GDispatcher] Frame 0
class com.blitzagency.events.GDispatcher
{
var gDispatcher_listeners;
function GDispatcher () {
}
static function initialize(p_obj) {
if ($instance == undefined) {
$instance = new com.blitzagency.events.GDispatcher();
}
p_obj.dispatchEvent = $instance.dispatchEvent;
p_obj.eventListenerExists = $instance.eventListenerExists;
p_obj.addEventListener = $instance.addEventListener;
p_obj.removeEventListener = $instance.removeEventListener;
p_obj.removeAllEventListeners = $instance.removeAllEventListeners;
}
static function $indexOfListener(p_listeners, p_obj, p_function) {
var _local3 = p_listeners.length;
var _local2 = -1;
while (_local2++ , _local2 < _local3) {
var _local1 = p_listeners[_local2];
if ((_local1.o == p_obj) && (_local1.f == p_function)) {
return(_local2);
}
}
return(-1);
}
static function $dispatchEvent(p_dispatchObj, p_listeners, p_eventObj) {
var _local5;
for (_local5 in p_listeners) {
var _local1 = p_listeners[_local5].o;
var _local3 = typeof(_local1);
var _local2 = p_listeners[_local5].f;
if ((_local3 == "object") || (_local3 == "movieclip")) {
if ((_local1.handleEvent != undefined) && (_local2 == undefined)) {
_local1.handleEvent(p_eventObj);
} else {
if (_local2 == undefined) {
_local2 = p_eventObj.type;
}
_local1[_local2](p_eventObj);
}
} else {
_local1.apply(p_dispatchObj, [p_eventObj]);
}
}
}
function dispatchEvent(p_eventObj) {
if (p_eventObj.type == "ALL") {
return(undefined);
}
if (p_eventObj.target == undefined) {
p_eventObj.target = this;
}
this[p_eventObj.type + "Handler"](p_eventObj);
var _local3 = gDispatcher_listeners[p_eventObj.type];
if (_local3 != undefined) {
$dispatchEvent(this, _local3, p_eventObj);
}
_local3 = gDispatcher_listeners.ALL;
if (_local3 != undefined) {
$dispatchEvent(this, _local3, p_eventObj);
}
}
function eventListenerExists(p_event, p_obj, p_function) {
return($indexOfListener(gDispatcher_listeners[p_event], p_obj, p_function) != -1);
}
function addEventListener(p_event, p_obj, p_function) {
if (gDispatcher_listeners == undefined) {
gDispatcher_listeners = {};
_global.ASSetPropFlags(this, gDispatcher_listeners, 1);
}
var _local3 = gDispatcher_listeners[p_event];
if (_local3 == undefined) {
_local3 = [];
gDispatcher_listeners[p_event] = _local3;
}
if ($indexOfListener(_local3, p_obj, p_function) == -1) {
_local3.push({o:p_obj, f:p_function});
}
}
function removeEventListener(p_event, p_obj, p_function) {
var _local2 = gDispatcher_listeners[p_event];
if (_local2 == undefined) {
return(undefined);
}
var _local3 = $indexOfListener(_local2, p_obj, p_function);
if (_local3 != -1) {
_local2.splice(_local3, 1);
}
}
function removeAllEventListeners(p_event) {
if (p_event == undefined) {
delete gDispatcher_listeners;
} else {
delete gDispatcher_listeners[p_event];
}
}
static var $instance = undefined;
}
Symbol 12 MovieClip [__Packages.com.blitzagency.xray.FPSMeter] Frame 0
class com.blitzagency.xray.FPSMeter
{
var _fps, dispatchEvent, _modus, _runFPS, fpsSI, _pollInterval, past, now, pass, delta, populationSize, population;
function FPSMeter () {
com.blitzagency.events.GDispatcher.initialize(this);
init();
}
function get fps() {
return(_fps);
}
function set fps(newValue) {
_fps = newValue;
dispatchEvent({type:"onFpsUpdate", fps:newValue});
//return(fps);
}
function get modus() {
return(_modus);
}
function set modus(newValue) {
_modus = newValue;
//return(modus);
}
function get runFPS() {
return(_runFPS);
}
function set runFPS(newValue) {
_runFPS = newValue;
clearInterval(fpsSI);
if (newValue) {
fpsSI = setInterval(this, "update", pollInterval);
}
//return(runFPS);
}
function get pollInterval() {
return(_pollInterval);
}
function set pollInterval(newValue) {
_pollInterval = newValue;
clearInterval(fpsSI);
if (runFPS) {
fpsSI = setInterval(this, "update", pollInterval);
}
//return(pollInterval);
}
static function getInstance() {
if (_instance == null) {
_instance = new com.blitzagency.xray.FPSMeter();
}
return(_instance);
}
function init() {
past = 0;
now = 0;
fps = ("");
pass = 0;
delta = 0;
populationSize = 10;
population = new Array(populationSize);
runFPS = (false);
modus = (true);
pollInterval = (25);
}
function update() {
if (!runFPS) {
clearInterval(fpsSI);
}
now = getTimer();
delta = now - past;
if (modus) {
population[pass] = delta;
pass++;
if (pass >= populationSize) {
var _local2 = 0;
for (var _local3 in population) {
_local2 = _local2 + population[_local3];
}
var _local5 = int((1000 * populationSize) / _local2);
fps = (("[" + _local5) + "fps]");
pass = 0;
}
} else {
var _local4 = int(1000 / delta);
fps = (("[" + _local4) + "fps]");
}
past = now;
}
static var _instance = null;
}
Symbol 13 MovieClip [__Packages.com.blitzagency.xray.Commander] Frame 0
class com.blitzagency.xray.Commander
{
function Commander () {
}
static function exec(str) {
var _local7 = str.split(";");
var _local4 = 0;
while (_local4 < _local7.length) {
_local7[_local4] = retainValue(_local7[_local4]);
_local7[_local4] = _local7[_local4].split(".");
_local7[_local4][_local7[_local4].length - 1] = restoreValue(_local7[_local4][_local7[_local4].length - 1]);
var _local6 = _local7[_local4];
var _local8 = _local6.length;
var _local3 = 0;
while (_local3 < _local8) {
if (_local6[_local3].indexOf("[") > -1) {
var _local5 = _local6[_local3].split("[");
_local6[_local3] = _local5[0];
var _local1 = 1;
while (_local1 < _local5.length) {
var _local2 = replace(_local5[_local1], "\"", "");
_local2 = replace(_local2, "]", "");
_local6.splice(_local1, 0, _local2);
_local1++;
}
}
_local3++;
}
_local4++;
}
var _local9 = script(_local7);
return(_local9);
}
static function script(cmds) {
var c = 0;
while (c < cmds.length) {
var cmd = cmds[c][cmds[c].length - 1];
cmd = getArguments(cmd);
var d = ((cmds[c].length > 1) ? 1 : 0);
var r;
if (d > 0) {
var exec = eval (cmds[c][0]);
while (d < (cmds[c].length - 1)) {
exec = exec[cmds[c][d]];
d++;
}
if (cmd.method) {
r = exec[cmd.method].apply(exec, cmd.args);
if (r != undefined) {
return(r);
}
} else {
exec[cmd.prop] = cmd.val;
}
} else {
r = _global[cmd.method](cmd.args);
if (r != undefined) {
return(r);
}
}
c++;
}
}
static function retainValue(str) {
var _local5 = str.indexOf("=");
var _local2 = str.indexOf("(");
if (_local5 > -1) {
var _local3 = str.split("=");
_local3[1] = replace(_local3[1], ".", "(dot)");
return(_local3.join("="));
}
if (_local2 > -1) {
var _local4 = str.indexOf(")", _local2);
var _local6 = str.slice(0, _local2);
var _local7 = str.slice(_local4 + 2);
var _local8 = replace(str.substr(_local2, _local4), ".", "(dot)");
return((_local6 + _local8) + _local7);
}
return(str);
}
static function restoreValue(str) {
return(replace(str, "(dot)", "."));
}
static function replace(str, search, use) {
return(str.split(search).join(use));
}
static function getArguments(str) {
var _local10 = str.indexOf("(");
var _local12 = str.lastIndexOf(")");
var _local13;
var _local2;
var _local11;
var _local7;
if (_local10 > -1) {
_local13 = str.substr(0, _local10);
_local2 = str.substring(_local10 + 1, _local12).split(",");
var _local1 = 0;
while (_local1 < _local2.length) {
var _local4 = _local2[_local1].indexOf("\"");
var _local3 = _local2[_local1].indexOf("(");
if (_local3 > -1) {
_local2[_local1] = String(replace(_local2[_local1], " ", ""));
_local2[_local1] = exec(_local2[_local1]);
} else if ((_local4 > -1) && (_local3 == -1)) {
_local2[_local1] = String(replace(_local2[_local1], "\"", ""));
_local2[_local1] = String(replace(_local2[_local1], "'", ""));
} else if (!isNaN(parseInt(_local2[_local1]))) {
_local2[_local1] = parseInt(_local2[_local1]);
}
_local1++;
}
} else {
_local11 = replace(str.split("=")[0], " ", "");
var _local5 = replace(str.split("=")[1], " ", "");
var _local9;
var _local14;
switch (_local5) {
case "true" :
_local9 = true;
_local7 = _local9;
break;
case "false" :
_local9 = false;
_local7 = _local9;
break;
default :
if (!isNaN(parseInt(_local5))) {
_local14 = parseInt(_local5);
_local7 = _local14;
} else {
_local5 = String(replace(_local5, "\"", ""));
_local5 = String(replace(_local5, "'", ""));
_local7 = _local5;
}
}
}
var _local6 = new Object();
_local6.method = _local13;
_local6.args = _local2;
_local6.prop = _local11;
_local6.val = _local7;
return(_local6);
}
}
Symbol 14 MovieClip [__Packages.com.blitzagency.xray.ControlConnection] Frame 0
class com.blitzagency.xray.ControlConnection extends LocalConnection
{
var objViewer, tree_que, queSI, send, fpsMeter, focusEnabledCheck, highlightColor, boundingBox_mc, isConnected, connect;
function ControlConnection () {
super();
mx.events.EventDispatcher.initialize(this);
init();
}
function init() {
objViewer = new com.blitzagency.xray.ObjectViewer();
tree_que = new Array();
}
function viewTree(sTarget_mc, recursiveSearch, showHidden, objectSearch) {
var target_mc = eval (sTarget_mc);
var objPath = null;
if (typeof(target_mc) == "object") {
objPath = sTarget_mc;
}
var tree_xml = objViewer.viewTree(target_mc, objPath, recursiveSearch, showHidden, objectSearch);
if (!tree_xml) {
com.blitzagency.xray.Xray.tt("treeview search returned undefined");
return(undefined);
}
var iLevelCount = 5000;
var level_ary = new Array();
var x = 1;
while (x <= iLevelCount) {
if (eval ("_level" + x)) {
level_ary.push(x);
}
x++;
}
var sTree = tree_xml.toString();
var treeLength = sTree.length;
if (treeLength > 5000) {
tree_que = new Array();
var x = 0;
while (x < treeLength) {
var toSend = sTree.substring(x, x + 5000);
var bLast = (((x + 5000) >= sTree.length) ? true : false);
tree_que.push({XMLDoc:toSend, level_ary:level_ary, bLast:bLast});
x = x + 5000;
}
queSI = setInterval(this, "processQue", 25);
} else {
var obj = {XMLDoc:tree_xml.toString()};
var bSent = send("_xray_conn", "setTree", obj, level_ary, true);
}
}
function processQue() {
var _local2 = tree_que.shift();
var _local3 = new Object();
_local3.XMLDoc = _local2.XMLDoc;
var _local5 = _local2.level_ary;
var _local4 = _local2.bLast;
if (tree_que.length == 0) {
clearInterval(queSI);
}
var _local6 = send("_xray_conn", "setTree", _local3, _local5, _local4);
}
function sendFPS(obj) {
var _local2 = send("_xray_conn", "viewFPS", obj.fps);
}
function showFPS() {
fpsMeter.__set__runFPS(true);
}
function hideFPS() {
fpsMeter.__set__runFPS(false);
}
function fpsOn(showFPS) {
fpsMeter.__set__runFPS(showFPS);
}
function getMovieClipProperties(sTarget_mc, bShowAll) {
var target_mc = eval (sTarget_mc);
var obj = objViewer.getProperties(target_mc, bShowAll);
var bSent = send("_xray_conn", "showMovieClipProperties", obj);
}
function getTipMovieClipProperties(sTarget_mc, bShowAll) {
var target_mc = eval (sTarget_mc);
var obj = objViewer.getProperties(target_mc, false);
var bSent = send("_xray_conn", "showTipMovieClipProperties", obj);
}
function getBaseProperties(sObj, key) {
var sTemp = sObj.split(".");
var target_obj = eval (sTemp[0]);
var x = 1;
while (x < sTemp.length) {
target_obj = target_obj[sTemp[x]];
x++;
}
if (key) {
target_obj = target_obj[key];
}
var obj = objViewer.getBaseProperties(target_obj, sObj);
var bSent = send("_xray_conn", "showBaseProperties", obj);
}
function getObjProperties(sObj, key) {
var sTemp = sObj.split(".");
var target_obj = eval (sTemp[0]);
var x = 1;
while (x < sTemp.length) {
target_obj = target_obj[sTemp[x]];
x++;
}
if (key) {
target_obj = target_obj[key];
}
var obj = objViewer.getObjProperties(target_obj);
var bSent = send("_xray_conn", "showMovieClipProperties", obj);
}
function getFunctionProperties(sObj) {
var target_obj = eval (sObj);
var obj = objViewer.getFunctionProperties(target_obj);
var bSent = send("_xray_conn", "showMovieClipProperties", obj);
}
function writeChangeHistory(obj) {
var _local4 = "//==========/[ CHANGES ]\\===========//";
_global.trace(_local4);
for (var _local3 in obj) {
if (typeof(obj[_local3]) == "object") {
_global.trace(obj[_local3].changes + ";");
}
}
_local4 = "//==========\\[ CHANGES ]/===========//";
_global.trace(_local4);
}
function executeScript(sExecute) {
com.blitzagency.xray.Commander.exec(sExecute);
}
function getSoundProperties(sSound) {
var obj = objViewer.getSoundProperties(eval (sSound));
var bSent = send("_xray_conn", "setSoundProperties", obj);
}
function getVideoProperties(sNetStream) {
var obj = objViewer.getVideoProperties(eval (sNetStream));
var bSent = send("_xray_conn", "setVideoProperties", obj);
}
function playSound(sSound, iLoops) {
var snd = eval (sSound);
snd.start(0, iLoops);
}
function stopSound(sSound) {
var snd = eval (sSound);
snd.stop();
}
function playVideo(sVideo, flv) {
var ns = eval (sVideo);
ns.play(flv);
}
function pauseVideo(sVideo) {
var ns = eval (sVideo);
ns.pause();
}
function stopVideo(sVideo) {
var ns = eval (sVideo);
ns.close();
}
function highlightClip(sTarget_mc) {
var target_mc = eval (sTarget_mc);
focusEnabledCheck = target_mc.focusEnabled;
target_mc.focusEnabled = true;
_global.Selection.setFocus(sTarget_mc);
}
function lowlightClip(sTarget_mc) {
var target_mc = eval (sTarget_mc);
_global.Selection.setFocus(null);
target_mc.focusEnabled = focusEnabledCheck;
}
function startExamineClips(sTarget_mc, iType) {
var target_mc = eval (sTarget_mc);
var mc;
if ((iType == 5) || (iType == 3)) {
} else if (iType == 3) {
} else if (iType == 2) {
mc = target_mc;
var colorObj = highlightColor.getTransform();
var myColorTransform;
if (colorObj && (colorObj.rb == 81)) {
myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
com.blitzagency.xray.DragableMovieClip.remove(target_mc);
} else {
com.blitzagency.xray.DragableMovieClip.initialize(target_mc);
myColorTransform = {ra:100, rb:81, ga:100, gb:56, ba:100, bb:-57, aa:100, ab:0};
}
highlightColor = new Color(mc);
highlightColor.setTransform(myColorTransform);
}
boundingBox_mc = mc;
}
function stopExamineClips(sTarget_mc, iType) {
var target_mc = eval (sTarget_mc);
highlightColor = new Color(boundingBox_mc);
var myColorTransform = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
highlightColor.setTransform(myColorTransform);
com.blitzagency.xray.DragableMovieClip.remove(target_mc);
}
function updateHistory(target_mc) {
var sTarget_mc = String(eval (target_mc._target));
var obj = new Object();
var propsAry = new Array("_x", "_y");
var aTemp = sTarget_mc.split(".");
aTemp.splice(0, 1);
sTarget_mc = aTemp.join(".");
var x = 0;
while (x < propsAry.length) {
var p = propsAry[x];
var key = ((sTarget_mc + ".") + p);
var o = ((obj[key] = new Object()));
o.prop = p;
o.value = target_mc[p];
o.key = (sTarget_mc + ".") + p;
o.sExecute = (((sTarget_mc + ".") + p) + " = ") + target_mc[p];
x++;
}
var bSent = send("_xray_conn", "updateHistory", obj);
}
function allowDomain(sendingDomain) {
return(true);
}
function onStatus(infoObject) {
switch (infoObject.level) {
case "status" :
break;
case "error" :
}
}
function initConnection() {
fpsMeter = com.blitzagency.xray.FPSMeter.getInstance();
isConnected = connect("_xray_remote_conn");
return(isConnected);
}
}
Symbol 15 MovieClip [__Packages.com.blitzagency.xray.XrayTrace] Frame 0
class com.blitzagency.xray.XrayTrace
{
var _recursionCount, _sViewInfo, _sViewInfoClean, _queInterval, sendSI, _separator, sendAry, dispatchEvent, iViewColCount;
function XrayTrace () {
com.blitzagency.events.GDispatcher.initialize(this);
separator = (" :: ");
_recursionCount = 0.003;
}
function get sViewInfo() {
return(_sViewInfo);
}
function set sViewInfo(newValue) {
_sViewInfo = newValue;
//return(sViewInfo);
}
function get sViewInfoClean() {
return(_sViewInfoClean);
}
function set sViewInfoClean(newValue) {
_sViewInfoClean = newValue;
//return(sViewInfoClean);
}
function get queInterval() {
return(_queInterval);
}
function set queInterval(newValue) {
_queInterval = newValue;
clearInterval(sendSI);
sendSI = setInterval(this, "sendData", newValue);
//return(queInterval);
}
function get separator() {
return(_separator);
}
function set separator(newValue) {
_separator = newValue;
//return(separator);
}
static function getInstance() {
if (_instance == null) {
_instance = new com.blitzagency.xray.XrayTrace();
}
return(_instance);
}
function sendData() {
var _local2 = sendAry.shift();
if (_local2) {
dispatchEvent({type:"onSendData", info:_local2.sViewInfo, last:_local2.bLast});
}
}
function examine(obj) {
var _local6 = "";
var _local7 = "";
var _local5 = 0;
while (_local5 < iViewColCount) {
_local6 = _local6 + " ";
_local7 = _local7 + " ";
_local5++;
}
if (obj.__recursionCheck == null) {
obj.prototype.getRecursionChecked = function () {
};
obj.prototype.setRecursionChecked = function (value) {
};
obj.prototype.addProperty("__recursionCheck", obj.prototype.getRecursionChecked, obj.prototype.setRecursionChecked);
obj.__recursionCheck = com.blitzagency.xray.Xray.recursionControl;
_global.ASSetPropFlags(obj, ["__recursionCheck", "getRecursionChecked", "setRecursionChecked"], 1, true);
}
if (Math.floor(obj.__recursionCheck) != Math.floor(com.blitzagency.xray.Xray.recursionControl)) {
obj.__recursionCheck = com.blitzagency.xray.Xray.recursionControl;
}
for (var _local8 in obj) {
var _local4 = false;
if ((_local8 != "getRecursionChecked") && (_local8 != "__recursionCheck")) {
sViewInfo = sViewInfo + ((((((_local6 + "<font size=\"12\" color=\"#0000FF\">") + _local8) + "</font>") + " = ") + obj[_local8]) + newline);
sViewInfoClean = sViewInfoClean + ((((_local7 + _local8) + " = ") + obj[_local8]) + newline);
}
if (typeof(obj[_local8]) == "object") {
if ((Math.floor(obj[_local8].__recursionCheck) != Math.floor(com.blitzagency.xray.Xray.recursionControl)) || (obj[_local8].__recursionCheck < (com.blitzagency.xray.Xray.recursionControl + _recursionCount))) {
if (Math.floor(obj[_local8].__recursionCheck) == Math.floor(com.blitzagency.xray.Xray.recursionControl)) {
obj[_local8].__recursionCheck = obj[_local8].__recursionCheck + 0.001;
}
if ((obj[_local8].__recursionCheck < (com.blitzagency.xray.Xray.recursionControl + _recursionCount)) || (obj[_local8].__recursionCheck == undefined)) {
iViewColCount = iViewColCount + 4;
_local4 = examine(obj[_local8]);
if (!_local4) {
return(true);
}
}
}
}
}
iViewColCount = iViewColCount - 4;
sViewInfo = sViewInfo + newline;
sViewInfoClean = sViewInfoClean + newline;
return(true);
}
function trace() {
sViewInfo = ("");
sViewInfoClean = ("");
var _local4 = 0;
while (_local4 < arguments.length) {
if (typeof(arguments[_local4]) == "object") {
sViewInfo = sViewInfo + newline;
sViewInfoClean = sViewInfoClean + newline;
iViewColCount = 2;
dispatchEvent({type:"onStatus", code:"Trace.object"});
com.blitzagency.xray.Xray.recursionControl = com.blitzagency.xray.Xray.recursionControl + 1;
examine(arguments[_local4]);
} else if (_local4 > 0) {
sViewInfo = sViewInfo + (arguments[_local4] + " :: ");
sViewInfoClean = sViewInfoClean + (arguments[_local4] + " :: ");
}
_local4++;
}
if (sViewInfo.substring(sViewInfo.length - 4, sViewInfo.length) == " :: ") {
sViewInfo = (sViewInfo.substring(0, sViewInfo.length - 4));
}
if (sViewInfoClean.substring(sViewInfoClean.length - 4, sViewInfoClean.length) == " :: ") {
sViewInfoClean = (sViewInfoClean.substring(0, sViewInfoClean.length - 4));
}
var _local7 = (((("(" + getTimer()) + ") ") + arguments[0]) + ": ") + sViewInfoClean;
if (com.blitzagency.xray.Xray.lc_info) {
if (_local7 != undefined) {
if (_local7.length > 5000) {
_local4 = 0;
while (_local4 < _local7.length) {
var _local5 = _local7.substring(_local4, _local4 + 5000);
var _local8 = (((_local4 + 5000) >= _local7.length) ? true : false);
sendAry.push({sViewInfo:_local5, bLast:_local8});
_local4 = _local4 + 5000;
}
} else {
sendAry.push({sViewInfo:_local7, bLast:true});
}
}
}
_global.trace((((("(" + getTimer()) + ") ") + arguments[0]) + ": ") + sViewInfoClean);
dispatchEvent({type:"onTrace", sInfo:_local7});
if ((com.blitzagency.xray.Xray.lc_info && (!queInterval)) && (!_global.isLivePreview)) {
queInterval = (50);
sendAry = new Array();
}
return(_local7);
}
static var _instance = null;
}
Symbol 16 MovieClip [__Packages.com.blitzagency.xray.LoggerConnection] Frame 0
class com.blitzagency.xray.LoggerConnection extends LocalConnection
{
var send, xrayTrace, isConnected, connect;
function LoggerConnection () {
super();
com.blitzagency.events.GDispatcher.initialize(this);
}
function setViewInfo(obj) {
var _local2 = send("_xray_view_conn", "setViewInfo", obj.info, obj.last);
}
function getTraceValue(traceValue) {
var sInfo = xrayTrace.trace("getTraceValue", eval (traceValue));
}
function allowDomain(sendingDomain) {
return(true);
}
function onStatus(infoObject) {
switch (infoObject.level) {
case "status" :
break;
case "error" :
}
}
function initConnection() {
xrayTrace = com.blitzagency.xray.XrayTrace.getInstance();
xrayTrace.addEventListener("onSendData", com.blitzagency.util.Delegate.create(this, setViewInfo));
isConnected = connect("_xray_view_remote_conn");
return(isConnected);
}
}
Symbol 17 MovieClip [__Packages.com.blitzagency.util.PointConverter] Frame 0
class com.blitzagency.util.PointConverter
{
function PointConverter () {
mx.events.EventDispatcher.initialize(this);
_global.localToLocal = function () {
com.blitzagency.util.PointConverter.localToLocal.apply(com.blitzagency.util.PointConverter, arguments);
};
}
static function getInstance() {
if (_instance == null) {
_instance = new com.blitzagency.util.PointConverter();
}
return(_instance);
}
static function localToLocal(from, to) {
var _local1 = {x:0, y:0};
from.localToGlobal(_local1);
to.globalToLocal(_local1);
return(_local1);
}
static var _instance = null;
}
Symbol 18 MovieClip [__Packages.com.blitzagency.xray.FunctionName] Frame 0
class com.blitzagency.xray.FunctionName
{
var dispatchEvent;
function FunctionName () {
com.blitzagency.events.GDispatcher.initialize(this);
}
static function getInstance() {
if (_instance == null) {
_instance = new com.blitzagency.xray.FunctionName();
}
return(_instance);
}
function traceFunction(ary, obj) {
_global.ASSetPropFlags(obj, null, 0, true);
for (var _local7 in obj) {
if ((typeof(obj[_local7]) == "function") && (obj[_local7] == ary.callee)) {
_global.tt(((("Function called :: " + _local7) + "\ntarget :: ") + obj) + "\narguments", ary);
dispatchEvent({type:"onTraceFunction", functionName:_local7});
return(_local7);
}
}
_global.ASSetPropFlags(obj, null, 1, true);
}
static var _instance = null;
}
Symbol 54 Button
on (press) {
gotoAndStop ("juego");
}
Symbol 58 Button
on (press) {
gotoAndStop ("instrucciones");
}
Symbol 96 MovieClip Frame 3
stop();
Symbol 96 MovieClip Frame 4
stop();
Symbol 96 MovieClip Frame 14
this.ref.del();
stop();
Symbol 97 MovieClip Frame 3
stop();
Symbol 97 MovieClip Frame 4
stop();
Symbol 97 MovieClip Frame 14
this.ref.del();
stop();
Symbol 101 MovieClip Frame 3
stop();
Symbol 101 MovieClip Frame 4
stop();
Symbol 101 MovieClip Frame 14
this.ref.del();
stop();
Symbol 105 MovieClip Frame 3
stop();
Symbol 105 MovieClip Frame 4
stop();
Symbol 105 MovieClip Frame 14
this.ref.del();
stop();
Symbol 109 MovieClip Frame 3
stop();
Symbol 109 MovieClip Frame 4
stop();
Symbol 109 MovieClip Frame 14
this.ref.del();
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 54
_root.gotoAndStop("final");
stop();
Symbol 116 MovieClip Frame 35
this.removeMovieClip();
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
play();
Symbol 121 MovieClip Frame 45
this.exec();
Symbol 144 Button
on (press) {
getURL ("http://www.nix.com.mx/juegos/rainbowcollect.php");
}