Frame 4
stop();
Frame 5
this.gotoAndPlay("Intro");
Frame 6
this.gotoAndPlay("Intro");
Frame 12
Frame 20
stop();
Frame 30
gotoAndStop ("game");
Frame 31
gotoAndStop ("game");
Instance of Symbol 4 MovieClip in Symbol 7 MovieClip Frame 1
onClipEvent (load) {
kbps = 0;
timer = new Date();
bprev = _root.getBytesLoaded();
bytestotal = _root.getBytesTotal();
bytesloaded = bprev;
bytessum = bytesloaded;
favg = 0;
}
onClipEvent (enterFrame) {
bytesloaded = _root.getBytesLoaded();
bprev = bytesloaded;
_xscale = (100 * (bytesloaded / bytestotal));
if (_xscale < 100) {
} else {
_root.play();
}
var currtime = new Date();
if ((currtime - timer) > 1000) {
var tdelta = ((currtime - timer) / 1000);
timer = currtime;
favg = ((bytesloaded - bytessum) * 1) / tdelta;
bytessum = bytesloaded;
}
_parent.loadtext = ("Loading... " + (Math.floor(_xscale * 10) / 10)) + "%";
_parent.kbtext = ((Math.floor(bytesloaded / 1024) + "//") + Math.ceil(bytestotal / 1024)) + " kB";
_parent.kbpstext = (Math.floor(favg / 100) / 10) + "kBps";
}
Symbol 43 MovieClip [__Packages.Collision_cbox] Frame 0
class Collision_cbox extends MovieClip
{
function Collision_cbox () {
super();
}
}
Symbol 44 MovieClip [__Packages.Collision_abox] Frame 0
class Collision_abox extends MovieClip
{
function Collision_abox () {
super();
}
}
Symbol 45 MovieClip [__Packages.Collision_pbox] Frame 0
class Collision_pbox extends MovieClip
{
function Collision_pbox () {
super();
}
}
Symbol 46 MovieClip [__Packages.gfSys] Frame 0
class gfSys extends MovieClip
{
static var gfn, _mc_self, _input_raw_mouse_x, _input_raw_mouse_y, _input_raw_mouse_dx, _input_raw_mouse_dy, _input_raw_mouse_down, _input_raw_mouse_wheel, _timer_seconds, _timer_seconds_ticks, _xml_attach_db, _input_raw_keys, _time_fps;
var _game_width, _game_height, _xmouse, _ymouse, _game_mouse_listener, _game_bg_color_r, _game_bg_color_g, _game_bg_color_b, opaqueBackground, _time_current, _time_previous, _time_delta, _time_total, _time_increment, _xml_attach_db_dump, _xml_attach_db_trace, _xml_attach_db_output, _xml_attach_track_names, onEnterFrame, stop;
function gfSys () {
super();
gfn = new gfFlashUtil();
_mc_self = this;
_game_width = Stage.width;
_game_height = Stage.height;
_input_raw_mouse_x = _xmouse;
_input_raw_mouse_y = _ymouse;
_input_raw_mouse_dx = 0;
_input_raw_mouse_dy = 0;
_input_raw_mouse_down = 0;
_input_raw_mouse_wheel = 0;
_game_mouse_listener = new Object();
_game_mouse_listener.onMouseMove = function () {
var _local2 = gfSys._mc_self._xmouse;
var _local1 = gfSys._mc_self._ymouse;
gfSys._input_raw_mouse_dx = _local2 - gfSys._input_raw_mouse_x;
gfSys._input_raw_mouse_dy = _local1 - gfSys._input_raw_mouse_y;
gfSys._input_raw_mouse_x = _local2;
gfSys._input_raw_mouse_y = _local1;
};
_game_mouse_listener.onMouseDown = function () {
gfSys._input_raw_mouse_down = gfSys._input_raw_mouse_down + 1;
};
_game_mouse_listener.onMouseUp = function () {
gfSys._input_raw_mouse_down = 0;
};
_game_mouse_listener.onMouseWheel = function (delta) {
gfSys._input_raw_mouse_wheel = gfSys._input_raw_mouse_wheel + delta;
};
Mouse.addListener(_game_mouse_listener);
_game_bg_color_r = 0;
_game_bg_color_g = 0;
_game_bg_color_b = 0;
Stage.align = "TL";
Stage.scaleMode = "showAll";
Stage.showMenu = true;
Stage.height;
Stage.width;
opaqueBackground = gfn.RGBToBackgroundColor(0, 0, 0);
if (_timer_seconds == undefined) {
_timer_seconds = setInterval(_timer_second_callback, 1000);
}
_timer_seconds_ticks = 0;
_time_current = getTimer();
_time_previous = _time_current;
_time_delta = 0;
_time_total = 0;
_time_increment = 20;
_xml_attach_db = new Map();
_xml_attach_db_dump = 0;
_xml_attach_db_trace = 0;
_xml_attach_db_output = "";
_xml_attach_track_names = new Map();
_xml_attach_track_names.abox = undefined;
_xml_attach_track_names.cbox = undefined;
_xml_attach_track_names.pbox = undefined;
_xml_attach_db_dump = 0;
_xml_attach_db_trace = 0;
_xml_attach_db.mcActor_Creature_Debug = new Array(Object({pbox:Object({yMax:16, xMax:16, yMin:-16, xMin:-16, _alpha:100, _yscale:100, _xscale:100, _y:0, _x:0}), cbox_body:Object({yMax:12, xMax:12, yMin:-12, xMin:-12, _alpha:100, _yscale:75, _xscale:75, _y:0, _x:0}), _frame:1}), Object({_frame:5, pbox:Object({yMax:16, xMax:16, yMin:-16, xMin:-16, _alpha:100, _yscale:100, _xscale:100, _y:0, _x:0}), cbox_body:Object({yMax:12, xMax:12, yMin:-12, xMin:-12, _alpha:100, _yscale:75, _xscale:75, _y:0, _x:0}), anim_start:"idle"}), Object({_frame:25, pbox:Object({yMax:16, xMax:16, yMin:-16, xMin:-16, _alpha:100, _yscale:100, _xscale:100, _y:0, _x:0}), cbox_body:Object({yMax:12, xMax:12, yMin:-12, xMin:-12, _alpha:100, _yscale:75, _xscale:75, _y:0, _x:0}), anim_end:1}));
_xml_attach_db.mcActor_Creature_Tyrannosoreass = new Array(Object({_frame:1}));
if (_xml_attach_db_trace) {
for (var _local5 in _xml_attach_db) {
trace(_local5);
var _local3 = _xml_attach_db[_local5];
for (var _local4 in _local3) {
trace((("\t" + _local4) + " : ") + gfn.FlashToAS(_local3[_local4]));
}
}
}
if (_xml_attach_db_dump) {
onEnterFrame = _main_dump_clips;
} else {
onEnterFrame = _main;
}
(stop());// not popped
}
function setFPS(cfps) {
_time_increment = int(1000 / cfps);
}
function setGameWidth(uw) {
_game_width = uw;
}
function setGameHeight(uh) {
_game_height = uh;
}
function keyWatch(keycode) {
if (!_input_raw_keys.exists(String(keycode))) {
_input_raw_keys[keycode] = 0;
}
}
function keyUnWatch(keycode) {
_input_raw_keys.remove(String(keycode));
}
function keyWatchClear(keycode) {
_input_raw_keys.clear();
}
function key(keycode) {
if (_input_raw_keys.exists(String(keycode))) {
return(_input_raw_keys[keycode]);
}
return(0);
}
function mouseDown() {
return(_input_raw_mouse_down);
}
function mouseX() {
return(_input_raw_mouse_x);
}
function mouseY() {
return(_input_raw_mouse_y);
}
function mousedX() {
return(_input_raw_mouse_dx);
}
function mousedY() {
return(_input_raw_mouse_dy);
}
function dbExists(keyname) {
return(_xml_attach_db.exists(keyname));
}
function dbGet(keyname) {
if (_xml_attach_db.exists(keyname)) {
return(_xml_attach_db[keyname]);
}
return(null);
}
function dbGetFrameMin(arl, framen) {
return(null);
}
function dbGetFrameMax(arl, framen) {
return(null);
}
function cToLocal(cx, cy) {
}
function cToGlobal(cx, cy) {
}
static function _timer_second_callback() {
_time_fps = _timer_seconds_ticks;
_timer_seconds_ticks = 0;
}
function _main_dump_clips() {
opaqueBackground = gfn.RGBToBackgroundColor(_game_bg_color_r, _game_bg_color_g, _game_bg_color_b);
var _local26 = newline;
var _local41 = true;
var _local25 = new Array();
var _local28 = 0;
for (var _local44 in _xml_attach_db) {
var _local11 = _xml_attach_db[_local44];
if (!_local11.hasOwnProperty("_dump_clip")) {
_local11._dump_map = new Map();
_local11._errors = "";
_local11._max_frame = 1;
_local11._dump_clip = gfn.AttachClip(this, _local44, "_atch_" + _local28, {_x:_local28 * 16, _y:100, _xscale:100, _yscale:100, _frame:1, cacheAsBitmap:false});
if (_local11._dump_clip == null) {
_local11._errors = _local11._errors + (("Invalid attach name " + _local44) + "!");
trace(_local11._errors);
_local25.push(_local44);
} else {
_local11._dump_clip._visible = false;
_local11.gotoAndStop(_local11._max_frame);
_local28 = _local28 + 1;
}
} else {
var _local7 = _local11._dump_clip;
var _local2 = _local7._currentframe;
if (_local11._max_frame >= _local7._totalframes) {
_local25.push(_local44);
} else {
if (_local2 != _local11._max_frame) {
trace(((((("#ERROR; goto Action in " + _local44) + " @ frame ") + _local11._max_frame) + "/") + _local2) + "!");
} else {
var _local10 = new Array();
var _local24 = 0;
for (var _local18 in _local7) {
var _local20 = _local7[_local18];
if (typeof(_local20) == "movieclip") {
if (!_xml_attach_track_names.empty()) {
for (var _local29 in _xml_attach_track_names) {
var _local9 = _local29.length;
var _local3 = 1;
if (_local9 > 0) {
_local3 = 0;
var _local6 = _local9;
if (_local20._name.length < _local6) {
_local6 = _local20._name.length;
}
var _local14 = _local20._name.substr(0, _local6);
_local3 = _local14 == _local29;
}
if (_local3 != 0) {
var _local4 = _xml_attach_track_names[_local29];
var _local5 = 0;
if (_local4 != undefined) {
_local5 = _local20 instanceof _local4;
} else {
_local5 = 1;
}
if (_local5 == 0) {
if (_local4 != undefined) {
trace(((((((("#ERROR in clip " + _local44) + " frame ") + _local2) + " in ") + _local18) + ": Not part of designated class for \"") + _local29) + "\"");
}
}
_local10.push(_local18);
break;
}
}
} else {
_local10.push(_local18);
}
} else {
if (!_local11._dump_map.exists(_local2)) {
_local11._dump_map[_local2] = new Map();
}
_local11._dump_map[_local2][_local18] = _local20;
delete _local7[_local18];
_local24 = _local24 + 1;
}
}
for (var _local32 in _local10) {
var _local18 = _local10[_local32];
var _local20 = _local7[_local18];
var _local23 = gfn.ClipToClipState(_local20, 1);
var _local12 = (_local24 != 0) || (_local2 == 1);
if (_local12 == 0) {
}
if (_local12 == 0) {
}
if (_local12 != 0) {
if (!_local11._dump_map.exists(_local2)) {
_local11._dump_map[_local2] = new Map();
}
_local11._dump_map[_local2][_local18] = _local23;
}
}
}
_local11._max_frame = _local11._max_frame + 1;
_local7.gotoAndStop(_local11._max_frame);
}
}
_local41 = false;
}
if (_local25.length > 0) {
for (var _local42 in _local25) {
var _local21 = _local25[_local42];
var _local11 = _xml_attach_db[_local21];
if (_local11._dump_clip == null) {
}
var _local39 = new Map();
var _local13 = new Array();
for (var _local38 in _local11._dump_map) {
_local13.push(Number(_local38));
}
_local13.sort(null, Array.NUMERIC);
_local13.reverse();
var _local22 = 0;
var _local17 = "new Array( ";
var _local15 = 0;
var _local27 = _local13.length;
while (_local15 < _local27) {
var _local8 = _local13[_local15];
var _local19 = _local11._dump_map[_local8];
trace((Number(_local8) + " ") + _local8);
_local19._frame = Number(_local8);
if (_local22) {
_local17 = _local17 + ",";
}
_local17 = _local17 + (" " + gfn.FlashToAS(_local19));
_local22 = _local22 + 1;
_local15 = _local15 + 1;
}
_local17 = _local17 + " )";
_xml_attach_db_output = _xml_attach_db_output + ((((("_xml_attach_db[ \"" + _local21) + "\" ] = ") + _local17) + ";") + _local26);
_xml_attach_db.remove(_local21);
if (_local11._dump_clip != null) {
gfn.RemoveClip(_local11._dump_clip);
_local11._dump_clip = null;
}
trace(_local21 + " done.");
}
}
if (_local41) {
var _local16 = "";
_local16 = _local16 + ("//" + _local26);
_local16 = _local16 + "// This file was auto-matically generated [ UTC: ";
var _local40 = new Date();
_local16 = _local16 + (_local40.getUTCFullYear() + "-");
_local16 = _local16 + (_local40.getUTCMonth() + "-");
_local16 = _local16 + (_local40.getUTCDate() + " ");
_local16 = _local16 + (_local40.getUTCHours() + ":");
_local16 = _local16 + (_local40.getUTCMinutes() + ":");
_local16 = _local16 + (_local40.getUTCSeconds() + ".");
_local16 = _local16 + (_local40.getUTCMilliseconds() + " ");
_local16 = _local16 + (" ]" + _local26);
_local16 = _local16 + ("//" + _local26);
_local16 = _local16 + ("//\tExactly like the blender version of the same thing," + _local26);
_local16 = _local16 + ("//\t1. Load in a list of names and their empty or created data; example: _xml_attach_db[ \"David\" ] = new Object()" + _local26);
_local16 = _local16 + ("//\t2. Request a \"AttatchDump\" -> Takes a while, will be slow." + _local26);
_local16 = _local16 + ("//\t3. Paste generated file into this file, data is automatically copied to clipboard." + _local26);
_local16 = _local16 + ("//" + _local26);
_local16 = _local16 + ("_xml_attach_track_names = new Map();" + _local26);
for (var _local43 in _xml_attach_track_names) {
_local16 = _local16 + "_xml_attach_track_names[\"";
_local16 = _local16 + String(_local43);
var _local30 = _xml_attach_track_names[_local43];
_local16 = _local16 + ("\"] = " + String(_local30));
_local16 = _local16 + (";" + _local26);
}
_local16 = _local16 + _local26;
_local16 = _local16 + ((("_xml_attach_db_dump = " + _xml_attach_db_dump) + ";\t\t//Set to true to re-dump media (only do on changing any flash clip, slow)") + _local26);
_local16 = _local16 + ((("_xml_attach_db_trace = " + _xml_attach_db_trace) + ";\t\t//Set to true to see the trace output of this file, in flash") + _local26);
_local16 = _local16 + _local26;
_xml_attach_db_output = _local16 + _xml_attach_db_output;
gfn.ClipboardSave(_xml_attach_db_output);
trace("Done processing all attach clips.");
onEnterFrame = null;
}
}
function _main() {
_timer_seconds_ticks = _timer_seconds_ticks + 1;
_time_previous = _time_current;
_time_current = getTimer();
_time_delta = _time_current - _time_previous;
_time_total = _time_total + _time_delta;
if (_time_total >= _time_increment) {
_time_total = _time_total - _time_increment;
if (_time_total >= _time_increment) {
_time_total = _time_increment;
}
for (var _local3 in _input_raw_keys) {
var _local2 = _input_raw_keys[_local3];
if (Key.isDown(Number(_local3))) {
if (_local2 == 0) {
}
_local2 = _local2 + 1;
} else {
if (_local2 != 0) {
}
_local2 = 0;
}
}
_run();
opaqueBackground = gfn.RGBToBackgroundColor(_game_bg_color_r, _game_bg_color_g, _game_bg_color_b);
_flashit();
} else {
opaqueBackground = gfn.RGBToBackgroundColor(_game_bg_color_r, _game_bg_color_g, _game_bg_color_b);
_flashinter();
}
}
function _run() {
}
function _flashit() {
}
function _flashinter() {
}
}
Symbol 47 MovieClip [__Packages.Map] Frame 0
class Map extends Object
{
var hasOwnProperty;
function Map () {
super();
}
function __resolve(inputstr) {
trace("#ERROR - Map does not have key: " + inputstr);
}
function exists(key) {
return(hasOwnProperty(key));
}
function insert(key, value) {
this[key] = value;
}
function remove(key) {
delete this[key];
}
function count() {
var _local2 = 0;
for (var _local3 in this) {
_local2++;
}
return(_local2);
}
function empty() {
for (var _local2 in this) {
return(false);
}
return(true);
}
function first_key() {
for (var _local2 in this) {
return(_local2);
}
return(null);
}
function remove_first_key() {
var _local2 = null;
for (var _local3 in this) {
_local2 = _local3;
break;
}
remove(_local2);
}
function last_key() {
var _local2 = null;
for (var _local3 in this) {
_local2 = _local3;
}
return(_local2);
}
function insertSafe(key, value) {
if (!hasOwnProperty(key)) {
this[key] = value;
return(true);
}
return(false);
}
function removeSafe(key) {
if (hasOwnProperty(key)) {
delete this[key];
return(true);
}
return(false);
}
function clear() {
for (var _local2 in this) {
delete this[_local2];
}
}
function debugPrint() {
var _local2 = "Map:\n";
for (var _local3 in this) {
_local2 = _local2 + (((("\t" + _local3) + " -> ") + this[_local3]) + newline);
}
return(_local2);
}
function getFirstMissingKey(key) {
var _local2 = Number(key);
var _local4 = null;
for (var _local3 in this) {
if (Number(_local3) != _local2) {
break;
}
_local2 = _local2 + 1;
}
return(_local2);
}
}
Symbol 48 MovieClip [__Packages.gfFlashUtil] Frame 0
class gfFlashUtil extends MovieClip
{
static var _keycode_code_to_name, _keycode_name_to_code, _shared_object, _curr_xml;
function gfFlashUtil () {
super();
_keycode_code_to_name = new Map();
_keycode_name_to_code = new Map();
var _local2 = 65;
var _local3 = "A";
while (_local2 <= 90) {
_keycode_code_to_name[_local2] = _local3;
_local3[0] = chr(ord(_local3[0]) + 1);
_local2++;
}
_local2 = 48;
_local3 = "0";
while (_local2 <= 56) {
_keycode_code_to_name[_local2] = _local3;
_local3[0] = chr(ord(_local3[0]) + 1);
_local2++;
}
_keycode_code_to_name[8] = "Backspace";
_keycode_code_to_name[20] = "Capslock";
_keycode_code_to_name[17] = "Control";
_keycode_code_to_name[46] = "Delete";
_keycode_code_to_name[40] = "Down";
_keycode_code_to_name[35] = "End";
_keycode_code_to_name[13] = "Enter";
_keycode_code_to_name[27] = "Escape";
_keycode_code_to_name[36] = "Home";
_keycode_code_to_name[45] = "Insert";
_keycode_code_to_name[37] = "Left";
_keycode_code_to_name[34] = "PageDown";
_keycode_code_to_name[33] = "PageUp";
_keycode_code_to_name[39] = "Right";
_keycode_code_to_name[16] = "Shift";
_keycode_code_to_name[32] = "Space";
_keycode_code_to_name[9] = "Tab";
_keycode_code_to_name[38] = "Up";
_keycode_code_to_name[96] = "Num 0";
_keycode_code_to_name[97] = "Num 1";
_keycode_code_to_name[98] = "Num 2";
_keycode_code_to_name[99] = "Num 3";
_keycode_code_to_name[100] = "Num 4";
_keycode_code_to_name[101] = "Num 5";
_keycode_code_to_name[102] = "Num 6";
_keycode_code_to_name[103] = "Num 7";
_keycode_code_to_name[104] = "Num 8";
_keycode_code_to_name[105] = "Num 9";
_keycode_code_to_name[106] = "Num Multiply";
_keycode_code_to_name[107] = "Num Add";
_keycode_code_to_name[109] = "Num Subtract";
_keycode_code_to_name[110] = "Num Decimal";
_keycode_code_to_name[111] = "Num Divide";
_keycode_code_to_name[112] = "F1";
_keycode_code_to_name[113] = "F2";
_keycode_code_to_name[114] = "F3";
_keycode_code_to_name[115] = "F4";
_keycode_code_to_name[116] = "F5";
_keycode_code_to_name[117] = "F6";
_keycode_code_to_name[118] = "F7";
_keycode_code_to_name[119] = "F8";
_keycode_code_to_name[120] = "F9";
_keycode_code_to_name[122] = "F11";
_keycode_code_to_name[123] = "F12";
_keycode_code_to_name[124] = "F13";
_keycode_code_to_name[125] = "F14";
_keycode_code_to_name[126] = "F15";
_keycode_code_to_name[144] = "Num Lock";
_keycode_code_to_name[145] = "Scroll Lock";
_keycode_code_to_name[19] = "Pause";
_keycode_code_to_name[186] = ";";
_keycode_code_to_name[187] = "=";
_keycode_code_to_name[189] = "-";
_keycode_code_to_name[191] = "/";
_keycode_code_to_name[192] = "`";
_keycode_code_to_name[219] = "[";
_keycode_code_to_name[220] = "\\";
_keycode_code_to_name[221] = "]";
_keycode_code_to_name[222] = "'";
_keycode_code_to_name[188] = ",";
_keycode_code_to_name[190] = ".";
_keycode_code_to_name[191] = "/";
for (var _local5 in _keycode_code_to_name) {
var _local4 = _keycode_code_to_name[_local5];
_keycode_name_to_code[_local4] = _local5;
}
}
function FlashToAS(V, outstr) {
var _local5 = typeof(V);
if (outstr == undefined) {
outstr = "";
}
if (_local5 == "string") {
outstr = outstr + (("\"" + V) + "\"");
} else if (_local5 == "number") {
outstr = outstr + String(V);
} else if (_local5 == "boolean") {
outstr = outstr + String(V);
} else if (_local5 == "object") {
outstr = outstr + "Object( {";
var _local4 = 0;
for (var _local6 in V) {
outstr = outstr + (((" " + String(_local6)) + ":") + FlashToAS(V[_local6]));
outstr = outstr + ",";
_local4 = 1;
}
if (_local4 != 0) {
outstr = outstr.substr(0, outstr.length - 1);
}
outstr = outstr + " } )";
} else {
outstr = ("/*" + outstr) + "*/";
}
return(outstr);
}
function CalcAngle(xa, ya, xb, yb) {
return(Math.atan2(yb - ya, xb - xa));
}
function KeycodeToString(code) {
var _local1 = "";
if (_keycode_code_to_name.exists(code)) {
_local1 = _keycode_code_to_name[code];
}
return(_local1);
}
function StringToKeycode(stringy) {
var _local1 = 0;
if (_keycode_name_to_code.exists(stringy)) {
_local1 = _keycode_name_to_code[stringy];
}
return(_local1);
}
function AttachClip(usrparent, refname, assignedname, startobj) {
if (!usrparent.hasOwnProperty("__reusedm")) {
usrparent.__reusedm = new DepthReuseSet();
usrparent.__reusedm.init(usrparent);
}
var _local4 = usrparent.__reusedm.enqueue();
var _local6 = "mc_" + _local4;
var _local1 = usrparent.attachMovie(String(refname), String(_local6), int(_local4), startobj);
if (typeof(_local1) != "movieclip") {
return(null);
}
if (startobj.hasOwnProperty("_frame")) {
var _local5 = startobj._frame;
if (typeof(_local5) == "number") {
_local1.gotoAndStop(int(startobj._frame));
} else {
_local1.gotoAndStop(_local5);
}
}
return(_local1);
}
function RemoveClip(targetclip) {
var _local1 = targetclip._parent;
if (_local1.hasOwnProperty("__reusedm")) {
_local1.__reusedm.dequeue(targetclip.getDepth());
}
targetclip.removeMovieClip();
}
function GetClipBounds(targetclip, depth) {
var _local2 = targetclip;
var _local3 = 0;
while (_local3 < depth) {
_local2 = _local2._parent;
if (_local2._parent == _root) {
break;
}
_local3 = _local3 + 1;
}
return(targetclip.getBounds(_local2));
}
function ClipToClipState(targetclip, depth) {
var _local2 = new ClipState();
_local2._x = targetclip._x;
_local2._y = targetclip._y;
_local2._xscale = targetclip._xscale;
_local2._yscale = targetclip._yscale;
_local2._alpha = targetclip._alpha;
var _local4 = GetClipBounds(targetclip, depth);
_local2.xMin = _local4.xMin;
_local2.yMin = _local4.yMin;
_local2.xMax = _local4.xMax;
_local2.yMax = _local4.yMax;
return(_local2);
}
function ClipStateToClip(obj, targetclip) {
targetclip._x = obj._x;
targetclip._y = obj._y;
targetclip._xscale = obj._xscale;
targetclip._yscale = obj._yscale;
targetclip._alpha = obj._alpha;
}
function ClipStateInterpolate(sta1, sta2, factor) {
var _local2 = new ClipState();
_local2._x = sta1._x + (factor * (sta2._x - sta1._x));
_local2._y = sta1._y + (factor * (sta2._y - sta1._y));
_local2._xscale = sta1._xscale + (factor * (sta2._xscale - sta1._xscale));
_local2._yscale = sta1._yscale + (factor * (sta2._yscale - sta1._yscale));
_local2._alpha = sta1._alpha + (factor * (sta2._alpha - sta1._alpha));
_local2.xMin = sta1.xMin + (factor * (sta2.xMin - sta1.xMin));
_local2.yMin = sta1.yMin + (factor * (sta2.yMin - sta1.yMin));
_local2.xMax = sta1.xMax + (factor * (sta2.xMax - sta1.xMax));
_local2.yMax = sta1.yMax + (factor * (sta2.yMax - sta1.yMax));
return(_local2);
}
function Colorize(obj, r, g, b, al) {
var _local2 = new flash.geom.Transform(obj);
var _local1 = new flash.geom.ColorTransform(r, g, b, al, 0, 0, 0, 0);
_local2.colorTransform = _local1;
return(_local1);
}
function HSVtoRGB(h, s, v) {
var _local1 = new Object();
var _local5 = h * 6;
var _local8 = int(_local5);
_local5 = _local5 - _local8;
var _local4 = v * s;
var _local3 = v - _local4;
_local4 = _local4 * _local5;
var _local7 = v - _local4;
var _local6 = _local3 + _local4;
switch (_local8) {
case 0 :
_local1.r = v;
_local1.g = _local6;
_local1.b = _local3;
break;
case 1 :
_local1.r = _local7;
_local1.g = v;
_local1.b = _local3;
break;
case 2 :
_local1.r = _local3;
_local1.g = v;
_local1.b = _local6;
break;
case 3 :
_local1.r = _local3;
_local1.g = _local7;
_local1.b = v;
break;
case 4 :
_local1.r = _local6;
_local1.g = _local3;
_local1.b = v;
break;
case 5 :
default :
_local1.r = v;
_local1.g = _local3;
_local1.b = _local7;
}
return(_local1);
}
function RGBToBackgroundColor(r, g, b) {
return((((int(r) & 255) << 16) | ((int(g) & 255) << 8)) | (int(b) & 255));
}
function LFSR_next(seed) {
var _local1 = 2952790015;
return((seed >> 1) ^ ((-(seed & 1)) & _local1));
}
function LFSR_prev(seed) {
var _local2 = 2952790015;
var _local1 = seed >> 31;
return(_local1 | ((seed ^ ((-_local1) & _local2)) << 1));
}
function LFSR_get(seed) {
return(Number(int(int(seed) & 8388607)) / Number(8388608));
}
function TraceFilters(mc) {
var _local2 = mc.filters;
for (var _local4 in _local2) {
var _local1 = _local2[_local4];
trace((("Filter: " + typeof(_local1)) + " ") + _local4);
for (var _local3 in _local1) {
trace((("\t" + _local3) + ": ") + _local1[_local3]);
}
}
}
function MakeAbove(objA, objB) {
var _local2 = objA.getDepth();
var _local1 = objB.getDepth();
if (_local2 < _local1) {
objA.swapDepths(objB);
return(1);
}
return(0);
}
function MakeBelow(objA, objB) {
var _local2 = objA.getDepth();
var _local1 = objB.getDepth();
if (_local2 > _local1) {
objA.swapDepths(objB);
return(1);
}
return(0);
}
function ScaleToFit(mc, mp, xsize, ysize) {
var _local2 = mc.getBounds(mp);
var _local4 = (mc._xscale * xsize) / (100 * (_local2.xMax - _local2.xMin));
var _local3 = (mc._yscale * ysize) / (100 * (_local2.yMax - _local2.yMin));
if (_local4 < _local3) {
mc._xscale = 100 * _local4;
mc._yscale = 100 * _local4;
} else {
mc._xscale = 100 * _local3;
mc._yscale = 100 * _local3;
}
}
function ScaleToFill(mc, mp, xsize, ysize) {
var _local1 = mc.getBounds(mp);
var _local4 = (mc._xscale * xsize) / (100 * (_local1.xMax - _local1.xMin));
var _local3 = (mc._yscale * ysize) / (100 * (_local1.yMax - _local1.yMin));
mc._xscale = 100 * _local4;
mc._yscale = 100 * _local3;
}
function CookieSave(filename, label, datas) {
_shared_object = SharedObject.getLocal(filename, "/");
if (_shared_object == null) {
return(0);
}
_shared_object.data[label] = datas;
return(1);
}
function CookieLoad(filename, label) {
_shared_object = SharedObject.getLocal(filename, "/");
if (_shared_object == null) {
return("");
}
if (_shared_object.data.hasOwnProperty(label)) {
return(_shared_object.data[label]);
}
return("");
}
function ClipboardSave(datas) {
System.setClipboard(datas);
}
function XMLUserBegin(UserObject) {
}
function XMLUserData(N, UserObject) {
}
function XMLUserEnd(UserObject) {
}
function XMLUserError(tracestring, UserObject) {
}
function XMLLoad(filename, userData, userBegin, userEnd, userError) {
if ((userData == undefined) || (userData == null)) {
userData = XMLUserData;
}
if ((userBegin == undefined) || (userBegin == null)) {
userBegin = XMLUserBegin;
}
if ((userEnd == undefined) || (userEnd == null)) {
userEnd = XMLUserEnd;
}
if ((userError == undefined) || (userError == null)) {
userError = XMLUserError;
}
_curr_xml = new XML();
_curr_xml.ignoreWhite = true;
XML.prototype.ignoreWhite = true;
_curr_xml.onHTTPStatus = function (httpStatus) {
var _local1 = gfFlashUtil._curr_xml_object;
_local1.httpStatus = httpStatus;
if (httpStatus < 100) {
_local1.httpStatusType = "flashError";
} else if (httpStatus < 200) {
_local1.httpStatusType = "informational";
} else if (httpStatus < 300) {
_local1.httpStatusType = "successful";
} else if (httpStatus < 400) {
_local1.httpStatusType = "redirection";
} else if (httpStatus < 500) {
_local1.httpStatusType = "clientError";
} else if (httpStatus < 600) {
_local1.httpStatusType = "serverError";
} else {
_local1.httpStatusType = "unknown: " + httpStatus;
}
};
_curr_xml.onLoad = function (success) {
var _local1 = gfFlashUtil._curr_xml_object;
var _local8 = gfFlashUtil._curr_xml;
if (success != 0) {
_local1.userBegin(_local1);
var _local7 = _local8.firstChild;
var _local2 = _local7.firstChild;
while (_local2 != null) {
var _local4 = new XML(String(_local2));
var _local3 = _local4.firstChild;
var _local6 = _local3.attributes;
try {
_local1.userData(_local3, _local1);
} catch(_local) {
if (Error( /* Error999 */
) != null) {
var myError = Error( /* Error999 */
);
_local1.userError("XML: error caught: " + myError, _local1);
} else {
var e = ( /* Error999 */
);
_local1.userError("XML: Unkown error caught: " + e.toString(), _local1);
}
}
_local2 = _local2.nextSibling;
}
if (_local8.status == 0) {
} else {
_local1.userError("XML: XML was loaded successfully, but was unable to be parsed.", _local1);
}
var _local5;
switch (_local8.status) {
case 0 :
_local5 = "No error; parse was completed successfully.";
break;
case -2 :
_local5 = "A CDATA section was not properly terminated.";
break;
case -3 :
_local5 = "The XML declaration was not properly terminated.";
break;
case -4 :
_local5 = "The DOCTYPE declaration was not properly terminated.";
break;
case -5 :
_local5 = "A comment was not properly terminated.";
break;
case -6 :
_local5 = "An XML element was malformed.";
break;
case -7 :
_local5 = "Out of memory.";
break;
case -8 :
_local5 = "An attribute value was not properly terminated.";
break;
case -9 :
_local5 = "A start-tag was not matched with an end-tag.";
break;
case -10 :
_local5 = "An end-tag was encountered without a matching start-tag.";
break;
default :
_local5 = "An unknown error has occurred.";
}
_local1.userError(((("XML: status: " + _local8.status) + " (") + _local5) + ")", _local1);
} else {
_local1.userError(("XML: Unable to load/parse XML. (status: " + _local8.status) + ")", _local1);
}
_local1.userEnd(_local1);
return(0);
};
_curr_xml.load(filename);
return(0);
}
}
Symbol 49 MovieClip [__Packages.DepthReuseSet] Frame 0
class DepthReuseSet extends Object
{
var _values, _unused, _maximum;
function DepthReuseSet () {
super();
_values = new Map();
_unused = new Array();
_maximum = 0;
}
function init(bmc) {
_maximum = bmc.getNextHighestDepth();
}
function enqueue(usrv) {
var _local2;
if (_unused.length > 0) {
_local2 = Number(_unused.pop());
} else {
_maximum = _maximum + 1;
_local2 = _maximum;
}
_values.insert(String(_local2), usrv);
return(_local2);
}
function dequeue(depthv) {
_unused.push(depthv);
_values.remove(String(depthv));
}
}
Symbol 50 MovieClip [__Packages.ClipState] Frame 0
class ClipState extends Object
{
function ClipState () {
super();
}
}
Symbol 51 MovieClip [__Packages.SnakeGame] Frame 0
class SnakeGame extends gfSys
{
var _time_increment, lastclips, mouseDown, mouseX, mouseY;
function SnakeGame () {
super();
_time_increment = 20;
lastclips = new Array();
}
function _run() {
var _local3 = 0;
var _local5 = lastclips.length;
while (_local3 != _local5) {
var _local2 = lastclips[_local3];
_local2._x = _local2._x + _local2._vx;
_local2._y = _local2._y + _local2._vy;
_local3++;
}
var _local7 = new Object();
_local7._x = Math.random() * 960;
_local7._y = Math.random() * 540;
_local7._frame = int(Math.random() * 30) + 1;
var _local8 = gfSys.gfn.AttachClip(this, "mcActor_Creature_Debug", "blammo", _local7);
lastclips.push(_local8);
_local8._vx = (Math.random() * 2) - 1;
_local8._vy = (Math.random() * 2) - 1;
if (mouseDown() != 0) {
var _local6 = new Object();
_local6._x = mouseX();
_local6._y = mouseY();
_local6._frame = int(Math.random() * 30) + 1;
var _local9 = gfSys.gfn.AttachClip(this, "mcActor_Creature_Debug", "mouser", _local6);
_local9.gotoAndPlay("idle");
lastclips.push(_local9);
}
while (lastclips.length > 63) {
var _local4 = lastclips.shift();
gfSys.gfn.RemoveClip(_local4);
}
}
function _flashit() {
}
function _flashinter() {
}
}
Symbol 12 MovieClip [pbox_32] Frame 1
#initclip 12
Object.registerClass("pbox_32", Collision_pbox);
#endinitclip
Symbol 16 MovieClip [cbox_32] Frame 1
#initclip 10
Object.registerClass("cbox_32", Collision_cbox);
#endinitclip
Symbol 19 MovieClip [mcActor_Creature_Debug] Frame 9
anim_start = "idle";
Symbol 19 MovieClip [mcActor_Creature_Debug] Frame 29
anim_end = 1;
Symbol 21 MovieClip [abox_32] Frame 1
#initclip 11
Object.registerClass("abox_32", Collision_abox);
#endinitclip
Symbol 41 MovieClip Frame 1
_parent.stop();
Instance of Symbol 40 MovieClip in Symbol 41 MovieClip Frame 24
/* no clip actions */
Symbol 41 MovieClip Frame 124
_parent.play();
Symbol 41 MovieClip Frame 125
stop();
Symbol 42 MovieClip [game] Frame 1
#initclip 13
Object.registerClass("game", SnakeGame);
#endinitclip