Frame 1
Object.FLEM = function () {
this._listener_array = [];
};
Object.FLEM.prototype.addFLEMListener = function (obj) {
var _local2 = this._listener_array;
var _local3 = false;
var _local1 = _local2.length;
while (_local1--) {
if (_local2[_local1] == obj) {
_local3 = true;
break;
}
}
if (_local3) {
return(false);
}
_local2.unshift(obj);
if (this.sendFLEMEvent == undefined) {
this.sendFLEMEvent = this._sendFLEMEvent;
}
return(true);
};
Object.FLEM.prototype.removeFLEMListener = function (obj) {
var _local3 = obj;
var _local2 = this._listener_array;
var _local1 = _local2.length;
while (_local1--) {
if (_local2[_local1] == _local3) {
_local2.splice(_local1, 1);
break;
}
}
if (_local2.length == 0) {
this.sendFLEMEvent = undefined;
}
};
Object.FLEM.prototype._sendFLEMEvent = function (func_str, argObj) {
var _local3 = func_str;
var _local2 = this._listener_array;
var _local1 = _local2.length;
while (_local1--) {
if (_local2[_local1] != undefined) {
_local2[_local1][_local3](argObj);
} else {
_local2.splice(_local1, 1);
}
}
};
Object.addStaticFLEM = function (obj) {
var _local1 = obj;
if (_local1._listener_array == undefined) {
_local1._listener_array = [];
_local1._sendFLEMEvent = Object.FLEM.prototype._sendFLEMEvent;
_local1.addFLEMListener = Object.FLEM.prototype.addFLEMListener;
_local1.removeFLEMListener = Object.FLEM.prototype.removeFLEMListener;
}
};
Object.removeStaticFLEM = function (obj) {
var _local1 = obj;
delete _local1._listener_array;
delete _local1._sendFLEMEvent;
delete _local1.addFLEMListener;
delete _local1.removeFLEMListener;
};
Object.prototype.registerFLEM = function (objects, reg) {
var _local2 = objects;
var _local3 = this;
if (_local2.__proto__ == Array.prototype) {
var n = _local2.length;
var _local1 = 0;
while (_local1 < n) {
if (reg == false) {
_local2[_local1].removeFLEMListener(_local3);
} else {
_local2[_local1].addFLEMListener(_local3);
}
_local1++;
}
}
};
ASSetPropFlags(Object.prototype, ["registerFLEM"], 1);
Object.Button = {};
Object.addStaticFLEM(Object.Button);
Object.addStaticFLEM(MovieClip);
Object.addStaticFLEM(Mouse);
Object.addStaticFLEM(Key);
Object.addStaticFlem(Selection);
if (_level0.flemEngine == undefined) {
_level0.flemEngine = this.flemEngine;
if (_level0.flemEngine == undefined) {
}
}
if (typeof(Stage) == "object") {
Stage.showMenu = false;
} else {
fscommand ("showmenu", "false");
}
_quality = "BEST";
_level0.control_src = this;
_level0.control_level = 0;
if (typeof(this._parent) != "movieclip") {
while (eval ("_level" + _level0.control_level) != this) {
_level0.control_level++;
}
} else {
_level0.control_level = -1;
}
MovieClip.addFLEMListener(this);
Mouse.addFLEMListener(this);
Key.addFLEMListener(this);
_visible = false;
maj_ver = $version.split(" ")[1].split(",")[0];
_level0.projector_f6up = maj_ver >= 6;
_level0.control_f6up = typeof(_global) == "object";
if (!_level0.control_f6up) {
_global = {};
}
year = new Date().getFullYear();
_global.copyright = ("\u00A9 Copyright 1998 - " + year) + " Autodemo LLC";
_global.IN_BROWSER = true;
_global.FORCE_CLOSE = false;
_global.DEMO_PLAYING = false;
_global.DEMO_WAS_PLAYING = true;
_global.DEMO_SECTION = 0;
_global.DEMO_SECTION_FRAME = 0;
_global.DEMO_SECTION_COUNT = 0;
_global.DEMO_INFO_OPEN = false;
_global.DEMO_AUDIO = new Sound(_level0.demo_src);
_global.DEMO_SPLASH_DELAY = 2000;
_global.DEMO_SCALE = 100;
_global.DEMO_LOOP = false;
_global.DEMO_MULTI = false;
_global.DEBUG = 0;
_global.SECTION_VALIDATION = true;
_global.SECTION_VALID = false;
_global.VALID_SECTIONS = 0;
_global.CTA_ENABLED = true;
_global.CTA_TIMEOUT = 10000;
_global.MOUSE_MOVING = false;
_global.STEP_BACK_INTERVAL_ID = null;
_global.STEP_BACK_INTERVAL = 3000;
_global.ALLOW_STEP_BACK = false;
_global.TOOLTIP_INTERVAL = 300;
_global.AUDIO_MODE = 1;
_global.DISABLE_TEXTBOX = 0;
_global.USE_RELATIVE_URLS = false;
_global.CONTROL_KEY_MAP = {K32:"toggle_play_pause", K37:"section_reverse", K39:"section_forward", K67:"close", K72:"toggle_help", K73:"toggle_info", K80:"toggle_play_pause", K83:"toggle_audio", K84:"toggle_text_box"};
_global.SCROLL_STYLE = {arrow:{up:17544, down:17544, disabled:15133939}, scrollTrack:{up:15724527, down:13425127}, background:{up:12570849, over:13425127, down:12570849}, selection:{enabled:5412599, disabled:5412599}, borderOuterTop:{up:15133939, over:15133939, down:15133939}, borderOuterRight:{up:15133939, over:15133939, down:15133939}, borderOuterBottom:{up:15133939, over:15133939, down:15133939}, borderOuterLeft:{up:15133939, over:15133939, down:15133939}, borderInnerBottom:{up:12570849, over:13425127, down:12570849}, borderInnerRight:{up:12570849, over:13425127, down:12570849}, borderInnerLeft:{up:12570849, over:13425127, down:12570849}, borderInnerTop:{up:12570849, over:13425127, down:12570849}, thumbBackground:{up:12570849, over:13425127, down:12570849}, thumbBorderOuterTop:{up:15133939, over:15133939, down:15133939}, thumbBorderOuterRight:{up:15133939, over:15133939, down:15133939}, thumbBorderOuterBottom:{up:15133939, over:15133939, down:15133939}, thumbBorderOuterLeft:{up:15133939, over:15133939, down:15133939}, thumbBorderInnerBottom:{up:12570849, over:13425127, down:12570849}, thumbBorderInnerRight:{up:12570849, over:13425127, down:12570849}, thumbBorderInnerLeft:{up:12570849, over:13425127, down:12570849}, thumbBorderInnerTop:{up:12570849, over:13425127, down:12570849}};
_global.properties = {copyright:("\u00A9 Copyright 1998 - " + year) + " Autodemo LLC", options:{ad_link:true}, colors:{background_color:"000000", background_alpha:"100", control_bar_color:"003366", control_bar_alpha:"100", control_bar_font_color:"FFFFFF", text_box_color:"003366", text_box_alpha:"85", text_box_font_color:"FFFFFF", progress_bar_back_color:"E8F3FF", progress_bar_back_alpha:"100", progress_bar_load_color:"E8F3FF", progress_bar_load_alpha:"40", progress_bar_color:"99CCFF", progress_bar_alpha:"100", progress_bar_font_color:"004488", progress_bar_font_alpha:"100", progress_bar_border_highlight_outer_color:"003333", progress_bar_border_highlight_inner_color:"FFFFFF", progress_bar_border_shadow_outer_color:"003333", progress_bar_border_shadow_inner_color:"FFFFFF", menu_back_color:"003366", menu_back_alpha:"40", menu_item_selected_color:"0059B3", menu_item_disabled_color:"8AA1B9", menu_item_back_color:"003366", menu_item_back_alpha:"60", menu_item_arrow_color:"669999", menu_item_arrow_alpha:"70", menu_item_font_color:"FFFFFF", menu_item_font_alpha:"100", menu_item_highlight_color:"336699", menu_item_highlight_alpha:"100", menu_item_highlight_font_color:"FFFFFF", menu_item_highlight_font_alpha:"100", border_highlight_outer_color:"003333", border_highlight_outer_alpha:"100", border_highlight_inner_color:"666699", border_highlight_inner_alpha:"100", border_shadow_outer_color:"003333", border_shadow_outer_alpha:"100", border_shadow_inner_color:"666699", border_shadow_inner_alpha:"100", button_face_color:"BFD4EA", button_face_alpha:"100", button_highlight_color:"FFFFFF", button_shadow_color:"000000", button_rollover_color:"99CCFF", button_press_color:"CCCCFF", button_icon_color:"003366", button_icon_alpha:"100", help_font_color:"003366", help_back_color:"FFFFFF"}, control_text:{help_title:"Autodemo Help", help_play_pause:"Play and Pause (Spacebar)", help_forward_reverse:"Step Back and Forward (Left and Right arrow)", help_close:"Close (C)", help_content_menu_header:"Content Menu", help_content_menu:"Select different content (when available)", help_option_menu_header:"Menu", help_option_menu:"Additional functionality", options_text_on:"Text On", options_text_off:"Text Off", options_audio_on:"Audio On", options_audio_off:"Audio Off", options_loop_on:"Loop On", options_loop_off:"Loop Off", options_help:"Help", options_contact:"Contact Info", progress_section:"Section %% of %%", menu_options:"Menu", menu_demo_center:"Demo Center", splash_audio_on:"This demo contains audio. If you prefer on-screen text <font color=\"#0000FF\"><u><a href=\"asfunction:set_pre_text\">click here</a></u></font>.", splash_audio_off:"To turn audio back on, go to the Options menu.", error_1:"The required file '<B>%%.txt</B>' is not loaded.\n\nPlease insure that this file is located at the address:\n<B>%%</B>\n\nClick <a href='asfunction:_level0.control_src.reload'><u>here</u></a> to try again.\n"}, contact_header:{title:"Contact Information", phone:"Phone Number:", address:"Mailing Address:", website:"Website:", email:"E-mail Address:"}, demodashboard:{site:"http://demodashboard.com/srv/clients.php", method:"POST"}};
_level0.$control = "4.28";
_level0["@global"] = _global;
MovieClip.prototype._global = _level0["@global"];
_global.section_broadcaster = {};
Object.addStaticFLEM(_global.section_broadcaster);
u = unescape(_level0._url.toLowerCase());
p = _level0.$version.substr(0, 3).toLowerCase();
if (u == "") {
_global.IN_BROWSER = false;
} else if ((p == "win") || (p == "mac")) {
if (u.substr(0, 5) == "file:") {
if ((u.substr(4, 4) == ":///") && (u.substr(4, 5) != "://\\\\")) {
_global.IN_BROWSER = false;
}
}
}
delete year;
delete u;
delete p;
String.prototype.split = function (d, limit) {
var _local3 = this;
if (d != null) {
var r = new Array();
var size = _local3.length;
var _local2 = 0;
var n = 0;
var dl = d.length;
if (d != "") {
var _local1 = 0;
while (_local1 <= size) {
if ((substring(_local3, _local1 + 1, dl)) == d) {
r[n] = substring(_local3, _local2 + 1, _local1 - _local2);
_local2 = _local1 + dl;
n++;
if (limit != null) {
if (n >= (limit - 1)) {
break;
}
}
}
_local1++;
}
if (_local2 != _local1) {
r[n] = substring(_local3, _local2 + 1, _local1 - _local2);
}
} else {
var _local1 = 0;
while (_local1 < size) {
r[_local1] = substring(_local3, _local1 + 1, 1);
_local1++;
}
}
} else {
r = new Array(_local3.toString());
}
return(r);
};
String.prototype.tabLines = function () {
var _local2 = this.split(newline);
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1] = "\t" + _local2[_local1].trim();
_local1++;
}
return(_local2.join(newline));
};
String.prototype.rtrim = function () {
var _local2 = this;
var _local1 = _local2.length;
while (_local1--) {
if (_local2.charCodeAt(_local1) > 32) {
return(substring(_local2, 0, _local1 + 1));
}
}
return("");
};
String.prototype.ltrim = function () {
var _local2 = this;
var _local1 = -1;
var _local3 = _local2.length;
while ((_local1++) < _local3) {
if (_local2.charCodeAt(_local1) > 32) {
return(_local2.substring(_local1));
}
}
return("");
};
String.prototype.trim = function () {
return(this.rtrim().ltrim());
};
MovieClip.prototype.enabled = true;
MovieClip.prototype.r_attachMovie = function () {
var _local1 = arguments;
var _local2 = this;
if (_local1.length) {
_local2.attachMovie(_local1[0], _local1[1], _local1[2]);
if (_local1[3]) {
for (var _local3 in _local1[3]) {
_local2[_local1[1]][_local3] = _local1[3][_local3];
}
}
return(_local2[_local1[1]]);
}
return(undefined);
};
MovieClip.prototype.set = function (o) {
var _local2 = o;
var _local3 = this;
var _local1;
for (var item in _local2) {
_local1 = _local2[item];
_local3[item] = (isNaN(_local1) ? (_local1) : (Math.round(_local1)));
}
};
MovieClip.prototype.position = function (x, y) {
this.set({_x:x, _y:y});
};
MovieClip.prototype.bWidth = function () {
var _local2 = this;
var _local1 = _local2.back_mc;
if ((typeof(_local1) == "movieclip") && (_local1._parent == _local2)) {
return(_local1._width);
}
return(_local2._width);
};
MovieClip.prototype.bHeight = function () {
var _local2 = this;
var _local1 = _local2.back_mc;
if ((typeof(_local1) == "movieclip") && (_local1._parent == _local2)) {
return(_local1._height);
}
return(_local2._height);
};
MovieClip.prototype.setStyle = function (mc, style) {
var _local2 = style;
var _local1 = _global.styleFormat.styles;
if (_local1[_local2] == undefined) {
_local1[_local2] = {};
}
_local1[_local2][mc] = mc;
};
_global.styleFormat = function () {
var _local1 = this;
_local1.applied = false;
_local1.styles = {};
_local1.applyChanges = function () {
var _local2 = this;
var c;
var _local1;
var _local3 = false;
for (var item in _local2.styles) {
_local1 = _global.properties.colors[item];
_local3 = false;
if (item.indexOf("_alpha") == -1) {
_local3 = true;
_local1 = parseInt(_local1, 16);
}
for (var mc in _local2.styles[item]) {
if (_local3) {
c = new Color(_local2.styles[item][mc]);
c.setRGB(_local1);
} else {
_local2.styles[item][mc]._alpha = _local1;
}
}
}
_local2.applied = true;
};
};
_global.styleFormat = new _global.styleFormat();
_global.loader = function () {
var _local1 = this;
_local1.load_complete = false;
_local1.loading = {};
_local1.load_id = 0;
_local1.add_load = function (url, obj, callback, ident) {
var _local1 = this;
_local1.load_complete = false;
_local1.load_id++;
_local1.loading[_local1.load_id] = {_xml:new XML(), obj:obj, callback:callback, ident:ident, url:url};
_local1.loading[_local1.load_id]._xml.__parent = _local1;
_local1.loading[_local1.load_id]._xml.load_id = _local1.load_id;
_local1.loading[_local1.load_id]._xml.onData = function (raw) {
this.__parent.onLoad(this.load_id, raw);
};
};
_local1.onLoad = function (l_id, raw) {
var _local1 = this;
var l = _local1.loading[l_id];
l.obj[l.callback](l.ident, raw);
delete _local1.loading[l_id];
var _local2 = 0;
for (var _local3 in _local1.loading) {
_local2++;
}
if (_local2 == 0) {
_local1.load_complete = true;
} else {
_local1.start_load();
}
};
_local1.start_load = function () {
var _local1 = this;
for (var _local2 in _local1.loading) {
_local1.loading[_local2]._xml.load(_local1.loading[_local2].url);
break;
}
};
};
_global.timer = function () {
var _local1 = this;
MovieClip.addFLEMListener(_local1);
_local1.cur_interval_id = 0;
_local1.interval_id = {};
_local1.setInterval = function (obj, func, interval, one_time) {
var _local1 = this;
var _local2 = one_time;
if (_local2 == undefined) {
_local2 = false;
}
_local1.cur_interval_id++;
_local1.interval_id[_local1.cur_interval_id] = {obj:obj, func:func, interval:interval, kill:_local2, last:getTimer()};
return(_local1.cur_interval_id);
};
_local1.clearInterval = function (interval_id) {
this.interval_id[interval_id] = null;
delete this.interval_id[interval_id];
};
_local1.onEnterFrame = function () {
var _local1 = this;
for (var _local2 in _local1.interval_id) {
if ((_local1.interval_id[_local2] != null) && ((getTimer() - _local1.interval_id[_local2].last) >= _local1.interval_id[_local2].interval)) {
_local1.interval_id[_local2].obj[_local1.interval_id[_local2].func]();
if (_local1.interval_id[_local2].kill) {
_local1.clearInterval(_local2);
} else {
_local1.interval_id[_local2].last = getTimer();
}
}
}
};
};
_global.clip_ease = function () {
var _local2 = this;
MovieClip.addFLEMListener(_local2);
_local2.acc = 1;
_local2.friction = 2;
_local2.ease_id = 0;
_local2.mcs = {};
_local2.add_mc = function (mc, dest_x, dest_y) {
var _local1 = mc;
var _local2 = this;
_local2.ease_id++;
dest_x = Math.round(dest_x);
dest_y = Math.round(dest_y);
var dir_x = ((_local1._x > dest_x) ? -1 : 1);
var dir_y = ((_local1._y > dest_y) ? -1 : 1);
dir_x = ((_local1._x == dest_x) ? 0 : (dir_x));
dir_y = ((_local1._y == dest_y) ? 0 : (dir_y));
_local2.mcs[_local2.ease_id] = {mc:_local1, cur_x:_local1._x, cur_y:_local1._y, dest_x:dest_x, dest_y:dest_y, dir_x:dir_x, dir_y:dir_y};
return(_local2.ease_id);
};
_local2.clear_ease = function (ease_id) {
var _local1 = ease_id;
var _local2 = this;
if (_local2.mcs[_local1] != null) {
_local2.mcs[_local1] = null;
delete _local2.mcs[_local1];
}
};
_local2.onEnterFrame = function () {
var _local2 = this;
var _local1;
for (var item in _local2.mcs) {
if (_local2.mcs[item] != null) {
_local1 = _local2.mcs[item];
var new_x = Math[((_local1.dir_x == 1) ? "ceil" : "floor")](_local1.cur_x + (((_local1.dest_x - _local1.cur_x) / _local2.acc) / _local2.friction));
var _local3 = Math[((_local1.dir_y == 1) ? "ceil" : "floor")](_local1.cur_y + (((_local1.dest_y - _local1.cur_y) / _local2.acc) / _local2.friction));
if (_local1.dir_x == 1) {
if (new_x >= _local1.dest_x) {
new_x = _local1.dest_x;
}
} else if (_local1.dir_x == -1) {
if (new_x <= _local1.dest_x) {
new_x = _local1.dest_x;
}
}
if (_local1.dir_y == 1) {
if (_local3 >= _local1.dest_y) {
_local3 = _local1.dest_y;
}
} else if (_local1.dir_y == -1) {
if (_local3 <= _local1.dest_y) {
_local3 = _local1.dest_y;
}
}
_local1.cur_x = (_local1.mc._x = new_x);
_local1.cur_y = (_local1.mc._y = _local3);
if ((_local1.mc._x == _local1.dest_x) && (_local1.mc._y == _local1.dest_y)) {
_local1.mc.onEaseComplete();
_local2.clear_ease(item);
}
}
}
};
};
this.demo_watch = function () {
var _local1 = this;
var _local2 = _global;
Object.addStaticFLEM(_local1);
MovieClip.addFLEMListener(_local1);
Mouse.addFLEMListener(_local1);
_local1.__lastframe = 0;
_local1.__lastxmouse = _level0._xmouse;
_local1.__lastymouse = _level0._ymouse;
_local1.onMouseDown = function () {
this.sendFLEMEvent("onMouseActivity");
};
_local1.onEnterFrame = function () {
var _local1 = this;
var _local2 = _global;
if (_local1.__lastframe != _level0.demo_src._currentframe) {
_local1.__lastframe = _level0.demo_src._currentframe;
if (!_local2.DEMO_PLAYING) {
_local1.sendFLEMEvent("demoStartPlaying");
}
_local2.DEMO_PLAYING = true;
} else if (_local1.__lastframe == _level0.demo_src._currentframe) {
if (_local2.DEMO_PLAYING) {
_local1.sendFLEMEvent("demoStopPlaying");
}
_local2.DEMO_PLAYING = false;
}
if ((_local1.__lastxmouse != _level0._xmouse) || (_local1.__lastymouse != _level0._ymouse)) {
_local1.__lastxmouse = _level0._xmouse;
_local1.__lastymouse = _level0._ymouse;
if (!_local2.MOUSE_MOVING) {
_local1.sendFLEMEvent("onMouseActivity");
}
_local2.MOUSE_MOVING = true;
} else if ((_local1.__lastxmouse == _level0._xmouse) && (_local1.__lastymouse == _level0._ymouse)) {
if (_local2.MOUSE_MOVING) {
_local1.sendFLEMEvent("onMouseIdle");
}
_local2.MOUSE_MOVING = false;
}
};
};
this.timeline_watch = function () {
var _local1 = this;
var _local2 = _global;
MovieClip.addFLEMListener(_local1);
_local1.base_frame = -1;
_local1.progress = _level0.control_src.progress_mc;
_local1.progress.setPercent(0);
_local1.onEnterFrame = function () {
var _local1 = this;
var _local2 = _global;
if ((_local1.base_frame == -1) && (_local2.DEMO_SECTION_FRAME != 0)) {
_local1.base_frame = _local2.DEMO_SECTION_FRAME;
} else {
_local1.progress.setPercent((_level0.demo_src._currentframe * 100) / (_level0.demo_src._totalframes - (_local1.base_frame + 6)));
_local1.progress.setLoadPercent((_level0.demo_src.getBytesLoaded() * 100) / _level0.demo_src.getBytesTotal());
if ((_level0.demo_src._currentframe >= (_level0.demo_src._totalframes - 6)) && (_local2.DEMO_PLAYING)) {
_level0.demo_src.gotoAndStop(_level0.demo_src._totalframes - 6);
if (isNaN(_level0.demo_src.end_delay)) {
_level0.control_src.close(false);
} else {
_local2.timer.setInterval(_level0.control_src, "close", _level0.demo_src.end_delay, true);
delete _local1.onEnterFrame;
}
}
}
};
};
this.section_validation = function () {
var _local1 = this;
var _local2 = _global;
MovieClip.addFLEMListener(_local1);
_local1.current_section = 1;
_local1.onEnterFrame = function () {
var _local1 = _global;
var _local2 = this;
if (_local1.SECTION_VALID) {
_local1.SECTION_VALID = false;
_local1.VALID_SECTIONS++;
if (_level0.control_src.menu_demo_select_mc.is_open) {
_level0.control_src.menu_demo_select_mc.open();
}
_local2.current_section++;
if (_local1.DEMO_SECTION_COUNT != 0) {
if (_local2.current_section > _local1.DEMO_SECTION_COUNT) {
MovieClip.removeFLEMListener(_local2);
delete _local2.onEnterFrame;
return;
}
}
} else {
_local1.SECTION_VALIDATION = true;
var _local3 = "";
if (_level0.demo_level == -1) {
_local3 = _level0.demo_src._target;
} else {
_local3 = "_level" + _level0.demo_level;
}
call((_local3 + ":part") + _local2.current_section);
_local1.SECTION_VALIDATION = false;
}
};
};
_global.loader = new _global.loader();
_global.timer = new _global.timer();
_global.clip_ease = new _global.clip_ease();
this.demo_watch = new this.demo_watch();
this.timeline_watch = new this.timeline_watch();
this.section_validation = new this.section_validation();
this.remove_comments = function (lines) {
var lines_out = new Array();
var _local3 = "";
var i = 0;
while (i < lines.length) {
_local3 = lines[i].trim();
var tmp_index = -1;
if ((_local3 != "") && (_local3.substr(0, 1) != "#")) {
var final_line = "";
var line_length = _local3.length;
var _local1 = "";
var _local2 = 0;
while (_local2 < line_length) {
_local1 = _local3.substr(_local2, 1);
if (_local1 == "\\") {
_local2++;
_local1 = _local3.substr(_local2, 1);
if (_local1 == "n") {
_local1 = newline;
} else if (_local1 == "r") {
_local1 = "\r";
} else if (_local1 == "t") {
_local1 = "\t";
}
} else if (_local1 == "#") {
break;
}
final_line = final_line + _local1;
_local2++;
}
lines_out.push(final_line);
}
i++;
}
return(lines_out);
};
this.parse_type = function (s) {
if (s.substr(0, 1) == "{") {
return("o");
}
if (s.substr(0, 1) == "[") {
return("a");
}
return("s");
};
this.real_value = function (s) {
var _local1 = s.toLowerCase();
if (_local1 == "true") {
return(true);
}
if (_local1 == "false") {
return(false);
}
if (!isNaN(_local1)) {
return(Number(_local1));
}
return(s);
};
this.parse_setting_string = function (s) {
var tmp = [];
var s_match = "{[";
var e_match = "}]";
var _local2 = -1;
var skip = 0;
var skipped = 0;
var _local3 = 0;
var _local1 = 0;
var c;
while (_local1 < (s.length + 1)) {
c = s.substr(_local1, 1);
if (_local2 == -1) {
_local2 = s_match.indexOf(c);
if (_local2 != -1) {
skip = 0;
skipped = 0;
} else if (c == ",") {
tmp.push(s.substring(_local3, _local1));
_local3 = _local1 + 1;
}
} else if (s_match.substr(_local2, 1) == c) {
skip++;
} else if (e_match.substr(_local2, 1) == c) {
if (skip == skipped) {
_local2 = -1;
tmp.push(s.substring(_local3, _local1 + 1));
_local3 = _local1 + 1;
} else {
skipped++;
}
}
_local1++;
}
tmp.push(s.substr(_local3));
_local3 = 0;
while (_local3 < tmp.length) {
if (tmp[_local3].trim() == "") {
tmp.splice(_local3, 1);
}
_local3++;
}
return(tmp);
};
this.parse_object = function (s) {
s = s.substring(1, s.lastIndexOf("}"));
var obj_out = new Object();
var tmp = parse_setting_string(s);
var tmp_variable = "";
var _local1 = "";
var tmp_type = "";
var _local2;
var _local3 = 0;
while (_local3 < tmp.length) {
_local2 = tmp[_local3].split(":", 2);
if (_local2.length == 1) {
obj_out[_local2[0]] = null;
} else {
tmp_variable = _local2[0].trim();
_local1 = _local2[1].trim();
tmp_type = parse_type(_local1);
if (tmp_type == "o") {
obj_out[tmp_variable] = parse_object(_local1);
} else if (tmp_type == "a") {
obj_out[tmp_variable] = parse_array(_local1);
} else if (tmp_type == "s") {
obj_out[tmp_variable] = real_value(_local1);
}
}
_local3++;
}
return(obj_out);
};
this.set_obj_value = function (obj, obj_value) {
var _local1 = obj;
var _local2 = obj_value;
for (var _local3 in _local2) {
if ((_local1[_local3] != null) && (typeof(_local1[_local3]) == "object")) {
set_obj_value(_local1[_local3], _local2[_local3]);
} else {
_local1[_local3] = real_value(_local2[_local3]);
}
}
};
this.parse_array = function (s) {
s = s.substring(1, s.lastIndexOf("]"));
var arr_out = new Array();
var tmp = parse_setting_string(s);
var _local1 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < tmp.length) {
_local1 = tmp[_local2].trim();
_local3 = parse_type(_local1);
if (_local3 == "o") {
arr_out.push(parse_object(_local1));
} else if (_local3 == "a") {
arr_out.push(parse_array(_local1));
} else if (_local3 == "s") {
arr_out.push(real_value(_local1));
}
_local2++;
}
return(arr_out);
};
this.parse_settings = function (data) {
var lines = remove_comments(data.split(newline));
if (!lines.length) {
lines = data.split("\r");
}
var _local2 = "";
var tmp_line = "";
var tmp_type = "";
var tmp_vars = [];
var _local1 = null;
var _local3 = "";
var tmp_value = "";
var last_var = "";
var i = 0;
while (i < lines.length) {
tmp_line = lines[i].trim();
if (tmp_line.substr(0, 1) == "[") {
_local2 = tmp_line.substr(1, tmp_line.length - 2);
if (_local2 == "GLOBAL") {
_local1 = _global;
} else if (_local2 == "MAIN") {
_local1 = _level0;
} else if (_local2 == "DEMO") {
_local1 = _level0.demo_src;
} else if (_local2 == "CONTROL") {
_local1 = _level0.control_src;
} else {
if (typeof(_global.properties[_local2]) != "object") {
_global.properties[_local2] = {};
}
_local1 = _global.properties[_local2];
}
} else {
tmp_vars = tmp_line.split("=", 2);
_local3 = tmp_vars[0].trim();
tmp_value = tmp_vars[1].trim();
if (tmp_vars.length == 1) {
if (tmp_type == "s") {
_local1[last_var] = _local1[last_var] + (newline + _local3);
}
} else {
tmp_type = parse_type(tmp_value);
if (tmp_type == "o") {
var tmp_ret_obj = parse_object(tmp_value);
set_obj_value(_local1[_local3], tmp_ret_obj);
} else if (tmp_type == "a") {
_local1[_local3] = parse_array(tmp_value);
} else if (tmp_type == "s") {
_local1[_local3] = tmp_value;
}
last_var = _local3;
}
}
i++;
}
};
this.set_menus = function () {
var _local1 = _global;
var _local2 = this;
var optionText = _local1.properties.control_text;
menu_demo_select_mc.attach = "Menu_Button";
menu_option_select_mc.attach = "Menu_Option_Button";
bDemoIndex = _local2.count_sections("demo_index") > 0;
var dmb = demo_menu_button_mc;
var mds = menu_demo_select_mc;
if (bDemoIndex) {
var demoIndex = _local1.properties.demo_index;
_local1.DEMO_SELECT_INDEX = [];
_local1.DEMO_MULTI = (!_local2.is_empty(demoIndex.type)) && (demoIndex.type == "multi");
var len = (_local1.DEMO_MULTI ? (_local2.count_sections("demo_index")) : (_local1.DEMO_SECTION_COUNT));
var tmp;
var txt;
var val;
if (!is_empty(demoIndex.main_menu)) {
_local1.DEMO_SELECT_INDEX.push({label:("<B>" + optionText.menu_demo_center) + "</B>", value:demoIndex.main_menu});
_local1.DEMO_SELECT_INDEX.push({label:"-", value:""});
}
var i = 0;
while (i < len) {
if (!_local2.is_empty(demoIndex[i + 1])) {
if (_local1.DEMO_MULTI) {
tmp = demoIndex[i + 1].split(";", 2);
txt = tmp[0].trim();
val = tmp[1].trim();
} else {
txt = demoIndex[i + 1].trim();
val = i + 1;
}
_local1.DEMO_SELECT_INDEX.push({label:txt, value:val});
}
i++;
}
dmb.tooltip = "select_section";
if (!_local1.DEMO_MULTI) {
dmb.tooltip = "select_section";
_local1.section_broadcaster.addFLEMListener(dmb);
dmb.sectionChange = function (section) {
var _local3 = this;
var _local1 = _global.properties.demo_index;
var _local2 = _level0.control_src;
i = section;
while (i >= 1) {
if (!_local2.is_empty(_local1[i])) {
_local3.setText(_local1[i]);
return;
}
i--;
}
};
mds.beforeOpen = function () {
if (!_global.DEMO_MULTI) {
var di = _global.properties.demo_index;
var cs = _level0.control_src;
var prev = 0;
var _local3 = 0;
var _local2 = _global.DEMO_SECTION;
while (_local2 >= 1) {
if (!cs.is_empty(di[_local2])) {
_local3 = _local2;
break;
}
_local2--;
}
_local2 = _local3 - 1;
while (_local2 >= 1) {
if (!cs.is_empty(di[_local2])) {
prev = _local2;
break;
}
_local2--;
}
}
for (var item in this) {
if (item.indexOf("child_") != -1) {
var _local1 = this[item];
if (_local1.value > _global.VALID_SECTIONS) {
_local1.tooltip = "no_section";
_local1.disable();
_local1.showDisabled();
}
if (!_global.DEMO_MULTI) {
if ((_local1.value > prev) && (_local1.value <= _local3)) {
_local1.to = true;
_local1.showSelected();
} else {
_local1.to = false;
_local1.enable();
_local1._onRollOut();
_local1.disable();
}
}
}
}
};
mds.menuOpened = function () {
var _local2 = this;
var _local3 = _global;
for (var item in _local2) {
if (item.indexOf("child_") != -1) {
var _local1 = _local2[item];
if (_local1.value <= _local3.VALID_SECTIONS) {
delete _local1.tooltip;
_local1.enable();
}
}
}
};
}
_local2.onDemoSelect = function (c) {
var _local1 = c;
if (_global.properties.demo_index.type == "multi") {
demo_menu_button_mc.setText(_local1.__text);
if (_local1.value.indexOf(":") != -1) {
var _local2 = _local1.value.split(":");
_level0[_local2[0]][_local2[1]](_local2[2]);
} else {
loadDemo(_local1.value, true);
}
} else {
_level0.control_src.section_move(_local1.value);
}
};
dmb.__onRelease = function () {
if (_level0.control_src.menu_demo_select_mc.is_open) {
_level0.control_src.menu_demo_select_mc.close();
} else {
_level0.control_src.menu_demo_select_mc.open();
}
};
mds.setChangeHandler("onDemoSelect");
mds.setup(_local1.DEMO_SELECT_INDEX);
dmb.showArrow(true);
dmb.setText((_local1.DEMO_MULTI ? (_local1.properties.demo_text.title) : (_local1.DEMO_SELECT_INDEX[0].label)));
} else {
mds._visible = false;
mds.setup([{label:"", value:""}]);
dmb.setText(_local1.properties.demo_text.title);
MovieClip.addFLEMListener(dmb);
dmb.onEnterFrame = function () {
var _local1 = this;
if (_local1.loaded) {
_local1.showArrow(false);
_local1.disable(true);
MovieClip.removeFLEMListener(_local1);
delete _local1.onEnterFrame;
}
};
}
_local1.CTA_ENABLED = !_local2.is_empty(_local1.properties.contact_info);
_local1.properties.control_options = [];
var controlOptions = _local1.properties.control_options;
var dob = demo_option_button_mc;
var mos = menu_option_select_mc;
if (_local1.CTA_ENABLED) {
controlOptions.push({label:optionText.options_contact, value:"toggle_info"});
}
if (_local1.AUDIO_MODE == 1) {
_local1.CONTROL_KEY_MAP.K83 = (_local1.CONTROL_KEY_MAP.K84 = "toggle_audio_mode");
controlOptions.push({label:(_local2.is_empty(_level0.text_box_on) ? (optionText.options_text_on) : (optionText.options_audio_on)), value:"toggle_audio_mode"});
} else {
if (_local1.DISABLE_TEXTBOX == 0) {
controlOptions.push({label:(_local2.is_empty(_level0.text_box_on) ? (optionText.options_text_on) : (optionText.options_text_off)), value:"toggle_text_box"});
}
controlOptions.push({label:(_local2.is_empty(_level0.audio_off) ? (optionText.options_audio_off) : (optionText.options_audio_on)), value:"toggle_audio"});
}
controlOptions.push({label:(_local2.is_empty(_level0.loop) ? (optionText.options_loop_on) : (optionText.options_loop_off)), value:"toggle_loop"});
controlOptions.push({label:optionText.options_help, value:"toggle_help"});
dob.setText(optionText.menu_options);
dob.showArrow(true);
dmb.enable();
mos.attach = "Menu_Option_Button";
mos.setChangeHandler("onOptionSelect");
_local2.onOptionSelect = function (c) {
this[c.value]();
};
dob.__onRelease = function () {
if (_level0.control_src.demo_option_button_mc._visible) {
_level0.control_src.menu_option_select_mc.toggle();
}
};
dob.enable();
mos.setup(controlOptions);
};
_level0.raiseError = function (message, fatal) {
var _local3 = _global;
var _local1 = _level0.control_src;
_local3.error_message = unescape(message);
if (fatal) {
for (var _local2 in _local1) {
if (((typeof(_local1[_local2]) == "movieclip") && (_local2 != "control_bar_mc")) && (_local2 != "info_mc")) {
_local1[_local2]._visible = false;
}
}
}
_local1.position_control_bar();
_local3.error_fatal = fatal;
_local3.styleFormat.applyChanges();
_local1._visible = true;
_local1.toggle_black_out(_local1.info_mc, "error");
};
this.is_empty = function (v) {
var _local1 = v;
return(((((_local1 == undefined) || (_local1 == null)) || (_local1.length == 0)) || (_local1 == "")) || (_local1 == 0));
};
this.is_false = function (v) {
return((v == false) || (this.is_empty(v)));
};
this.format_message = function () {
var _local2 = arguments;
var _local1 = _local2.shift();
if (_local2.length > 1) {
last_index = _local1.indexOf("%%");
do {
if (last_index == -1) {
break;
}
_local1 = (_local1.substring(0, last_index) + _local2.shift()) + _local1.substr(last_index + 2);
last_index = _local1.indexOf("%%");
} while (_local2.length != 0);
}
return(_local1);
};
this.default_style = function (mc, back) {
var _local1 = mc;
var _local2 = back;
if (_local2 == undefined) {
_local2 = "control_bar";
}
_local1.setStyle(_local1.back_mc, _local2 + "_color");
_local1.setStyle(_local1.highlight_outer_top_mc, "border_highlight_outer_color");
_local1.setStyle(_local1.highlight_outer_left_mc, "border_highlight_outer_color");
_local1.setStyle(_local1.highlight_inner_top_mc, "border_highlight_inner_color");
_local1.setStyle(_local1.highlight_inner_left_mc, "border_highlight_inner_color");
_local1.setStyle(_local1.shadow_outer_bottom_mc, "border_shadow_outer_color");
_local1.setStyle(_local1.shadow_outer_right_mc, "border_shadow_outer_color");
_local1.setStyle(_local1.shadow_inner_bottom_mc, "border_shadow_inner_color");
_local1.setStyle(_local1.shadow_inner_right_mc, "border_shadow_inner_color");
_local1.setStyle(_local1.back_mc, _local2 + "_alpha");
_local1.setStyle(_local1.highlight_outer_top_mc, "border_highlight_outer_alpha");
_local1.setStyle(_local1.highlight_outer_left_mc, "border_highlight_outer_alpha");
_local1.setStyle(_local1.highlight_inner_top_mc, "border_highlight_inner_alpha");
_local1.setStyle(_local1.highlight_inner_left_mc, "border_highlight_inner_alpha");
_local1.setStyle(_local1.shadow_outer_bottom_mc, "border_shadow_outer_alpha");
_local1.setStyle(_local1.shadow_outer_right_mc, "border_shadow_outer_alpha");
_local1.setStyle(_local1.shadow_inner_bottom_mc, "border_shadow_inner_alpha");
_local1.setStyle(_local1.shadow_inner_right_mc, "border_shadow_inner_alpha");
};
this.startDemo = function () {
control_disable();
_visible = true;
if (_global.DEMO_MULTI && (_level0.hide_splash == "1")) {
splash_mc.display(true);
splash_mc.play_demo();
} else {
splash_mc.display(false);
initialized = true;
}
};
this.position_control_bar = function () {
default_style(control_bar_mc);
control_bar_mc.set({_x:_level0.demo_left, _y:_level0.demo_bottom});
control_bar_mc.setSize(_level0.demo_width, _level0.control_height);
};
this.reload = function () {
loadDemo(_level0.demo_src._url, false);
};
this.onFileLoad = function (ident, data) {
var _local1 = data;
if ((((!_local1.length) || (_local1 == undefined)) || (_local1 == null)) || (_local1.indexOf("[") == -1)) {
_global.properties[ident] = false;
} else {
_global.properties[ident] = true;
parse_settings(_local1);
}
};
this.count_sections = function (property) {
var _local2 = property;
var _local1 = 0;
while (_level0["@global"].properties[_local2][_local1 + 1].length) {
_local1++;
}
return(_local1);
};
this.section_change_override = false;
this.clear_step_back_flag = function () {
var _local1 = _global;
_local1.ALLOW_STEP_BACK = false;
_local1.timer.clearInterval(_local1.STEP_BACK_INTERVAL_ID);
};
this.section_change = function () {
var _local1 = _global;
var _local2 = _level0.control_src;
var _local3 = _level0.demo_src;
if (!_local2.section_change_override) {
if (_local3._currentframe > _local1.DEMO_SECTION_FRAME) {
_local1.DEMO_SECTION++;
} else if (_local3._currentframe < _local1.DEMO_SECTION_FRAME) {
_local1.DEMO_SECTION--;
}
}
_local2.section_change_override = false;
_local2.clear_step_back_flag();
_local1.ALLOW_STEP_BACK = true;
_local1.STEP_BACK_INTERVAL_ID = _local1.timer.setInterval(_local2, "clear_step_back_flag", _local1.STEP_BACK_INTERVAL);
_local1.DEMO_SECTION_FRAME = _local3._currentframe;
_local1.section_broadcaster.sendFLEMEvent("sectionChange", _local1.DEMO_SECTION);
};
this.section_move = function (section) {
var _local2 = _global;
var _local3 = section;
if (_local3 > _local2.VALID_SECTIONS) {
} else {
var _local1 = _level0.demo_src;
_level0.control_src.section_change_override = true;
_local2.DEMO_SECTION = _local3;
_local1["gotoAnd" + (_local2.DEMO_PLAYING ? "Play" : "Stop")]("part" + _local3);
demo_watch.__lastframe = _local1._currentframe;
}
};
this.section_forward = function () {
var _local1 = _global;
if (_local1.DEMO_SECTION < _local1.DEMO_SECTION_COUNT) {
_level0.control_src.section_move(_local1.DEMO_SECTION + 1);
}
};
this.section_reverse = function () {
var _local1 = _global;
_level0.control_src.section_move(Math.max(1, _local1.DEMO_SECTION - ((_local1.ALLOW_STEP_BACK || (!_local1.DEMO_PLAYING)) ? 1 : 0)));
};
this.toggle_play_pause = function () {
var _local1 = _level0.demo_src;
if (_global.DEMO_PLAYING) {
_local1.stop();
} else {
_local1.play();
}
};
this.find_select_item = function (mc, value) {
var _local2 = mc;
var _local3 = value;
var _local1;
for (var item in _local2) {
if (item.indexOf("child_") != -1) {
_local1 = _local2[item];
if (_local1.value == _local3) {
return(_local1);
}
}
}
return(undefined);
};
this.toggle_text_box = function () {
var _local2 = text_box_mc;
var _local3 = _global.properties.control_text;
_local2.toggle();
var _local1 = find_select_item(menu_option_select_mc, "toggle_text_box");
if (_local2.is_open) {
_local1.tooltip = "text_close";
_local1.setText(_local3.options_text_off);
} else {
_local1.tooltip = "text_open";
_local1.setText(_local3.options_text_on);
}
};
this.audio_fade_out = function () {
var _local2 = _global.DEMO_AUDIO;
var _local1 = _local2.getVolume();
if (_local1 > 0) {
_local2.setVolume(_local1 - 20);
} else {
_global.timer.clearInterval(audio_int_id);
}
};
this.audio_fade_in = function () {
var _local2 = _global.DEMO_AUDIO;
var _local1 = _local2.getVolume();
if (_local1 < 100) {
_local2.setVolume(_local1 + 20);
} else {
_global.timer.clearInterval(audio_int_id);
}
};
this.toggle_audio = function () {
var _local2 = _global.properties.control_text;
var _local3 = find_select_item(menu_option_select_mc, "toggle_audio");
var _local1 = _local3.__text == _local2.options_audio_off;
_local3.setText((_local1 ? (_local2.options_audio_on) : (_local2.options_audio_off)));
_local3.tooltip = (_local1 ? "sound_off" : "sound_on");
_global.timer.clearInterval(audio_int_id);
audio_int_id = _global.timer.setInterval(this, "audio_fade_" + (_local1 ? "out" : "in"), 1);
};
this.toggle_audio_mode = function () {
var _local1 = _global;
var _local2 = text_box_mc;
var _local3 = _local1.properties.control_text;
var item = find_select_item(menu_option_select_mc, "toggle_audio_mode");
if (_local2.is_open) {
_local2.close();
_local1.timer.clearInterval(audio_int_id);
audio_int_id = _local1.timer.setInterval(this, "audio_fade_in", 1);
item.setText(_local3.options_text_on);
} else {
_local2.open();
_local1.timer.clearInterval(audio_int_id);
audio_int_id = _local1.timer.setInterval(this, "audio_fade_out", 1);
item.setText(_local3.options_audio_on);
}
};
this.toggle_loop = function () {
var _local1 = _global;
var _local2 = _local1.properties.control_text;
var _local3 = find_select_item(menu_option_select_mc, "toggle_loop");
_local1.DEMO_LOOP = !_local1.DEMO_LOOP;
_local3.setText((_local1.DEMO_LOOP ? (_local2.options_loop_off) : (_local2.options_loop_on)));
};
this.call_to_action = function () {
if (_global.CTA_ENABLED) {
_level0.demo_src.info_stop = function () {
this.stop();
};
info_mc.is_call_to_action = true;
toggle_black_out(info_mc, "info");
}
};
this.toggle_info = function () {
if (_global.CTA_ENABLED) {
info_mc.is_call_to_action = false;
toggle_black_out(info_mc, "info");
}
};
this.toggle_help = function () {
info_mc.is_call_to_action = false;
toggle_black_out(info_mc, "help");
};
this.toggle_black_out = function (mc, frame) {
var _local1 = _global;
var _local3 = this;
black_out_window_mc = mc;
mc.gotoAndStop(frame);
black_out_mc.set({_x:_level0.demo_left, _y:_level0.demo_top, _width:_level0.demo_width, _height:_level0.demo_height});
_local1.DEMO_INFO_OPEN = !_local1.DEMO_INFO_OPEN;
if (_local1.DEMO_INFO_OPEN) {
_local1.DEMO_WAS_PLAYING = _local1.DEMO_PLAYING;
if (!mc.is_call_to_action) {
_level0.demo_src.stop();
}
control_disable();
} else {
control_enable();
black_out_window_mc._visible = false;
black_out_window_mc.close();
}
black_out_mc._visible = true;
black_out_mc.onEnterFrame = function () {
var _local2 = this;
_local2._alpha = _local2._alpha + ((_global.DEMO_INFO_OPEN ? 1 : -1) * 10);
var _local1 = _local2._alpha;
if ((_local1 >= 50) || (_local1 <= 0)) {
if (_local1 >= 50) {
_local2._alpha = 50;
_level0.control_src.black_out_window_mc._visible = true;
} else if (_local1 <= 0) {
_local2.set({_alpha:0, _visible:false});
if (_global.DEMO_WAS_PLAYING) {
_level0.demo_src.play();
}
}
delete _local2.onEnterFrame;
}
};
};
this.control_enable = function () {
enabled = true;
demo_menu_button_mc.enable();
demo_option_button_mc.enable();
control_panel_mc.play_mc.enabled = true;
control_panel_mc.reverse_mc.enabled = true;
control_panel_mc.forward_mc.enabled = true;
if (text_box_was_open) {
text_box_mc.open();
}
};
this.control_disable = function () {
enabled = false;
demo_menu_button_mc.disable();
demo_option_button_mc.disable();
control_panel_mc.play_mc.enabled = false;
control_panel_mc.reverse_mc.enabled = false;
control_panel_mc.forward_mc.enabled = false;
text_box_was_open = text_box_mc.is_open;
text_box_mc.close();
menu_option_select_mc.close();
menu_demo_select_mc.close();
};
this.query_close = function () {
var _local1 = true;
var _local3 = _level0.control_src.demo_watch._listener_array;
var _local2 = _local3.length;
while ((_local2--) && (!(_local1 === false))) {
if (_local3[_local2] != undefined) {
_local1 = _local3[_local2].query_close();
_local1 = (this.is_empty(_local1) ? true : false);
} else {
_local3.splice(_local2, 1);
}
}
return(_local1);
};
this.close = function (force_close) {
var _local3 = _global;
force_close = !is_false(force_close);
if (!force_close) {
if (_local3.FORCE_CLOSE) {
force_close = !is_false(_local3.FORCE_CLOSE);
}
}
if (((_level0.playall != "1") && (_local3.DEMO_LOOP)) && (!force_close)) {
section_move(1);
} else if (this.query_close()) {
_level0.demo_src.stop();
var bMainMenu = ((!this.is_false(is_empty(_local3.orm) && (_local3.properties.demo_index.main_menu))) && (_local3.properties.demo_index.main_menu.toLowerCase() != (_level0.DEMO_FILE_NAME + ".swf").toLowerCase()));
var di = _local3.properties.demo_index;
var _local2 = _local3.DEMO_SELECT_INDEX;
if ((is_empty(_local3.orm) && (_local3.DEMO_MULTI)) && (!force_close)) {
if (_level0.playall == "1") {
var last_index = (_local2.length - 1);
if ((_level0.DEMO_FILE_NAME + ".swf").toLowerCase() == _local2[last_index].value.toLowerCase()) {
if (_local3.DEMO_LOOP) {
if (bMainMenu) {
loadDemo(di.main_menu, true);
return;
}
loadDemo(_local2[1].value, true);
return;
}
} else {
var next_index = 0;
var cur_d = (_level0.DEMO_FILE_NAME + ".swf").toLowerCase();
var _local1 = 0;
while (_local1 < _local2.length) {
if (cur_d == _local2[_local1].value.toLowerCase()) {
next_index = _local1 + 1;
break;
}
_local1++;
}
loadDemo(_local2[next_index].value, true);
return;
}
}
} else if ((is_empty(_local3.orm) && (bMainMenu)) && (!_local3.FORCE_CLOSE)) {
loadDemo(di.main_menu, true);
} else if (_level0.$appPath != undefined) {
} else if (_local3.IN_BROWSER) {
if (!is_empty(_level0.onend)) {
getURL (_level0.onend);
} else {
getURL ("javascript:window.close()", "_self");
}
} else {
fscommand ("quit");
}
}
};
this.preserve_state = function (preserve_standard) {
var _local3 = _level0.control_src.demo_load_mc;
if ((!is_false(preserve_standard)) || (preserve_standard == true)) {
if (_global.DEMO_AUDIO.getVolume() == 0) {
_local3.audio_off = 1;
}
if (text_box_mc.is_open) {
_local3.text_box_on = 1;
}
if (_global.DEMO_MULTI) {
_local3.hide_splash = 1;
if (_global.DEMO_LOOP) {
_local3.loop = 1;
}
}
if (!is_empty(_level0.demo_src.playall)) {
_local3.playall = 1;
}
}
if (!is_empty(_level0.preserve)) {
var _local2 = _level0.preserve;
var _local1 = 0;
while (_local1 < _local2.length) {
if (!is_empty(_level0[_local2[_local1]])) {
_local3[_local2[_local1]] = _level0[_local2[_local1]];
}
_local1++;
}
}
};
this.loadDemo = function (swf, preserve) {
var _local1 = _level0.control_src;
if (_global.USE_RELATIVE_URLS == false) {
_local1.toLoad = (_level0.DEMO_PATH + _level0.PATH_DELIMITER) + swf;
} else {
_local1.toLoad = swf;
}
preserve_state(preserve);
_local1.demo_load_mc.gotoAndStop(2);
};
this.loadDemoFromIndex = function (index, preserve) {
if (!is_empty(_global.properties.demo_index.main_menu)) {
index++;
}
loadDemo(_global.DEMO_SELECT_INDEX[index].value, preserve);
};
this.showMinimal = function (show) {
var _local1 = show;
if (is_empty(_local1)) {
_local1 = false;
}
section_number_mc._visible = (progress_mc._visible = _local1);
control_panel_mc.play_mc._visible = (control_panel_mc.reverse_mc._visible = (control_panel_mc.forward_mc._visible = _local1));
demo_option_button_mc._visible = _local1;
if (!_local1) {
control_disable();
} else {
control_enable();
}
};
_level0.demo_src.loadDemo = function (swf, preserve) {
_level0.control_src.loadDemo(swf, preserve);
};
_level0.demo_src.loadDemoFromIndex = function (index, preserve) {
_level0.control_src.loadDemoFromIndex(index, preserve);
};
_level0.demo_src.demo_stop = function () {
var _local1 = _global;
_level0.demo_src.stop();
if (_local1.DEMO_LOOP) {
_level0.__continue_demo = function () {
if (_global.DEMO_LOOP) {
_level0.demo_src.play();
}
};
var _local2 = _local1.CTA_TIMEOUT;
if ((_local1.CTA_TIMEOUT == 0) && (_local1.DEMO_LOOP)) {
_local2 = 10000;
}
_local1.timer(_level0, "__continue_demo", _local2, true);
}
};
this.initialized = false;
this.init = function () {
var _local1 = this;
var _local2 = _global;
if (initialized) {
} else {
if (is_empty(_level0.demo_src.hide_controls) && (_level0.demo_level != -1)) {
_level0.demo_src._y = _level0.demo_src._y - 16;
}
_level0.demo_left = _level0.demo_src._x;
_level0.demo_top = _level0.demo_src._y;
_level0.demo_right = _level0.demo_left + _level0.demo_width;
_level0.demo_bottom = _level0.demo_top + _level0.demo_height;
_level0.control_height = 32;
_local2.DEMO_SECTION_COUNT = _local1.count_sections("demo_text");
for (var _local3 in _local2.properties.colors) {
if (_local3.indexOf("_color") != -1) {
_local2.styleFormat[_local3] = parseInt(_local2.properties.colors[_local3], 16);
} else if (_local3.indexOf("_alpha") != -1) {
_local2.styleFormat[_local3] = _local2.properties.colors[_local3];
}
}
set_menus();
_local1.position_control_bar();
_local1.control_panel_mc._x = Math.round((_level0.demo_right - _local1.control_panel_mc._width) - 15);
_local1.control_panel_mc._y = Math.round(_level0.demo_bottom + ((_local1.control_bar_mc._height - _local1.control_panel_mc._height) / 2));
if (is_empty(_local2.properties.options.hide_logo)) {
_local1.control_logo_mc._x = _level0.demo_left + 10;
} else {
_local1.control_logo_mc._x = -_local1.control_logo_mc._width;
}
_local1.control_logo_mc._y = Math.round(_level0.demo_bottom + ((_local1.control_bar_mc._height - _local1.control_logo_mc._height) / 2));
_local1.demo_menu_button_mc._x = Math.round((_local1.control_logo_mc._x + _local1.control_logo_mc._width) + 15);
_local1.demo_menu_button_mc._y = Math.round(_level0.demo_bottom + ((_local1.control_bar_mc._height - _local1.demo_menu_button_mc.back_mc.bHeight()) / 2));
_local1.demo_option_button_mc._x = (_local1.control_panel_mc._x - _local1.demo_option_button_mc.back_mc.bWidth()) - 15;
_local1.demo_option_button_mc._y = Math.round(_level0.demo_bottom + ((_local1.control_bar_mc._height - _local1.demo_option_button_mc.back_mc.bHeight()) / 2));
_local1.text_box_mc._x = Math.round(_level0.demo_right - _local1.text_box_mc._width);
_local1.text_box_mc._y = Math.round(_level0.demo_bottom);
_local1.menu_demo_select_mc._x = Math.round(_local1.demo_menu_button_mc._x - 2);
_local1.menu_demo_select_mc._y = Math.round(_level0.demo_bottom);
_local1.menu_option_select_mc._x = Math.round(_local1.demo_option_button_mc._x - 2);
_local1.menu_option_select_mc._y = Math.round(_level0.demo_bottom);
var x = Math.round((_local1.demo_menu_button_mc._x + _local1.demo_menu_button_mc.back_mc.bWidth()) + 15);
if (_local1.demo_option_button_mc._visible) {
var w = ((_local1.demo_option_button_mc._x - x) - 15);
} else {
var w = ((_local1.control_panel_mc._x - x) - 15);
}
_local1.progress_mc._x = x;
_local1.progress_mc._y = Math.round(_level0.demo_bottom + ((_local1.control_bar_mc.bHeight() - _local1.progress_mc.back_mc.bHeight()) / 2));
_local1.progress_mc.setSize(w, 18);
_local1.section_number_mc._x = Math.round(_local1.progress_mc._x + 4);
_local1.section_number_mc._y = Math.floor(_local1.progress_mc._y + ((_local1.progress_mc.back_mc.bHeight() - _local1.section_number_mc._height) / 2));
_local1.onKeyUp = function () {
var _local1 = _global;
var _local2 = Key.getCode();
if (this.enabled) {
this[_local1.CONTROL_KEY_MAP["K" + _local2]]();
}
if (Key.isDown(192)) {
_local1.DEBUG = _local1.DEBUG + _local2;
if (_local1.DEBUG == 204) {
loadMovieNum ((_level0.DEMO_PATH + _level0.PATH_DELIMITER) + "debugger.swf", _level0.control_level + 1);
_local1.DEBUG = 0;
}
} else {
_local1.DEBUG = 0;
}
};
_level0.demo_src.section_change = _local1.section_change;
_level0.demo_src.show_info = function () {
_level0.control_src.call_to_action();
};
_local1.control_panel_mc.play_mc._onRelease = function () {
_level0.control_src.toggle_play_pause();
};
_local1.control_panel_mc.reverse_mc.tooltip = "reverse";
_local1.control_panel_mc.reverse_mc._onRelease = function () {
_level0.control_src.section_reverse();
};
_local1.control_panel_mc.forward_mc.tooltip = "forward";
_local1.control_panel_mc.forward_mc._onRelease = function () {
_level0.control_src.section_forward();
};
_local1.control_panel_mc.close_mc.tooltip = "close";
_local1.control_panel_mc.close_mc._onRelease = function () {
_level0.control_src.close(true);
};
_level0.demo_src.demo_stop = function () {
if (_global.DEMO_LOOP) {
_global.timer.setInterval(_level0.demo_src, "play", 10000, true);
}
this.stop();
};
_local1.demodashboard_mc._visible = false;
if (!is_empty(_local2.properties.demodashboard.id)) {
_local1.demodashboard_mc.loadMovie((_level0.DEMO_PATH + _level0.PATH_DELIMITER) + "demodashboard.swf");
}
initialized = true;
_local1.background.setup();
_local1.startDemo();
}
};
this.load_started = false;
if (typeof(_level0.preInit) != "function") {
_level0.preInit = function () {
_level0.control_src.init();
};
}
this.onEnterFrame = function () {
var _local1 = this;
var _local3 = _global;
if (_local1.getBytesLoaded() >= _local1.getBytesTotal()) {
if (!_local1.load_started) {
_local3.loader.add_load(((_level0.DEMO_PATH + _level0.PATH_DELIMITER) + _level0.DEMO_FILE_NAME) + ".txt", _local1, "onFileLoad", "DEMO_SETTINGS_LOADED");
_local3.loader.start_load();
_local1.load_started = true;
}
if (_local3.properties.DEMO_SETTINGS_LOADED && (_local3.loader.load_complete)) {
if (!_local1.is_empty(_local1.imgtext)) {
if (_local1.is_false(_local1.begin_imgtext_load)) {
_local1.text_box_mc.setImageText((_level0.DEMO_PATH + _level0.PATH_DELIMITER) + _local1.imgtext);
_local1.begin_imgtext_load = true;
return;
}
if (_local1.is_false(_local1.text_box_mc.img_loaded)) {
} else {
if (!_local1.is_empty(_local1.files)) {
var _local2 = 0;
while (_local2 < _local1.files.length) {
_local3.loader.add_load((_level0.DEMO_PATH + _level0.PATH_DELIMITER) + _local1.files[_local2], _local1, "onFileLoad", ("FILE_" + _local2) + "_LOADED");
_local2++;
}
_local3.loader.start_load();
_local1.onEnterFrame = function () {
var _local1 = this;
if (_global.loader.load_complete) {
_level0.preInit();
if (typeof(_level0.demo_src.preInit) == "function") {
_level0.demo_src.preInit();
}
if (!_local1.is_empty(_local1.tooltip_swf)) {
_local1.tooltip.tooltip_mc.loadMovie((_level0.DEMO_PATH + _level0.PATH_DELIMITER) + _local1.tooltip_swf);
}
delete _local1.onEnterFrame;
}
};
} else {
if (!_local1.is_empty(_local1.tooltip_swf)) {
_local1.tooltip.tooltip_mc.loadMovie((_level0.DEMO_PATH + _level0.PATH_DELIMITER) + _local1.tooltip_swf);
}
_level0.preInit();
delete _local1.onEnterFrame;
}
return;
if ((_local3.properties.DEMO_SETTINGS_LOADED === false) && (_local3.loader.load_complete)) {
if (_level0.control_src == _level0) {
_local1.close();
delete _local1.onEnterFrame;
} else {
_level0.raiseError(_local1.format_message(_local3.properties.control_text.error_1, _level0.DEMO_FILE_NAME, _level0.DEMO_PATH), true);
delete _local1.onEnterFrame;
}
}
}
}
if (!_local1.is_empty(_local1.files)) {
var _local2 = 0;
while (_local2 < _local1.files.length) {
_local3.loader.add_load((_level0.DEMO_PATH + _level0.PATH_DELIMITER) + _local1.files[_local2], _local1, "onFileLoad", ("FILE_" + _local2) + "_LOADED");
_local2++;
}
_local3.loader.start_load();
_local1.onEnterFrame = function () {
var _local1 = this;
if (_global.loader.load_complete) {
_level0.preInit();
if (typeof(_level0.demo_src.preInit) == "function") {
_level0.demo_src.preInit();
}
if (!_local1.is_empty(_local1.tooltip_swf)) {
_local1.tooltip.tooltip_mc.loadMovie((_level0.DEMO_PATH + _level0.PATH_DELIMITER) + _local1.tooltip_swf);
}
delete _local1.onEnterFrame;
}
};
} else {
if (!_local1.is_empty(_local1.tooltip_swf)) {
_local1.tooltip.tooltip_mc.loadMovie((_level0.DEMO_PATH + _level0.PATH_DELIMITER) + _local1.tooltip_swf);
}
_level0.preInit();
delete _local1.onEnterFrame;
}
} else if ((_local3.properties.DEMO_SETTINGS_LOADED === false) && (_local3.loader.load_complete)) {
if (_level0.control_src == _level0) {
_local1.close();
delete _local1.onEnterFrame;
} else {
_level0.raiseError(_local1.format_message(_local3.properties.control_text.error_1, _level0.DEMO_FILE_NAME, _level0.DEMO_PATH), true);
delete _local1.onEnterFrame;
}
}
}
};
Symbol 3 MovieClip [flemEngine] Frame 1
_visible = false;
Instance of Symbol 2 MovieClip in Symbol 3 MovieClip [flemEngine] Frame 1
onClipEvent (load) {
lastSel = Selection.getFocus();
MovieClip.sendFLEMEvent("onLoad");
}
onClipEvent (enterFrame) {
MovieClip.sendFLEMEvent("onEnterFrame");
if (lastSel != Selection.getFocus()) {
Selection.sendFLEMEvent("onFocusChange", [Selection.getFocus(), lastSel]);
lastSel = Selection.getFocus();
}
}
onClipEvent (mouseMove) {
Mouse.sendFLEMEvent("onMouseMove");
var i = (Object.Button._listener_array.length - 1);
while (i >= 0) {
var mc = Object.Button._listener_array[i];
if (mc.enabled) {
if ((mc._over == undefined) || (mc._drag == undefined)) {
mc._over = false;
mc._drag = false;
}
if (mc.hitTest(_level0._xmouse, _level0._ymouse, true)) {
if (!mc._over) {
if (mc._drag) {
mc._onDragOver();
} else {
mc._onRollOver();
}
}
mc._over = true;
} else {
if (mc._over) {
if (mc._drag) {
mc._onDragOut();
} else {
mc._onRollOut();
}
}
mc._over = false;
}
}
i--;
}
updateAfterEvent();
}
onClipEvent (mouseDown) {
Mouse.sendFLEMEvent("onMouseDown");
var i = (Object.Button._listener_array.length - 1);
while (i >= 0) {
var mc = Object.Button._listener_array[i];
if (mc.enabled) {
if ((mc._over == undefined) || (mc._drag == undefined)) {
mc._over = false;
mc._drag = false;
}
if (mc._over) {
mc._onPress();
}
mc._drag = true;
}
i--;
}
updateAfterEvent();
}
onClipEvent (mouseUp) {
Mouse.sendFLEMEvent("onMouseUp");
var i = (Object.Button._listener_array.length - 1);
while (i >= 0) {
var mc = Object.Button._listener_array[i];
if (mc.enabled) {
if ((mc._over == undefined) || (mc._drag == undefined)) {
mc._over = false;
mc._drag = false;
}
if (mc._over) {
mc._onRelease();
} else if ((!mc._over) && (mc._drag)) {
mc._onReleaseOutside();
}
mc._drag = false;
}
i--;
}
updateAfterEvent();
}
onClipEvent (keyDown) {
Key.sendFLEMEvent("onKeyDown");
}
onClipEvent (keyUp) {
Key.sendFLEMEvent("onKeyUp");
}
Symbol 7 MovieClip [rectangle] Frame 1
this.setSize = function (w, h) {
var _local2 = w;
var _local3 = h;
var _local1 = 1;
back_mc._width = _local2;
back_mc._height = _local3;
highlight_outer_top_mc.set({_x:0, _y:0, _width:_local2, _height:_local1});
highlight_outer_left_mc.set({_x:0, _y:0, _width:_local1, _height:_local3});
highlight_inner_top_mc.set({_x:_local1, _y:_local1, _width:_local2 - (_local1 * 2), _height:_local1});
highlight_inner_left_mc.set({_x:_local1, _y:_local1, _width:_local1, _height:_local3 - (_local1 * 2)});
shadow_outer_bottom_mc.set({_x:0, _y:_local3 - _local1, _width:_local2, _height:_local1});
shadow_outer_right_mc.set({_x:_local2 - _local1, _y:0, _width:_local1, _height:_local3});
shadow_inner_bottom_mc.set({_x:_local1, _y:_local3 - (_local1 * 2), _height:_local1, _width:_local2 - (_local1 * 2)});
shadow_inner_right_mc.set({_x:_local2 - (_local1 * 2), _y:_local1, _width:_local1, _height:_local3 - (_local1 * 2)});
};
var w = _width;
var h = _height;
_yscale = 100;
_xscale = 100;
setSize(w, h);
Symbol 13 MovieClip [Menu_Option_Button] Frame 1
stop();
this.loaded = false;
this.control_disabled = false;
Object.Button.addFLEMListener(this.back_mc);
this.__icon = false;
this.showArrow = function (b) {
var _local1 = this;
_local1.__icon = (_local1.menu_arrow_mc._visible = b);
_local1.setText(_local1.__text);
};
this.setText = function (s) {
var _local2 = this;
_local2.__text = s;
var _local1 = _local2.menu_text_mc;
_local1.menu_text = ("<FONT COLOR='#" + _global.properties.colors[(_local2.is_over ? "menu_item_highlight_font_color" : "menu_item_font_color")]) + "'>";
_local1.menu_text = _local1.menu_text + s;
_local1.menu_text = _local1.menu_text + "</FONT>";
_local1._x = (_local2.__icon ? 20 : 5);
};
this.__onRollOver = (this.__onDragOver = function () {
var _local2 = this;
var _local1 = new Color(_local2.back_mc);
_local1.setRGB(parseInt(_global.properties.colors.menu_item_highlight_color, 16));
_local2.setText(_local2.__text);
});
this.__onRollOut = (this.__onDragOut = function () {
var _local2 = this;
var _local1 = new Color(_local2.back_mc);
_local1.setRGB(parseInt(_global.properties.colors.menu_item_back_color, 16));
_local2.setText(_local2.__text);
});
this.enable = function () {
var _local2 = this;
if (_local2.control_disabled) {
} else {
var _local1 = _local2.back_mc;
if (!_local2.to) {
_local1._onDragOver = (_local1._onRollOver = _local2.__onRollOver);
_local1._onDragOut = (_local1._onRollOut = _local2.__onRollOut);
}
_local1._onRelease = _local2.__onRelease;
_local1._onRollOut();
}
};
this.disable = function (control_disabled) {
this.control_disabled = control_disabled;
var _local1 = this.back_mc;
_local1.onRollOut();
delete _local1._onRollOver;
delete _local1._onDragOver;
delete _local1._onRollOut;
delete _local1._onDragOut;
delete _local1._onRelease;
};
this.showDisabled = function () {
var _local1 = new Color(this.back_mc.back_mc);
_local1.setRGB(parseInt(_global.properties.colors.menu_item_disabled_color, 16));
};
this.showSelected = function () {
var _local1 = new Color(this.back_mc.back_mc);
_local1.setRGB(parseInt(_global.properties.colors.menu_item_selected_color, 16));
};
bm = this.back_mc;
this.setStyle(this.menu_arrow_mc, "menu_item_arrow_color");
bm.setStyle(bm.back_mc, "menu_item_back_color");
bm.setStyle(bm.highlight_outer_top_mc, "border_highlight_outer_color");
bm.setStyle(bm.highlight_outer_left_mc, "border_highlight_outer_color");
bm.setStyle(bm.highlight_inner_top_mc, "border_highlight_inner_color");
bm.setStyle(bm.highlight_inner_left_mc, "border_highlight_inner_color");
bm.setStyle(bm.shadow_outer_bottom_mc, "border_shadow_outer_color");
bm.setStyle(bm.shadow_outer_right_mc, "border_shadow_outer_color");
bm.setStyle(bm.shadow_inner_bottom_mc, "border_shadow_inner_color");
bm.setStyle(bm.shadow_inner_right_mc, "border_shadow_inner_color");
this.setStyle(this.menu_arrow_mc, "menu_item_arrow_alpha");
bm.setStyle(bm.back_mc, "menu_item_back_alpha");
bm.setStyle(bm.highlight_outer_top_mc, "border_highlight_outer_alpha");
bm.setStyle(bm.highlight_outer_left_mc, "border_highlight_outer_alpha");
bm.setStyle(bm.highlight_inner_top_mc, "border_highlight_inner_alpha");
bm.setStyle(bm.highlight_inner_left_mc, "border_highlight_inner_alpha");
bm.setStyle(bm.shadow_outer_bottom_mc, "border_shadow_outer_alpha");
bm.setStyle(bm.shadow_outer_right_mc, "border_shadow_outer_alpha");
bm.setStyle(bm.shadow_inner_bottom_mc, "border_shadow_inner_alpha");
bm.setStyle(bm.shadow_inner_right_mc, "border_shadow_inner_alpha");
delete bm;
_global.styleFormat.applyChanges();
this.enable();
if (this.__text) {
this.setText(this.__text);
}
if (!this.__icon) {
this.showArrow(false);
}
this.loaded = true;
Symbol 18 Button
on (press) {
if (_parent.enable) {
_parent.buttonState("down");
_parent.loopAction = "whilePress";
_parent.executeCallBack("onPress");
}
}
on (release) {
if (_parent.enable) {
_parent.buttonState("over");
delete _parent.loopAction;
_parent.executeCallBack("onRelease");
}
}
on (rollOver) {
if (_parent.enable) {
_parent.buttonState("over");
_parent.loopAction = "whileOver";
_parent.executeCallBack("onOver");
}
}
on (rollOut, dragOut) {
if (_parent.enable) {
_parent.buttonState("up");
delete _parent.loopAction;
_parent.executeCallBack("onOut");
}
}
Symbol 19 MovieClip Frame 1
a._visible = (b._visible = false);
Symbol 20 MovieClip Frame 1
function TCommonClass() {
var _local1 = this;
_local1.enable = true;
_local1.styleTable = new Object();
_local1.mcTable = new Object();
_local1.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
};
_local1.getEnabled = function () {
return(this.enable);
};
_local1.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
_local1.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
_local1.useHostStyle = function () {
var _local1 = this;
for (var _local2 in _local1.hostStyle) {
_local1.setStyleProperty(_local2, _local1.hostStyle[_local2]);
}
};
_local1.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
_local1.updateMCState = function (buttonState) {
var _local3 = this;
if (buttonState == null) {
var buttonState = "up";
}
var _local1 = 1;
while (_local1 < arguments.length) {
var _local2 = _local3.mcTable[arguments[_local1]];
var myColor = new Color(arguments[_local1]);
if (_local3.styleTable[_local2].value[buttonState] != undefined) {
myColor.setRGB(_local3.styleTable[_local2].value[buttonState]);
arguments[_local1].currentState = buttonState;
} else if (_local3.styleTable[_local2].value.up != undefined) {
myColor.setRGB(_local3.styleTable[_local2].value.up);
}
_local1++;
}
};
_local1.buttonState = function (state) {
var _local3 = arguments;
var _local1;
var _local2;
_local1 = 1;
while (_local1 < _local3.length) {
_local2 = _local3[_local1];
if (_local2.TComponent == undefined) {
this.updateMCState(state, _local2);
} else {
_local2.buttonState(state);
}
_local1++;
}
};
_local1.setStyleProperty = function (propName, value, global) {
var _local1 = this;
var _local3 = propName;
for (var i in _local1.TSubComponents) {
_local1[i].setStyleProperty(_local3, value, global);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
if (global != true) {
global = false;
}
if (_local1.styleTable[_local3] == undefined) {
_local1.styleTable[_local3] = new Object();
_local1.styleTable[_local3].useGlobal = true;
}
if (_local1.styleTable[_local3].useGlobal || (!global)) {
_local1.styleTable[_local3].value = value;
for (var j in _local1.styleTable[_local3].coloredMCs) {
var myColor = new Color(_local1.styleTable[_local3].coloredMCs[j]);
var _local2 = _local1.styleTable[_local3].coloredMCs[j];
if (_local1.styleTable[_local3].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else if ((value.up != undefined) && (_local2._parent.hostClip.getEnabled())) {
if (value[_local2.currentState] == undefined) {
_local2.currentState = "up";
}
myColor.setRGB(value[_local2.currentState]);
} else {
myColor.setRGB(value[(_local2._parent.hostClip.getEnabled() ? "enabled" : "disabled")]);
}
}
_local1.styleTable[_local3].useGlobal = global;
}
};
_local1.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = skinMCRef;
var _local3 = propName;
if (_local1.mcTable[_local2] != undefined) {
delete _local1.styleTable[_local1.mcTable[_local2]].coloredMCs[_local2];
delete _local1.mcTable[_local2];
}
if (_local2.currentState == undefined) {
_local2.currentState = "up";
}
if (_local1.styleTable[_local3] == undefined) {
_local1.styleTable[_local3] = new Object();
_local1.styleTable[_local3].useGlobal = true;
}
if (_local1.styleTable[_local3].coloredMCs == undefined) {
_local1.styleTable[_local3].coloredMCs = new Object();
}
_local1.styleTable[_local3].coloredMCs[_local2] = _local2;
_local1.mcTable[_local2] = _local3;
if ((!_local2._parent._parent.TComponent) && (_local1.styleTable[_local3].value != undefined)) {
var myColor = new Color(_local2);
if ((_local1.styleTable[_local3].value.up != undefined) && (_local2._parent.hostClip.getEnabled())) {
myColor.setRGB(_local1.styleTable[_local3].value[_local2.currentState]);
} else {
myColor.setRGB(_local1.styleTable[_local3].value[(_local2._parent.hostClip.getEnabled() ? "enabled" : "disabled")]);
}
}
};
if (_local1.TComponent) {
if (_local1.hostStyle == undefined) {
Object.globalStyleFormat.addListener(path);
} else {
_local1.useHostStyle();
}
_local1.methodTable = new Object();
for (var i in _local1.styleFormat_prm) {
_local1.setStyleProperty(i, _local1.styleFormat_prm[i]);
}
}
}
FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
delete _local1.listeners[_local2];
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.inherit = function () {
var _local2 = arguments;
var _local3 = this;
var _local1 = 0;
while (_local1 < _local2.length) {
for (var j in _local2[_local1]) {
if (_local3.isAStyle(j)) {
_local3[j] = _local2[_local1][j];
}
}
_local1++;
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
Object.FStyleFormat = FStyleFormat;
if (Object.globalStyleFormat == undefined) {
this.globalStyle = new Object();
this.globalStyle.arrow = {up:0, disabled:8355711};
this.globalStyle.scrollTrack = {up:14803425, down:0};
this.globalStyle.background = {up:12566463};
this.globalStyle.selection = {enabled:153, disabled:153};
this.globalStyle.borderOuterTop = {up:14671839, down:0};
this.globalStyle.borderOuterLeft = this.globalStyle.borderOuterTop;
this.globalStyle.borderInnerTop = {up:16777215, down:8355711};
this.globalStyle.borderInnerLeft = this.globalStyle.borderInnerTop;
this.globalStyle.borderOuterRight = {up:0, down:14671839};
this.globalStyle.borderOuterBottom = this.globalStyle.borderOuterRight;
this.globalStyle.borderInnerRight = {up:8355711, down:16777215};
this.globalStyle.borderInnerBottom = this.globalStyle.borderInnerRight;
this.globalStyle.thumbBackground = {up:12566463};
this.globalStyle.thumbBorderOuterTop = {up:14671839};
this.globalStyle.thumbBorderOuterLeft = this.globalStyle.thumbBorderOuterTop;
this.globalStyle.thumbBorderInnerTop = {up:16777215};
this.globalStyle.thumbBorderInnerLeft = this.globalStyle.thumbBorderInnerTop;
this.globalStyle.thumbBorderOuterRight = {up:0};
this.globalStyle.thumbBorderOuterBottom = this.globalStyle.thumbBorderOuterRight;
this.globalStyle.thumbBorderInnerRight = {up:8355711};
this.globalStyle.thumbBorderInnerBottom = this.globalStyle.thumbBorderInnerRight;
Object.globalStyleFormat = new FStyleFormat(this.globalStyle);
Object.globalStyleFormat.isGlobal = true;
}
if (_parent.TComponent) {
_parent.TCommonClass = this.TCommonClass;
_parent.initClip(this._name);
}
Symbol 21 MovieClip Frame 1
function initClip(mc) {
var _local1 = this;
var _local3;
var _local2;
delete initClips[mc];
for (_local3 in initClips) {
_local2++;
}
if (_local2 == undefined) {
_local1.TCommonClass();
if (_parent.TComponent) {
if (_parent.hostStyle == undefined) {
Object.globalStyleFormat.addListener(_local1);
} else {
_local1.useHostStyle();
}
} else if (_local1.hostStyle == undefined) {
Object.globalStyleFormat.addListener(_local1);
}
_local1.init();
_local1.onLoad();
if (_parent.TComponent) {
_parent.TCommonClass = _local1.TCommonClass;
delete _local1.TCommonClass;
_parent.initClip(_local1._name);
}
}
}
function init() {
var _local1 = this;
_local1.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
var tmpRotation = _local1._rotation;
_local1._rotation = 0;
_local1._yscale = (_local1._xscale = 100);
_local1.bg._width = (_local1.buttonclip._width = _local3);
_local1.bg._height = (_local1.buttonclip._height = _local2);
_local1.botop._height = (_local1.bobottom._height = (_local1.bitop._height = (_local1.bibottom._height = (_local1.boleft._width = (_local1.boright._width = (_local1.bileft._width = (_local1.biright._height = (_local1.bitop._x = (_local1.bileft._x = (_local1.bibottom._x = (_local1.bitop._y = (_local1.bileft._y = (_local1.bileft._y = 1)))))))))))));
_local1.botop._x = (_local1.boleft._x = (_local1.bobottom._x = (_local1.botop._y = (_local1.boleft._y = (_local1.boleft._y = 0)))));
_local1.bobottom._y = _local2 - 1;
_local1.boright._x = _local3 - 1;
_local1.bibottom._y = (_local1.bileft._height = (_local1.biright._height = _local2 - 2));
_local1.biright._x = (_local1.bitop._width = (_local1.bibottom._width = _local3 - 2));
_local1.botop._width = (_local1.bobottom._width = _local3);
_local1.boleft._height = (_local1.boright._height = _local2);
_local1._rotation = tmpRotation;
};
_local1.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
if (_local2 == undefined) {
_local2 = true;
}
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.buttonState("up");
_local1.buttonclip._visible = true;
_local1.onEnter = _local1.tmpOnEnter;
} else if ((!_local2) && (_local3)) {
_local1.buttonState("disabled");
_local1.buttonclip._visible = false;
delete _local1.onEnter;
}
_local1.enable = _local2;
};
_local1.buttonState = function (state) {
var _local1 = this;
_local1.updateMCState(state, _local1.bg, _local1.botop, _local1.boright, _local1.bobottom, _local1.boleft, _local1.bitop, _local1.biright, _local1.bibottom, _local1.bileft);
};
_local1.setClickHandler = function (action, chng, obj) {
this[action + "Handler"] = {handlerObj:((obj == undefined) ? (this._parent) : (obj)), clickHandler:chng};
};
_local1.executeCallBack = function (action) {
var _local1 = this;
_local1[action + "Handler"].handlerObj[_local1[action + "Handler"].clickHandler](_local1);
};
_local1.tmpOnEnter = function () {
this[this.loopAction]();
};
_local1.registerSkinElement(_local1.bg, _local1.skinName + "background");
_local1.registerSkinElement(_local1.botop, _local1.skinName + "borderOuterTop");
_local1.registerSkinElement(_local1.boright, _local1.skinName + "borderOuterRight");
_local1.registerSkinElement(_local1.bobottom, _local1.skinName + "borderOuterBottom");
_local1.registerSkinElement(_local1.boleft, _local1.skinName + "borderOuterLeft");
_local1.registerSkinElement(_local1.bitop, _local1.skinName + "borderInnerTop");
_local1.registerSkinElement(_local1.biright, _local1.skinName + "borderInnerRight");
_local1.registerSkinElement(_local1.bibottom, _local1.skinName + "borderInnerBottom");
_local1.registerSkinElement(_local1.bileft, _local1.skinName + "borderInnerLeft");
if (!_parent.TComponent) {
_local1.setEnabled();
_local1.setSize(_local1._width, _local1._height);
}
}
this.TComponent = true;
if (_parent.TComponent) {
this.hostClip = _parent.hostClip;
} else {
this.hostClip = this;
}
this.initClips = {SuperClass:true};
this.TSubComponents = {};
if (this.skinName == undefined) {
this.skinName = "";
}
stop();
Instance of Symbol 19 MovieClip "buttonclip" in Symbol 21 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.onEnter();
}
Symbol 24 MovieClip Frame 1
function onLoad() {
var _local1 = this;
_local1.colorStyle = new Object.FStyleFormat(_global.SCROLL_STYLE);
_local1.colorStyle.addListener(_local1);
var _local2 = _local1._name.substr(0, _local1._name.indexOf("_scroll")) + "_txt";
_local1._parent[_local2] = "";
_local1.setScrollTarget(_local2);
}
function initClip(mc) {
var _local1 = this;
var _local3;
var _local2;
delete initClips[mc];
for (_local3 in initClips) {
_local2++;
}
if (_local2 == undefined) {
Object.globalStyleFormat.removeListener(_local1.scroll_up);
Object.globalStyleFormat.removzeListener(_local1.scroll_down);
Object.globalStyleFormat.removeListener(_local1.scroll_thumb);
_local1.TCommonClass(_local1);
if (_parent.TComponent) {
if (_parent.hostStyle == undefined) {
Object.globalStyleFormat.addListener(_local1);
} else {
_local1.useHostStyle();
}
} else if (_local1.hostStyle == undefined) {
Object.globalStyleFormat.addListener(_local1);
}
_local1.init();
_local1.onLoad();
if (_parent.TComponent) {
_parent.TCommonClass = _local1.TCommonClass;
delete _local1.TCommonClass;
_parent.initClip(_local1._name);
}
}
}
function init() {
var _local1 = this;
_local1.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scroll_thumb._visible = false;
_local1.buttonState("disabled", _local1.scroll_up, _local1.scroll_down, _local1.arrow_up, _local1.arrow_down, _local1.scroll_track);
_local1.onEnter = _local1.checkTextScroll;
delete _local1.onMouseD;
delete _local1.onMouseU;
} else {
_local1.onEnter = _local1.tmpOnEnter;
_local1.onMouseD = _local1.tmpOnMouseD;
_local1.onMouseU = _local1.tmpOnMouseU;
_local1.buttonState("up", _local1.scroll_up, _local1.scroll_down, _local1.arrow_up, _local1.arrow_down, _local1.scroll_track);
if (_local1.scroll_track.display) {
_local1.scroll_thumb._visible = true;
_local1.setthumbHeight();
}
_local1.setScrollPosition(_local1.scrollPosition);
}
}
};
_local1.setControls = function () {
var _local1 = this;
var _local3 = arguments;
var tmpControls = _local1.controls;
var _local2;
var l;
var tmp;
var controlObj = {up:_local1.scroll_up, down:_local1.scroll_down, track:_local1.scroll_track};
var tmpRotation = _local1._rotation;
_local1._rotation = 0;
_local1.scroll_up._height = (_local1.scroll_down._height = (_local1.scroll_thumb._height = (_local1.scroll_track_down._height = _local1.width)));
_local1.scroll_track._height = _local1.height;
_local1.scroll_up.display = (_local1.scroll_down.display = (_local1.scroll_track.display = false));
_local1.controls = [];
_local1.totalHeight = 0;
if ((_local3.length == 1) && (_local3[0] != "track")) {
_local1.controls = [controlObj[_local3[0]], controlObj[((_local3[0] == "up") ? "down" : "up")]];
} else if (_local3.length != 0) {
_local2 = 0;
while (_local2 < _local3.length) {
_local1.controls[_local2] = controlObj[_local3[_local2]];
_local2++;
}
} else {
_local1.controls = tmpControls;
}
l = _local1.controls.length;
_local2 = 0;
while (_local2 < l) {
if (_local1.controls[_local2] != _local1.scroll_track) {
_local1.scroll_track._height = _local1.scroll_track._height - _local1.width;
if (_local1.scroll_track.display) {
_local1.totalHeight = _local1.totalHeight - _local1.width;
}
}
_local1.controls[_local2].display = true;
_local1.controls[_local2]._y = _local1.totalHeight;
_local1.totalHeight = _local1.totalHeight + _local1.controls[_local2]._height;
_local2++;
}
_local1.setSize(_local1.width, _local1.height);
_local1._rotation = tmpRotation;
};
_local1.setSize = function (w, h) {
var _local1 = this;
var _local2;
var l = _local1.controls.length;
var _local3;
var tmpRotate = _local1._rotation;
_local1._rotation = 0;
_local1._yscale = 100;
_local1._xscale = (_local1.horizontal ? -100 : 100);
_local1.totalHeight = 0;
_local1.scroll_up._visible = (_local1.scroll_down._visible = (_local1.scroll_thumb._visible = (_local1.scroll_track._visible = (_local1.scroll_track_down._visible = (_local1.arrow_up._visible = (_local1.arrow_down._visible = false))))));
if (_local1.scroll_track.display) {
if (((w * 2) + _local1.minThumbHeight) >= h) {
w = (h - (2 * _local1.minThumbHeight)) / 2;
}
_local1.scroll_track._height = h;
_local1.scroll_track._width = (_local1.scroll_track_down._width = w);
_local1.scroll_thumb._visible = true;
_local2 = 0;
while (_local2 < l) {
if (controls[_local2] != _local1.scroll_track) {
_local1.scroll_track._height = _local1.scroll_track._height - w;
}
_local2++;
}
} else if ((w * 2) >= h) {
w = h / 2;
}
_local1.scroll_up.setSize(w, w);
_local1.scroll_down.setSize(w, w);
_local2 = 0;
while (_local2 < l) {
_local1.controls[_local2]._y = _local1.totalHeight;
_local1.controls[_local2]._visible = true;
_local1.totalHeight = _local1.totalHeight + _local1.controls[_local2]._height;
_local3 = _local1.controls[_local2].arrow;
if (_local3 != undefined) {
_local3._visible = true;
_local3._x = (_local3._width = w / 2);
_local3._y = _local1.controls[_local2]._y + (w / 2);
_local3._height = w / 4;
}
_local2++;
}
if (_local1.scroll_track.display) {
_local1.trackHeight = _local1.scroll_track._height;
_local1.track_top = _local1.scroll_track._y;
_local1.track_bottom = _local1.scroll_track._y + _local1.scroll_track._height;
}
_local1.height = h;
_local1.width = w;
_local1._rotation = tmpRotate;
_local1.setthumbHeight();
};
_local1.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
_local1.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
if (_local2 == undefined) {
_local2 = _local1.minPos;
}
_local2 = Math.max(Math.min(_local2, _local1.maxPos), _local1.minPos);
_local1.scrollPosition = _local2;
if (_local1.scroll_track.display) {
_local1.scroll_thumb._y = (((_local2 - _local1.minPos) * _local1.travelLength) / (_local1.maxPos - _local1.minPos)) + _local1.track_top;
}
_local1.executeCallBack();
};
_local1.getScrollPosition = function () {
return(this.scrollPosition);
};
_local1.setScrollTarget = function (tF, path) {
var _local1 = this;
var _local2 = path;
_local1.textField = undefined;
if (_local2 == undefined) {
_local2 = _parent;
}
if (_local2[tF].scroll == undefined) {
} else {
_local1.textField = tF;
_local1.textFieldPath = _local2;
_local1.setScrollProperties(1, 1, _local1.textFieldPath[_local1.textField].maxscroll);
_local1.setScrollPosition(_local1.textFieldPath[_local1.textField].scroll);
}
};
_local1.setConstrain = function (val) {
this.constrainVal = Math.max(val, 0);
};
_local1.setMinThumbHeight = function (val) {
this.minThumbHeight = Math.max(val, 0);
this.setthumbHeight();
};
_local1.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
if (_local2 == undefined) {
_local2 = true;
}
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
} else if ((!_local2) && (_local3)) {
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
_local1.setScrollProperties(_local1.pageSize, 0, 0);
_local1.enable = _local2;
if (Object.prototype.TScrollbarActive == _local1) {
Object.prototype.TScrollbarActive = null;
}
}
};
_local1.setActive = function (b) {
Object.prototype.TScrollbarActive = ((b == undefined) ? (this) : undefined);
};
_local1.setthumbHeight = function () {
var _local1 = this;
if (_local1.textField == undefined) {
_local1.thumbHeight = Math.max(_local1.minThumbHeight, (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackHeight);
} else {
_local1.thumbHeight = Math.min(Math.max((_local1.trackHeight * 6) / _local1.maxPos, _local1.minThumbHeight), _local1.trackHeight / 1.07);
}
if (_local1.horizontal && false) {
_local1.scroll_thumb.setSize(_local1.thumbHeight, _local1.width);
} else {
_local1.scroll_thumb.setSize(_local1.width, _local1.thumbHeight);
}
_local1.travelLength = _local1.trackHeight - _local1.scroll_thumb._height;
_local1.setScrollPosition(_local1.scrollPosition);
};
_local1.clearTime = function () {
delete startTime;
this.currentState = null;
};
_local1.clickTime = function () {
var _local1 = this;
if (!_local1.startTime) {
_local1.startTime = getTimer();
} else if ((getTimer() - _local1.startTime) < _local1.loopTime) {
return(false);
}
return(true);
};
_local1.scrollDown = function () {
var _local1 = this;
if (!_local1.clickTime()) {
} else {
_local1.scrollIt(_local1.constrainVal);
}
};
_local1.scrollUp = function () {
var _local1 = this;
if (!_local1.clickTime()) {
} else {
_local1.scrollIt(-_local1.constrainVal);
}
};
_local1.scrollIt = function (delt) {
var _local1 = this;
var _local2 = Math.min(Math.max(Math.round((_local1.scrollPosition + delt) / _local1.constrainVal) * _local1.constrainVal, _local1.minPos), _local1.maxPos);
_local1.setScrollPosition(_local2);
};
_local1.trackScroll = function () {
var _local1 = this;
if (!_local1.clickTime()) {
} else {
_local1.scroll_track_down._visible = false;
if ((((_local1._ymouse < _local1.track_top) || (_local1._ymouse > _local1.track_bottom)) || (_local1._xmouse < 0)) || (_local1._xmouse > _local1.width)) {
} else {
if (_local1.trackScrollDir == null) {
if (_local1._ymouse > _local1.scroll_thumb._y) {
_local1.trackScrollDir = 1;
} else {
_local1.trackScrollDir = -1;
}
}
if (Math.abs((_local1.scroll_thumb._y + (_local1.thumbHeight / 2)) - _local1._ymouse) <= (_local1.thumbHeight / 2)) {
if (((_local1.scroll_thumb._y + _local1.thumbHeight) + (_local1.thumbHeight / 3)) >= _local1.track_bottom) {
_local1.scroll_thumb._y = _local1.track_bottom - _local1.thumbHeight;
_local1.scrollposition = _local1.maxPos;
_local1.executeCallBack();
} else if ((_local1.scroll_thumb._y - (_local1.thumbHeight / 3)) <= _local1.track_top) {
_local1.scroll_thumb._y = _local1.track_top;
_local1.scrollposition = _local1.minPos;
_local1.executeCallBack();
}
} else if ((_local1._ymouse > (_local1.scroll_thumb._y + (_local1.thumbHeight / 2))) && (_local1.trackScrollDir == 1)) {
_local1.scroll_thumb._y = _local1.scroll_thumb._y + _local1.thumbHeight;
_local1.scroll_track_down._visible = true;
_local1.scroll_track_down._y = _local1.scroll_thumb._y + _local1.thumbHeight;
_local1.scroll_track_down._height = _local1.track_bottom - _local1.scroll_track_down._y;
if (_local1.scroll_thumb._y >= (_local1.track_bottom - _local1.thumbHeight)) {
_local1.trackScrollDir = null;
_local1.scroll_track_down._visible = false;
_local1.scroll_thumb._y = _local1.track_bottom - _local1.thumbHeight;
_local1.currentState = "clearTime";
_local1.buttonState("up", _local1.scroll_track);
_local1.scrollPosition = _local1.maxPos;
_local1.executeCallBack();
} else {
_local1.scrollDrag();
}
} else if ((_local1._ymouse < (_local1.scroll_thumb._y + (_local1.thumbHeight / 2))) && (_local1.trackScrollDir == -1)) {
_local1.scroll_thumb._y = _local1.scroll_thumb._y - thumbHeight;
_local1.scroll_track_down._visible = true;
_local1.scroll_track_down._y = _local1.track_top;
_local1.scroll_track_down._height = _local1.scroll_thumb._y - _local1.track_top;
if (_local1.scroll_thumb._y <= _local1.track_top) {
_local1.trackScrollDir = null;
_local1.scroll_track_down._visible = false;
_local1.scroll_thumb._y = _local1.track_top;
_local1.currentState = "clearTime";
_local1.buttonState("up", _local1.scroll_track);
_local1.scrollPosition = _local1.minPos;
_local1.executeCallback();
} else {
_local1.scrollDrag();
}
}
}
}
};
_local1.scrollDrag = function () {
var _local1 = this;
if (_local1.scroll_thumb._y == _local1.track_top) {
_local1.scrollPosition = _local1.minPos;
} else if (Math.round(_local1.scroll_thumb._y) == Math.round(_local1.track_bottom - _local1.thumbHeight)) {
_local1.scrollPosition = _local1.maxPos;
} else {
var _local2 = (((_local1.maxPos - _local1.minPos) * (_local1.scroll_thumb._y - _local1.track_top)) / _local1.travelLength) + _local1.minPos;
_local1.scrollPosition = Math.min(Math.max(_local2 - (_local2 % _local1.constrainVal), _local1.minPos), _local1.maxPos);
}
_local1.executeCallBack();
};
_local1.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
_local1.handlerObj[_local1.changeHandler](_local1);
} else {
_local1.textFieldPath[_local1.textField].scroll = _local1.getScrollPosition();
}
};
_local1.checkTextScroll = function () {
var _local1 = this;
if (_local1.textField != undefined) {
if (_local1.maxPos != _local1.textFieldPath[_local1.textField].maxscroll) {
Object.prototype.TScrollbarActive = _local1;
_local1.setScrollProperties(1, 1, _local1.textFieldPath[_local1.textField].maxscroll);
_local1.setScrollPosition(_local1.textFieldPath[_local1.textField].scroll);
}
if (Selection.getFocus() == ((_local1.textFieldPath + ".") + _local1.textField)) {
Object.prototype.TScrollbarActive = _local1;
}
}
};
_local1.getOver = function () {
var _local1 = this;
if ((((_local1._ymouse < 0) || (_local1._ymouse > _local1.height)) || (_local1._xmouse < 0)) || (_local1._xmouse > _local1.width)) {
return(false);
}
if (_local1.scroll_track.display) {
if ((_local1._ymouse >= _local1.scroll_thumb._y) && (_local1._ymouse <= (_local1.scroll_thumb._y + _local1.thumbHeight))) {
return([_local1.scroll_thumb]);
}
if ((_local1._ymouse >= _local1.track_top) && (_local1._ymouse <= _local1.track_bottom)) {
return([_local1.scroll_track]);
}
}
if ((_local1.scroll_down.display && (_local1._ymouse >= _local1.scroll_down._y)) && (_local1._ymouse <= (_local1.scroll_down._y + _local1.width))) {
return([_local1.scroll_down, _local1.arrow_down]);
}
if ((_local1.scroll_up.display && (_local1._ymouse >= _local1.scroll_up._y)) && (_local1._ymouse <= (_local1.scroll_up._y + _local1.width))) {
return([_local1.scroll_up, _local1.arrow_up]);
}
return(undefined);
};
_local1.tmpOnEnter = function () {
var _local1 = this;
_local1.checkTextScroll();
if (_local1.enable) {
if ((Object.prototype.TScrollbarActive == _local1) && (_local1.JSScroll != 0)) {
_local1.setScrollPosition(_local1.scrollPosition + (_local1.JSScroll * _local1.constrainVal));
_local1.JSScroll = 0;
}
if (_local1.currentState == undefined) {
if (_local1.textField != undefined) {
if (_local1.textFieldPath[_local1.textField].scroll != _local1.scrollPosition) {
_local1.setScrollPosition(_local1.textFieldPath[_local1.textField].scroll);
}
}
} else {
if ((_local1.currentState != "clearTime") && (!_local1.horizontal)) {
Object.prototype.TScrollbarActive = _local1;
}
_local1[_local1.currentState]();
}
if (!_local1.down) {
var _local2 = _local1.getOver();
if (_local2 != false) {
if (_local1.curOver[0] != _local2[0]) {
_local1.buttonState("up", _local1.curOver[0], _local1.curOver[1]);
_local1.buttonState("over", _local2[0], _local2[1]);
_local1.curOver = _local2;
}
} else if (_local1.curOver != undefined) {
_local1.buttonState("up", _local1.curOver[0], _local1.curOver[1]);
delete _local1.curOver;
}
}
}
};
_local1.tmpOnMouseD = function () {
var _local1 = this;
if (_local1.enable) {
if (_local1.curOver != undefined) {
_local1.down = true;
if (_local1.curOver[0] == _local1.scroll_track) {
_local1.buttonState("up", _local1.scroll_track);
_local1.currentState = "trackScroll";
} else {
_local1.buttonState("down", _local1.curOver[0], _local1.curOver[1]);
if (_local1.curOver[0] == _local1.scroll_thumb) {
_local1.currentState = "scrollDrag";
_local1.scroll_thumb.drag = _local1.scroll_thumb._y - _local1._ymouse;
} else {
_local1.currentState = _local1.scrollFuncs[_local1.curOver[0]._name];
}
}
}
}
};
_local1.tmpOnMouseU = function () {
var _local1 = this;
_local1.down = (_local1.scroll_thumb.drag = false);
delete _local1.curOver;
if (_local1.currentState == "trackScroll") {
_local1.scroll_track_down._visible = false;
_local1.trackScrollDir = null;
} else {
_local1.buttonState("up", _local1.scrollMCs[_local1.currentState], _local1.scrollMCs[_local1.currentState].arrow);
}
_local1.currentState = "clearTime";
};
_local1.scrollFuncs = {scroll_up:"scrollUp", scroll_down:"scrollDown"};
_local1.scrollMCs = {scrollUp:_local1.scroll_up, scrollDown:_local1.scroll_down, scrollDrag:_local1.scroll_thumb};
_local1.controls = [_local1.scroll_up, _local1.scroll_track, _local1.scroll_down];
_local1.scroll_up.display = (_local1.scroll_down.display = (_local1.scroll_track.display = true));
_local1.width = 10;
_local1.height = 120;
_local1.constrainVal = 1;
_local1.minThumbHeight = 6;
_local1.loopTime = 300;
_local1.horizontal = false;
_local1.JSScroll = 0;
_local1.registerSkinElement(_local1.scroll_track, "scrollTrack");
_local1.registerSkinElement(_local1.scroll_track_down, "scrollTrack");
_local1.registerSkinElement(_local1.arrow_up, "arrow");
_local1.registerSkinElement(_local1.arrow_down, "arrow");
_local1.updateMCState("down", _local1.scroll_track_down);
_local1.scroll_up.arrow = _local1.arrow_up;
_local1.scroll_down.arrow = _local1.arrow_down;
_local1.scroll_thumb.setEnabled(false);
_local1.scroll_up.setEnabled(false);
_local1.scroll_down.setEnabled(false);
if (Object.prototype.TScrollbarActive == undefined) {
Object.prototype.TScrollbarActive = _local1;
ASSetPropFlags(Object.prototype, ["TScrollbarActive"], 1);
_local1.setActive();
}
if (!_parent.TComponent) {
if (_local1._rotation != 0) {
var tmpHorizontal = true;
_local1._rotation = 0;
}
_local1.setSize(_local1._width, _local1._height);
_local1.setScrollProperties(0, 0, 0);
if (tmpHorizontal) {
_local1.setHorizontal(true);
_local1._y = _local1._y - _local1.width;
}
}
}
this.TComponent = true;
if (_parent.TComponent) {
this.hostStyle = _parent.hostStyle;
this.hostClip = _parent.hostClip;
} else {
this.hostClip = this;
}
this.initClips = {scroll_up:true, scroll_down:true, scroll_thumb:true};
this.TSubComponents = {scroll_up:true, scroll_down:true, scroll_thumb:true};
this.scroll_thumb.skinName = "thumb";
stop();
Instance of Symbol 21 MovieClip "scroll_thumb" in Symbol 24 MovieClip Frame 1
onClipEvent (load) {
this.drag = false;
}
onClipEvent (enterFrame) {
_parent.onEnter();
this._y = Math.round(this._y);
}
onClipEvent (mouseMove) {
_parent.onEnter();
if (this.drag) {
this._y = _parent._ymouse + this.drag;
if (this._y < _parent.track_top) {
this._y = _parent.track_top;
} else if (this._y > (_parent.track_bottom - this._height)) {
this._y = _parent.track_bottom - this._height;
}
}
updateAfterEvent();
}
onClipEvent (mouseDown) {
_parent.onMouseD();
}
onClipEvent (mouseUp) {
_parent.onMouseU();
}
Symbol 27 MovieClip Frame 1
this.org_x = this._parent.image_mc._x;
this.org_y = this._parent.image_mc._y;
this.setColor = function (mc, _c) {
var _local1 = new Color(mc);
_local1.setRGB(parseInt(_c, 16));
};
this.image_down = function () {
var _local1 = this;
_local1._parent.image_mc._x = _local1.org_x + 1;
_local1._parent.image_mc._y = _local1.org_y + 1;
};
this.image_up = function () {
var _local1 = this;
_local1._parent.image_mc._x = _local1.org_x;
_local1._parent.image_mc._y = _local1.org_y;
};
this._onRollOver = function () {
var _local1 = this;
if (_local1._parent.enabled) {
_local1.setColor(_local1.face_mc, _global.properties.colors.button_rollover_color);
_local1._parent._onRollOver();
}
};
this._onRollOut = function () {
var _local1 = this;
if (_local1._parent.enabled) {
_local1.setColor(_local1.face_mc, _global.properties.colors.button_face_color);
_local1._parent._onRollOut();
}
};
this._onPress = function () {
var _local1 = this;
var _local2 = _global;
if (_local1._parent.enabled) {
_local1.image_down();
_local1.setColor(_local1.face_mc, _local2.properties.colors.button_press_color);
_local1.setColor(_local1.highlight_mc, _local2.properties.colors.button_shadow_color);
_local1.setColor(_local1.shadow_mc, _local2.properties.colors.button_highlight_color);
_local1._parent._onPress();
}
};
this._onRelease = function () {
var _local1 = this;
if (_local1._parent.enabled) {
_local1.image_up();
_local1._onRollOver();
_local1.setColor(_local1.highlight_mc, _global.properties.colors.button_highlight_color);
_local1.setColor(_local1.shadow_mc, _global.properties.colors.button_shadow_color);
_local1._parent._onRelease();
}
};
this._onDragOver = function () {
var _local1 = this;
_local1._onRollOver();
_local1._onPress();
_local1._parent._onDragOver();
};
this._onDragOut = function () {
var _local1 = this;
if (_local1._parent.enabled) {
_local1.image_up();
_local1._onRollOut();
_local1.setColor(highlight_mc, _global.properties.colors.button_highlight_color);
_local1.setColor(shadow_mc, _global.properties.colors.button_shadow_color);
_local1._parent._onDragOut();
}
};
Object.Button.addFLEMListener(this);
this.setStyle(face_mc, "button_face_color");
this.setStyle(highlight_mc, "button_highlight_color");
this.setStyle(shadow_mc, "button_shadow_color");
this.setStyle(this._parent.image_mc, "button_icon_color");
Symbol 31 MovieClip Frame 1
text.loadMovie(_parent.img_url);
this.setStyle(this, "text_box_font_color");
MovieClip.addFLEMListener(this);
this.onEnterFrame = function () {
var _local3 = this;
var _local2 = text.getBytesLoaded();
var _local1 = text.getBytesTotal();
if ((_local1 > 5) && (_local2 >= _local1)) {
_local3._parent.img_loaded = true;
MovieClip.removeFLEMListener(_local3);
delete _local3.onEnterFrame;
}
};
Symbol 32 MovieClip Frame 1
is_open = false;
is_text = true;
img_url = "";
ease_id = 0;
this.sectionChange = function (section) {
if (is_text) {
setText(_global.properties.demo_text[section]);
} else {
setFrame(section);
}
};
this.setText = function (text) {
section_txt.scroll = 1;
section_txt = ((("<P ALIGN='left'><FONT COLOR='#" + _global.properties.colors.text_box_font_color) + "'>") + text) + "</FONT></P>";
};
this.setFrame = function (frame) {
section_scroll.setScrollPosition();
img.text.gotoAndStop(frame);
var _local1 = Math.max(0, Math.round((img.text._height - 141) / 10));
if (_local1 > 0) {
_local1++;
}
section_scroll.setScrollProperties(10, 0, _local1);
};
this.setImageText = function (file) {
section_scroll.setScrollTarget();
is_text = false;
img_url = file;
this.gotoAndStop(2);
};
this.open = function () {
var _local1 = this;
is_open = true;
_global.clip_ease.clear_ease(ease_id);
ease_id = _global.clip_ease.add_mc(_local1, _local1._x, _level0.demo_bottom - _local1.bHeight());
};
this.close = function () {
is_open = false;
_global.clip_ease.clear_ease(ease_id);
ease_id = _global.clip_ease.add_mc(this, this._x, _level0.demo_bottom);
};
this.toggle = function () {
if (!is_open) {
open();
} else {
close();
}
};
this.close_mc._onRelease = function () {
if (this._parent.is_open) {
if (_global.AUDIO_MODE == "1") {
_level0.control_src.toggle_audio_mode();
} else {
_level0.control_src.toggle_text_box();
}
}
};
MovieClip.addFLEMListener(this);
_global.section_broadcaster.addFLEMListener(this);
_level0.control_src.default_style(this.back_mc, "text_box");
_level0.control_src.default_style(this.head_mc, "text_box");
head_mc.back_mc._visible = false;
stop();
Symbol 32 MovieClip Frame 2
stop();
this.onScroll = function (c) {
img.text._y = -(c.getScrollPosition() * 10);
};
section_scroll.setChangeHandler("onScroll", this);
setFrame(1);
Symbol 33 MovieClip [Menu_Select] Frame 1
max_distance = 50;
changeHandler = "";
selected_text = "";
ease_id = 0;
is_open = false;
MovieClip.addFLEMListener(this);
Mouse.addFLEMListener(this);
this.setup = function (data) {
var _local2 = this;
var depth = 0;
var width = 0;
var height = 0;
var _local1;
var _local3;
var padding = 2;
_local3 = 0;
while (_local3 < data.length) {
if (!selected_text) {
selected_text = data[_local3].label;
}
depth++;
if (data[_local3].label == "-") {
_local1 = _local2.r_attachMovie("rectangle", "spacer_" + depth, depth, {_width:width, _height:padding});
_local1._x = padding;
_local1._y = padding + height;
height = height + 2;
_level0.control_src.default_style(_local1, "menu_item_back");
} else {
_local1 = r_attachMovie(attach, "child_" + depth, depth, {__text:data[_local3].label});
_local1.showArrow(false);
if (!width) {
width = _local1.back_mc._width;
}
_local1._x = padding;
_local1._y = padding + height;
height = height + _local1.back_mc._height;
_local1.value = data[_local3].value;
_local1.showArrow(false);
_local1.__onRelease = function () {
var _local1 = this;
if (_local1._parent._parent.is_open) {
_local1._parent._parent.toggle();
_local1._parent._parent.onSelect(_local1._parent);
}
};
MovieClip.addFLEMListener(_local1);
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.disable) {
_local1.disable();
MovieClip.removeFLEMListener(_local1);
delete _local1.onEnterFrame;
}
};
}
_local3++;
}
padding = padding * 2;
_local2.back_mc.setSize(width + padding, height + padding);
};
this.menuOpened = function () {
var _local3;
var _local2;
var _local1;
for (_local3 in this) {
if (_local3.indexOf("child_") != -1) {
_local2 = this[_local3];
_local2.enable();
_local1 = _local2.back_mc;
if (_local1.hitTest(_level0._xmouse, _level0._ymouse)) {
_local1.onRollOver();
}
}
}
};
this.open = function () {
var _local1 = this;
is_open = true;
var _local3;
var _local2;
for (_local3 in _local1) {
if (_local3.indexOf("child_") != -1) {
_local2 = _local1[_local3];
_local2.enable();
_local2.back_mc.onRollOut();
_local2.disable();
}
}
beforeOpen();
_local1.onMouseMove = function () {
var _local1 = this;
var _local2 = _local1.back_mc._xmouse;
var _local3 = _local1.back_mc._ymouse;
if (((_local2 < (-_local1.max_distance)) || (_local2 > (_local1.back_mc._width + _local1.max_distance))) || (_local3 < (-_local1.max_distance))) {
_local1.close();
}
};
_local1.onMouseDown = function () {
var _local1 = this;
var _local2 = _local1.back_mc._xmouse;
var _local3 = _local1.back_mc._ymouse;
if (!(((_local2 > 0) && (_local2 < _local1.back_mc._width)) && (_local3 > 0))) {
_local1.close();
}
};
_global.clip_ease.clear_ease(ease_id);
ease_id = _global.clip_ease.add_mc(_local1, _local1._x, (_level0.demo_bottom - _local1.bHeight()) + 1);
_local1.onEaseComplete = function () {
menuOpened();
delete onEaseComplete;
};
};
this.close = function () {
var _local3 = this;
is_open = false;
delete onMouseMove;
delete onMouseDown;
var _local2;
var _local1;
for (_local2 in _local3) {
if (_local2.indexOf("child_") != -1) {
_local1 = _local3[_local2];
_local1.back_mc.onRollOut();
_local1.disable();
}
}
_global.clip_ease.clear_ease(ease_id);
ease_id = _global.clip_ease.add_mc(_local3, _local3._x, _level0.demo_bottom);
};
this.toggle = function () {
if (!is_open) {
open();
} else {
close();
}
};
this.setChangeHandler = function (f) {
changeHandler = f;
};
this.onSelect = function (c) {
selected = c;
this._parent[changeHandler](c);
};
bm = this.back_mc;
bm.setStyle(bm.back_mc, "menu_back_color");
bm.setStyle(bm.highlight_outer_top_mc, "border_highlight_outer_color");
bm.setStyle(bm.highlight_outer_left_mc, "border_highlight_outer_color");
bm.setStyle(bm.highlight_inner_top_mc, "border_highlight_inner_color");
bm.setStyle(bm.highlight_inner_left_mc, "border_highlight_inner_color");
bm.setStyle(bm.shadow_outer_bottom_mc, "border_shadow_outer_color");
bm.setStyle(bm.shadow_outer_right_mc, "border_shadow_outer_color");
bm.setStyle(bm.shadow_inner_bottom_mc, "border_shadow_inner_color");
bm.setStyle(bm.shadow_inner_right_mc, "border_shadow_inner_color");
bm.setStyle(bm.back_mc, "menu_back_alpha");
bm.setStyle(bm.highlight_outer_top_mc, "border_highlight_outer_alpha");
bm.setStyle(bm.highlight_outer_left_mc, "border_highlight_outer_alpha");
bm.setStyle(bm.highlight_inner_top_mc, "border_highlight_inner_alpha");
bm.setStyle(bm.highlight_inner_left_mc, "border_highlight_inner_alpha");
bm.setStyle(bm.shadow_outer_bottom_mc, "border_shadow_outer_alpha");
bm.setStyle(bm.shadow_outer_right_mc, "border_shadow_outer_alpha");
bm.setStyle(bm.shadow_inner_bottom_mc, "border_shadow_inner_alpha");
bm.setStyle(bm.shadow_inner_right_mc, "border_shadow_inner_alpha");
delete bm;
Symbol 34 MovieClip Frame 1
__last_percent = 0;
__last_load_percent = 0;
this.setSize = function (w, h) {
back_mc.setSize(w, h);
setPercent(__last_percent);
setLoadPercent(__last_load_percent);
};
this.setPercent = function (p) {
var _local1 = back_mc._width - 4;
__last_percent = p;
bar_mc._height = back_mc._height - 4;
bar_mc._width = fromPercent(p, _local1);
};
this.setLoadPercent = function (p) {
__last_load_percent = p;
var _local1 = back_mc._width - 4;
load_mc._height = back_mc._height - 4;
load_mc._width = fromPercent(p, _local1);
};
this.fromPercent = function (p, w) {
return(Math.min(w, Math.max(0, ((p * w) / 100) - 1)));
};
this.init = function () {
var _local1 = this;
var _local3 = _local1._width;
var _local2 = _local1._height;
_local1.setSize(_local3, _local2);
};
bar_mc._x = (bar_mc._y = (load_mc._x = (load_mc._y = 2)));
bm = this.back_mc;
this.setStyle(this.bar_mc, "progress_bar_color");
this.setStyle(this.load_mc, "progress_bar_load_color");
bm.setStyle(bm.back_mc, "progress_bar_back_color");
bm.setStyle(bm.highlight_outer_top_mc, "progress_bar_border_highlight_outer_color");
bm.setStyle(bm.highlight_outer_left_mc, "progress_bar_border_highlight_outer_color");
bm.setStyle(bm.highlight_inner_top_mc, "progress_bar_border_highlight_inner_color");
bm.setStyle(bm.highlight_inner_left_mc, "progress_bar_border_highlight_inner_color");
bm.setStyle(bm.shadow_outer_bottom_mc, "progress_bar_border_shadow_outer_color");
bm.setStyle(bm.shadow_outer_right_mc, "progress_bar_border_shadow_outer_color");
bm.setStyle(bm.shadow_inner_bottom_mc, "progress_bar_border_shadow_inner_color");
bm.setStyle(bm.shadow_inner_right_mc, "progress_bar_border_shadow_inner_color");
this.setStyle(this.bar_mc, "progress_bar_alpha");
this.setStyle(this.load_mc, "progress_bar_load_alpha");
bm.setStyle(bm.back_mc, "progress_bar_back_alpha");
bm.setStyle(bm.highlight_outer_top_mc, "progress_bar_border_highlight_outer_alpha");
bm.setStyle(bm.highlight_outer_left_mc, "progress_bar_border_highlight_outer_alpha");
bm.setStyle(bm.highlight_inner_top_mc, "progress_bar_border_highlight_inner_alpha");
bm.setStyle(bm.highlight_inner_left_mc, "progress_bar_border_highlight_inner_alpha");
bm.setStyle(bm.shadow_outer_bottom_mc, "progress_bar_border_shadow_outer_alpha");
bm.setStyle(bm.shadow_outer_right_mc, "progress_bar_border_shadow_outer_alpha");
bm.setStyle(bm.shadow_inner_bottom_mc, "progress_bar_border_shadow_inner_alpha");
bm.setStyle(bm.shadow_inner_right_mc, "progress_bar_border_shadow_inner_alpha");
delete bm;
this.init();
Symbol 37 MovieClip [Menu_Button] Frame 1
stop();
this.loaded = false;
this.control_disabled = false;
Object.Button.addFLEMListener(this.back_mc);
this.__icon = false;
this.showArrow = function (b) {
var _local1 = this;
_local1.__icon = (_local1.menu_arrow_mc._visible = b);
_local1.setText(_local1.__text);
};
this.setText = function (s) {
var _local2 = this;
_local2.__text = s;
var _local1 = _local2.menu_text_mc;
_local1.menu_text = ("<FONT COLOR='#" + _global.properties.colors[(_local2.is_over ? "menu_item_highlight_font_color" : "menu_item_font_color")]) + "'>";
_local1.menu_text = _local1.menu_text + s;
_local1.menu_text = _local1.menu_text + "</FONT>";
_local1._x = (_local2.__icon ? 20 : 5);
};
this.__onRollOver = (this.__onDragOver = function () {
var _local2 = this;
var _local1 = new Color(_local2.back_mc);
_local1.setRGB(parseInt(_global.properties.colors.menu_item_highlight_color, 16));
_local2.setText(_local2.__text);
});
this.__onRollOut = (this.__onDragOut = function () {
var _local2 = this;
var _local1 = new Color(_local2.back_mc);
_local1.setRGB(parseInt(_global.properties.colors.menu_item_back_color, 16));
_local2.setText(_local2.__text);
});
this.enable = function () {
var _local2 = this;
if (_local2.control_disabled) {
} else {
var _local1 = _local2.back_mc;
if (!_local2.to) {
_local1._onDragOver = (_local1._onRollOver = _local2.__onRollOver);
_local1._onDragOut = (_local1._onRollOut = _local2.__onRollOut);
}
_local1._onRelease = _local2.__onRelease;
_local1._onRollOut();
}
};
this.disable = function (control_disabled) {
this.control_disabled = control_disabled;
var _local1 = this.back_mc;
_local1.onRollOut();
delete _local1._onRollOver;
delete _local1._onDragOver;
delete _local1._onRollOut;
delete _local1._onDragOut;
delete _local1._onRelease;
};
this.showDisabled = function () {
var _local1 = new Color(this.back_mc.back_mc);
_local1.setRGB(parseInt(_global.properties.colors.menu_item_disabled_color, 16));
};
this.showSelected = function () {
var _local1 = new Color(this.back_mc.back_mc);
_local1.setRGB(parseInt(_global.properties.colors.menu_item_selected_color, 16));
};
bm = this.back_mc;
this.setStyle(this.menu_arrow_mc, "menu_item_arrow_color");
bm.setStyle(bm.back_mc, "menu_item_back_color");
bm.setStyle(bm.highlight_outer_top_mc, "border_highlight_outer_color");
bm.setStyle(bm.highlight_outer_left_mc, "border_highlight_outer_color");
bm.setStyle(bm.highlight_inner_top_mc, "border_highlight_inner_color");
bm.setStyle(bm.highlight_inner_left_mc, "border_highlight_inner_color");
bm.setStyle(bm.shadow_outer_bottom_mc, "border_shadow_outer_color");
bm.setStyle(bm.shadow_outer_right_mc, "border_shadow_outer_color");
bm.setStyle(bm.shadow_inner_bottom_mc, "border_shadow_inner_color");
bm.setStyle(bm.shadow_inner_right_mc, "border_shadow_inner_color");
this.setStyle(this.menu_arrow_mc, "menu_item_arrow_alpha");
bm.setStyle(bm.back_mc, "menu_item_back_alpha");
bm.setStyle(bm.highlight_outer_top_mc, "border_highlight_outer_alpha");
bm.setStyle(bm.highlight_outer_left_mc, "border_highlight_outer_alpha");
bm.setStyle(bm.highlight_inner_top_mc, "border_highlight_inner_alpha");
bm.setStyle(bm.highlight_inner_left_mc, "border_highlight_inner_alpha");
bm.setStyle(bm.shadow_outer_bottom_mc, "border_shadow_outer_alpha");
bm.setStyle(bm.shadow_outer_right_mc, "border_shadow_outer_alpha");
bm.setStyle(bm.shadow_inner_bottom_mc, "border_shadow_inner_alpha");
bm.setStyle(bm.shadow_inner_right_mc, "border_shadow_inner_alpha");
delete bm;
_global.styleFormat.applyChanges();
this.enable();
if (this.__text) {
this.setText(this.__text);
}
if (!this.__icon) {
this.showArrow(false);
}
this.loaded = true;
Symbol 39 MovieClip Frame 1
function sectionChange(section) {
var _local2 = _global;
var _local3 = section;
var _local1 = _local2.properties.demo_section[_local3];
if (!_local1.length) {
_local1 = _level0.control_src.format_message(_local2.properties.control_text.progress_section, _local3, _local2.DEMO_SECTION_COUNT);
} else {
_local1 = _local1 + ((((" (" + _local3) + " of ") + _local2.DEMO_SECTION_COUNT) + ")");
}
CONTROL_SECTION = ((("<P ALIGN='left'><FONT COLOR='#" + _local2.properties.colors.progress_bar_font_color) + "'>") + _local1) + "</FONT></P>";
}
_global.section_broadcaster.addFLEMListener(this);
Symbol 43 MovieClip Frame 1
this.setStyle(this, "control_bar_font_color");
Symbol 44 MovieClip Frame 1
tooltip = "autodemo";
Object.Button.addFLEMListener(this);
org_w = null;
org_h = null;
this._onRollOver = function () {
if (_global.properties.options.ad_link) {
if (org_w == null) {
org_w = _width;
org_h = _height;
}
_width = (org_w + 1);
_height = (org_h + 1);
} else {
tooltip = "";
}
};
this._onPress = (this._onRollOut = (this._onDragOut = function () {
if (_global.properties.options.ad_link) {
_width = org_w;
_height = org_h;
}
}));
this._onRelease = function () {
if (_global.properties.options.ad_link) {
_level0.demo_src.stop();
getURL ("http://www.autodemo.com/", "_blank");
_onRollOver();
}
};
Symbol 47 MovieClip Frame 1
stop();
if (!this.init) {
this.init = true;
_level0.control_src.demo_watch.addFLEMListener(this);
this.demoStartPlaying = function () {
this.gotoAndStop(2);
this._parent.tooltip = "pause";
};
this.demoStopPlaying = function () {
this.gotoAndStop(1);
this._parent.tooltip = "play";
};
}
Symbol 54 MovieClip Frame 1
MovieClip.addFLEMListener(this);
_visible = false;
_alpha = 0;
Symbol 55 MovieClip Frame 1
this.setup = function () {
var _local1 = this;
if (!_level0.control_src.is_false(_level0.use_bg)) {
_local1.setStyle(top, "background_color");
_local1.setStyle(left, "background_color");
_local1.setStyle(bottom, "background_color");
_local1.setStyle(right, "background_color");
o = {_alpha:100, _visible:true, _x:0, _y:0, _width:3000, _height:3000};
top.set(o);
left.set(o);
bottom.set(o);
right.set(o);
_local1.set({_x:_level0.demo_left, _y:_level0.demo_top});
init = true;
top._x = -(top._width / 2);
top._y = -top._height;
left._x = -left._width;
left._y = -(left._height / 2);
bottom._x = -(bottom._width / 2);
bottom._y = _level0.demo_height + _level0.control_height;
right._x = _level0.demo_width;
right._y = -(right._height / 2);
}
};
Symbol 61 MovieClip Frame 1
MovieClip.addFLEMListener(this);
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.play_mc.image_mc.init && (_local1.pause_mc.image_mc.init)) {
_level0.control_src.demo_watch.removeFLEMListener(_local1.play_mc.image_mc);
_level0.control_src.demo_watch.removeFLEMListener(_local1.pause_mc.image_mc);
_local1.play_mc.image_mc.gotoAndStop(1);
_local1.pause_mc.image_mc.gotoAndStop(2);
_local1.play_mc.enabled = (_local1.pause_mc.enabled = (_local1.reverse_mc.enabled = (_local1.forward_mc.enabled = (_local1.close_mc.enabled = false))));
MovieClip.removeFLEMListener(_local1);
delete _local1.onEnterFrame;
}
};
Symbol 70 MovieClip Frame 1
if (!this.init) {
this.stop();
this._visible = false;
Object.Button.addFLEMListener(this.back_mc);
Key.addFLEMListener(this);
this.setSize = function (w, h) {
var _local1 = this;
_local1.back_mc.setSize(w + 8, (h + 28) + 17);
_local1.frame_mc.setSize(w, h);
_local1.close_window_mc._x = (_local1.back_mc._width - _local1.close_window_mc._width) - 6;
_local1.close_window_mc._y = 6;
_local1.copyright_mc._x = 6;
_local1.copyright_mc._y = _local1.frame_mc._y + _local1.frame_mc._height;
};
this.center = function () {
var _local1 = this;
var _local3 = _local1._parent.black_out_mc._width;
var _local2 = _local1._parent.black_out_mc._height;
var w = _local1.bWidth();
var h = _local1.bHeight();
_local1._x = _level0.demo_left + Math.round((_local3 - w) / 2);
_local1._y = _level0.demo_top + Math.round((_local2 - h) / 2);
};
this.setText = function (field, s, obj, fc) {
var _local1 = fc;
var _local2 = obj;
if (_local2 == undefined) {
_local2 = this;
}
if (_local1 == undefined) {
_local1 = _global.properties.colors.control_bar_font_color;
} else {
_local1 = _global.properties.colors[_local1];
}
_local2[field] = ((("<FONT COLOR='#" + _local1) + "'>") + s) + "</FONT>";
};
this.close = function () {
var _local1 = this;
trace("Should be closing");
_local1.gotoAndStop(1);
_local1._x = (_local1._y = -1000);
_level0.control_src.demo_watch.removeFLEMListener(_local1);
_global.timer.clearInterval(_local1.int_id);
};
this.close_window_mc._onRelease = function () {
var _local1 = this;
trace("Close button pressed");
delete _local1._parent.onKeyUp;
_local1._parent.close();
_level0.control_src.toggle_black_out(_local1._parent, 1);
};
_level0.control_src.default_style(this.back_mc);
fc = this.frame_mc;
fc.setStyle(fc.back_mc, "help_back_color");
fc.setStyle(fc.highlight_outer_top_mc, "border_highlight_outer_color");
fc.setStyle(fc.highlight_outer_left_mc, "border_highlight_outer_color");
fc.setStyle(fc.highlight_inner_top_mc, "border_highlight_inner_color");
fc.setStyle(fc.highlight_inner_left_mc, "border_highlight_inner_color");
fc.setStyle(fc.shadow_outer_bottom_mc, "border_shadow_outer_color");
fc.setStyle(fc.shadow_outer_right_mc, "border_shadow_outer_color");
fc.setStyle(fc.shadow_inner_bottom_mc, "border_shadow_inner_color");
fc.setStyle(fc.shadow_inner_right_mc, "border_shadow_inner_color");
this.init = true;
}
Symbol 70 MovieClip Frame 2
contact_mc._visible = false;
help_mc._visible = true;
error_mc._visible = false;
this.setText("copyright", _global.properties.copyright, this.copyright_mc);
this.setText("info_title", ("<B>" + _global.properties.control_text.help_title) + "</B>");
this.setText("play_pause", _global.properties.control_text.help_play_pause, this.help_mc, "help_font_color");
this.setText("forward_reverse", _global.properties.control_text.help_forward_reverse, this.help_mc, "help_font_color");
this.setText("close", _global.properties.control_text.help_close, this.help_mc, "help_font_color");
this.setText("content_menu", _global.properties.control_text.help_content_menu, this.help_mc, "help_font_color");
this.setText("option_menu", _global.properties.control_text.help_option_menu, this.help_mc, "help_font_color");
dsm = this.help_mc.demo_select_mc;
osm = this.help_mc.option_select_mc;
dsm.setText(_global.properties.control_text.help_content_menu_header, "help_font_color");
dsm.showArrow(true);
dsm.back_mc.back_mc._alpha = 100;
dsm.disable();
osm.setText(_global.properties.control_text.help_option_menu_header, "help_font_color");
osm.showArrow(true);
osm.back_mc.back_mc._alpha = 100;
osm.disable();
this.setSize(382, 232);
this.center();
this.onKeyUp = function () {
var _local1 = Key.getCode();
if (_local1 == 72) {
this.close_window_mc.onRelease();
} else if ((_local1 == 73) && (_global.CTA_ENABLED)) {
this.gotoAndStop("info");
}
};
Symbol 70 MovieClip Frame 7
contact_mc._visible = true;
help_mc._visible = false;
error_mc._visible = false;
this.setText("copyright", _global.copyright, this.copyright_mc);
this.setText("info_title", ("<B>" + _global.properties.contact_header.title) + "</B>");
if (_level0["@global"].properties.options.info_swf.length > 0) {
custom_mc.loadMovie(_level0["@global"].properties.options.info_swf);
MovieClip.addFLEMListener(this);
this.onEnterFrame = function () {
var _local2 = this;
var _local1 = custom_mc.getBytesLoaded();
var _local3 = custom_mc.getBytesTotal();
if ((_local1 > 5) && (_local1 >= _local3)) {
_local2.setSize(custom_mc._width + 4, custom_mc._height + 4);
_local2.center();
delete _local2.onEnterFrame;
}
};
} else {
lf = newline;
sp = "<FONT SIZE=\"8\">\n</FONT>";
info_text = "";
var gp = _global.properties;
for (var item in gp.contact_info) {
if ((item != "title") && (gp.contact_info[item] != "")) {
info_text = info_text + (("<B>" + gp.contact_header[item]) + "</B>");
info_text = info_text + lf;
info_text = info_text + gp.contact_info[item].tabLines();
info_text = info_text + (lf + sp);
}
}
this.setSize(382, 232);
this.center();
}
this.setText("contact_information", info_text, contact_mc, "help_font_color");
this.setSize(382, 232);
this.center();
if (this.is_call_to_action) {
trace("Call to action intiated");
this.timeOut = function () {
trace("CTA - Timed Out");
_level0.control_src.demo_watch.removeFLEMListener(this);
this.close_window_mc._onRelease();
_level0.demo_src.play();
};
this.demoStopPlaying = function () {
var _local1 = _global;
var _local3 = this;
trace("CTA - Demo Stopped");
if ((_local1.CTA_TIMEOUT > 0) || (_local1.DEMO_LOOP)) {
var _local2 = _local1.CTA_TIMEOUT;
if ((_local1.CTA_TIMEOUT == 0) && (_local1.DEMO_LOOP)) {
_local2 = 10000;
}
_local3.int_id = _local1.timer.setInterval(_local3, "timeOut", _local2, true);
} else {
trace("CTA - Time Out disabled");
}
_level0.control_src.demo_watch.removeFLEMListener(_local3);
};
_level0.control_src.demo_watch.addFLEMListener(this);
} else {
this.onKeyUp = function () {
var _local1 = Key.getCode();
if (_local1 == 73) {
this.close_window_mc.onRelease();
} else if (_local1 == 72) {
this.gotoAndStop("help");
}
};
}
Symbol 70 MovieClip Frame 12
contact_mc._visible = false;
help_mc._visible = false;
error_mc._visible = true;
this.setText("copyright", _global.properties.copyright, this.copyright_mc);
this.setText("info_title", "<B>Error</B>");
this.setText("error_txt", _global.error_message, this.error_mc, "help_font_color");
if (_global.error_fatal) {
this.setText("info_title", "<B>Fatal Error</B>");
this.close_window_mc.enabled = false;
}
this.setSize(350, 150);
this.center();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 53
stop();
_global.timer.setInterval(this._parent, "play_demo", _global.DEMO_SPLASH_DELAY, true);
Symbol 101 MovieClip Frame 1
function setText(s) {
audio_txt.autoSize = true;
audio_txt.selectable = false;
audio_txt.htmlText = s;
}
function setSize(w) {
var _local1 = w;
_local1 = Math.round((60 * _local1) / 100);
_local1 = _local1 - sound_mc._width;
audio_txt._width = _local1;
if (audio_txt._height < sound_mc._height) {
audio_txt._y = Math.round((sound_mc._height - audio_txt._height) / 2);
} else {
sound_mc._y = Math.round((audio_txt._height - sound_mc._height) / 2);
}
width = audio_txt._x + audio_txt.textWidth;
}
function set_pre_text() {
_parent.set_pre_text();
}
Symbol 102 MovieClip Frame 1
function setTitle(s) {
title_txt.text = s;
}
function resize() {
w = title_txt._width + (padding * 2);
w = Math.max(min_w, w);
audio_mc.setSize(w);
h = (audio_mc._y + audio_mc._height) + padding;
h = Math.max(min_h, h);
var _local1 = back_mc;
_local1.t_mc._x = _local1.tl_mc._width;
_local1.t_mc._width = w - (_local1.tl_mc._width + _local1.tr_mc._width);
_local1.tr_mc._x = _local1.t_mc._x + _local1.t_mc._width;
_local1.l_mc._y = _local1.tl_mc._height;
_local1.l_mc._height = h - (_local1.tl_mc._height + _local1.bl_mc._height);
_local1.bl_mc._y = _local1.l_mc._y + _local1.l_mc._height;
_local1.b_mc._x = _local1.bl_mc._width;
_local1.b_mc._y = _local1.bl_mc._y;
_local1.b_mc._width = w - (_local1.bl_mc._width + _local1.br_mc._width);
_local1.br_mc._x = _local1.b_mc._x + _local1.b_mc._width;
_local1.br_mc._y = _local1.b_mc._y;
_local1.r_mc._x = _local1.tr_mc._x;
_local1.r_mc._y = _local1.tr_mc._height;
_local1.r_mc._height = _local1.l_mc._height;
_local1.c_mc._x = 15;
_local1.c_mc._y = _local1.t_mc._height;
_local1.c_mc._width = _local1.t_mc._width;
_local1.c_mc._height = _local1.l_mc._height;
logo_mc._x = w - (logo_mc._width + 15);
title_txt._x = Math.round((w - title_txt._width) / 2);
progress_mc._x = Math.round((w - progress_mc._width) / 2);
audio_mc._x = Math.round((w - audio_mc.width) / 2);
}
this._visible = false;
padding = 30;
min_w = 356;
min_h = 183;
title_txt.autoSize = true;
this.display = function (silent) {
var _local1 = this;
audio_mc.setText(("<font color='#000000'>" + _global.properties.control_text.splash_audio_on) + "</font>");
setTitle(_global.properties.demo_text.title);
resize();
_local1._x = _level0.demo_left + Math.round((_level0.demo_width - _local1._width) / 2);
_local1._y = _level0.demo_top + Math.round((_level0.demo_height - _local1._height) / 2);
_level0.demo_src.gotoAndStop(3);
if (silent == false) {
_local1._visible = true;
_local1.progress_mc.play();
}
};
this.play_demo = function () {
_level0.control_src.control_enable();
_level0.demo_src.play();
this._visible = false;
if (_level0.audio_off == "1") {
_global.DEMO_AUDIO.setVolume(0);
} else {
_level0.DEMO_AUDIO.setVolume(100);
}
if (_level0.text_box_on == "1") {
_level0.control_src.toggle_text_box();
}
if (_level0.loop == "1") {
_level0.control_src.toggle_loop();
}
};
this.set_pre_text = function () {
_level0.text_box_on = "1";
if (_global.AUDIO_MODE == 1) {
_level0.audio_off = 1;
}
_level0.control_src.set_menus();
audio_mc.setText(("<font color='#000000'>" + _global.properties.control_text.splash_audio_off) + "</font>");
resize();
};
Symbol 118 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
function findTooltip(t) {
var tip = "";
var s = "";
var mc;
if ((t != null) && (t.indexOf("/") != -1)) {
var i = t.length;
while (i != -1) {
s = t.substring(0, i);
mc = eval (s);
if (typeof(mc.tooltip) == "string") {
tip = mc.tooltip;
break;
}
i = t.lastIndexOf("/", i - 1);
}
}
return(tip);
}
function onMouseIdle() {
var _local1 = this;
var _local2 = findToolTip(_droptarget);
if (_local2 != "") {
x_org = _x;
y_org = _y;
timenow = getTimer();
tiptarget = _droptarget;
_local1.onEnterFrame = function () {
if ((getTimer() - timenow) >= _global.TOOLTIP_INTERVAL) {
this.showTip();
delete this.onEnterFrame;
}
};
_local1.stopDrag();
}
}
function onMouseActivity() {
tiptarget = "";
_visible = false;
delete this.onEnterFrame;
this.startDrag(true);
}
_visible = false;
this.startDrag(true);
int_id = 0;
tiptarget = "";
y_org = 0;
x_org = 0;
tooltip6_mc._visible = false;
f6tooltip = false;
detinit = false;
this.showTip = function () {
var _local2 = _global;
if (((!detinit) && (_level0.control_f6up)) && (typeof(_local2.properties.tooltip) == "object")) {
tooltip6_mc.tip_txt.autoSize = "left";
if (_local2.properties.tooltip.size) {
var _local3 = new TextFormat();
_local3.size = _local2.properties.tooltip.size;
tooltip6_mc.tip_txt.setNewTextFormat(_local3);
}
f6tooltip = true;
tooltip6_mc._visible = true;
tooltip_mc._visible = false;
}
detinit = true;
var _local1 = findToolTip(tiptarget);
if (_local1 != "") {
if (!f6tooltip) {
var c = new Color(tooltip_mc);
tooltip_mc.gotoAndStop(_local1);
back_mc.setSize(Math.round(tooltip_mc._width), Math.round(tooltip_mc._height));
} else {
var c = new Color(tooltip6_mc);
tooltip6_mc.tip_txt.text = _local2.properties.tooltip[_local1];
var h = (tooltip6_mc.tip_txt.textHeight + 12);
var w = (tooltip6_mc.tip_txt.textWidth + 12);
back_mc.setSize(w, h);
tooltip6_mc._x = Math.round((w - tooltip6_mc._width) / 2);
tooltip6_mc._y = Math.round((h - tooltip6_mc._height) / 2);
}
c.setRGB(parseInt(_local2.properties.colors.control_bar_font_color, 16));
_y = (y_org - (back_mc._height + 3));
_x = (Math.min(x_org, _level0.demo_right - back_mc._width) - 3);
_visible = true;
}
};
_level0.control_src.demo_watch.addFLEMListener(this);
_level0.control_src.default_style(this.back_mc);
MovieClip.addFLEMListener(this);
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
unloadMovieNum (_level0.control_src.control_level);
level = _level0.demo_level;
loadMovieNum (this._parent.toLoad, _level0.demo_level, "GET");