Frame 1
dx = 0;
dy = 0;
progress_type = 0;
line_thickness = 2;
text_format = new textformat("Verdana", 11, 5592405, 1);
text_align = 2;
display = 1;
os_width = 200;
os_height = 10;
os_line_color = 10066329 /* 0x999999 */;
os_line_alpha = 30;
os_fill_type = 1;
os_fill_colors = [13684960, 13684960];
os_fill_alphas = [255, 255];
os_fill_ratios = [0, 255];
os_roundness = 100;
is_padding = 0;
is_line_color = 10066329 /* 0x999999 */;
is_line_alpha = 30;
is_fill_type = 1;
is_fill_colors = [3487029, 16777215];
is_fill_alphas = [255, 255];
is_fill_ratios = [0, 255];
is_roundness = 100;
delay_showing = 0;
rrect = function (mc, tl_x, tl_y, br_x, br_y, roundness) {
var r = ((math.min(br_x - tl_x, br_y - tl_y) * roundness) / 200);
var ex = r;
var ey = 0;
mc.moveto(br_x, tl_y + r);
var a = 45;
while (a < 405) {
if (a % 90) {
var x = ((!((90 < a) and (a < 270))) ? (br_x - r) : (tl_x + r));
var y = ((180 >= a) ? (br_y - r) : (tl_y + r));
mc.curveto(ex + x, ey + y, ex + x, ey + y);
}
ex = r * math.cos(a / 57.2960014343262);
ey = r * math.sin(a / 57.2960014343262);
var cx = (ex + ((r * 0.414209991693497) * math.sin(a / 57.2960014343262)));
var cy = (ey - ((r * 0.414209991693497) * math.cos(a / 57.2960014343262)));
mc.curveto(cx + x, cy + y, ex + x, ey + y);
a = a + 45;
}
};
ip = math.min(is_padding, math.min(os_width, os_height) / 2);
hw = os_width / 2;
hh = os_height / 2;
r = 1.5 * math.sqrt((hw * hw) + (hh * hh));
p = createemptymovieclip("p_mc", l);
p.createemptymovieclip("os", 1);
p.createemptymovieclip("is", 2);
p.createemptymovieclip("m", 3);
p.createtextfield("l", 4, 0, 0, 0, 0);
p.is.setmask(p.m);
p.l.setnewtextformat(text_format);
p.l.selectable = false;
p.l.autosize = "center";
p._x = (stage.width / 2) + dx;
p._y = (stage.height / 2) + dy;
p.os.linestyle(line_thickness, os_line_color, os_line_alpha);
p.os.begingradientfill(((os_fill_type >= 2) ? "radial" : "linear"), os_fill_colors, os_fill_alphas, os_fill_ratios, {matrixtype:"box", x:-hw, y:-hh, w:2 * hw, h:2 * hh, r:((!os_fill_type) ? 0 : ((-math.pi) / 2))});
rrect(p.os, -hw, -hh, hw, hh, os_roundness);
p.os.endfill();
p.os.linestyle(line_thickness, is_line_color, is_line_alpha);
rrect(p.os, ip - hw, ip - hh, hw - ip, hh - ip, is_roundness);
p.is.linestyle(line_thickness, is_line_color, is_line_alpha);
p.is.begingradientfill(((is_fill_type >= 2) ? "radial" : "linear"), is_fill_colors, is_fill_alphas, is_fill_ratios, {matrixtype:"box", x:ip - hw, y:ip - hh, w:2 * (hw - ip), h:2 * (hh - ip), r:((!is_fill_type) ? 0 : ((-math.pi) / 2))});
rrect(p.is, ip - hw, ip - hh, hw - ip, hh - ip, is_roundness);
p.is.endfill();
onenterframe = function () {
p._visible = delay_showing < getTimer();
perc = getbytesloaded() / getbytestotal();
if (perc < 1) {
p.m.clear();
p.m.linestyle(line_thickness, 0);
p.m.beginfill(0);
if (progress_type == 0) {
rrect(p.m, ip - hw, ip - hh, (ip - hw) + ((2 * (hw - ip)) * perc), hh - ip, 0);
} else if (progress_type == 1) {
rrect(p.m, ip - hw, (ip - hh) + ((2 * (hh - ip)) * (1 - perc)), hw - ip, hh - ip, 0);
} else {
p.m.moveto(0, 0);
var a = 0;
while (360 >= a) {
var a0 = (math.min(a, perc * 360) / 57.2960014343262);
p.m.lineto(r * math.sin(a0), (-r) * math.cos(a0));
a = a + 45;
}
}
p.m.endfill();
if (display) {
p.l.text = ((1 >= display) ? (math.floor(100 * perc) + " %") : (math.floor(getbytesloaded() / 1024) + " KB"));
}
p.l._y = (((text_align - 1) * (hh + p.l.textheight)) - (p.l.textheight / 2)) - 2;
} else {
onenterframe = null;
p.removemovieclip();
gotoAndPlay (3);
}
};
onenterframe();
Frame 2
if (perc != 1) {
stop();
}
Frame 726
stop();
Frame 2185
stop();
Symbol 197 MovieClip [KC8_Object] Frame 1
#initclip 1
var o = "** KOOLMOVES FLASH 8 COMPONENTS, COPYRIGHT 2005 - 2007 WILBERT BRANTS **";
o = new movieclip();
o.usehandcursor = false;
o.$fp = $version.split(" ");
o.$fp = o.$fp[1].split(",");
o.$fp = o.$fp[0];
o.s_bmp = flash.display.bitmapdata;
o.s_rct = flash.geom.rectangle;
o.s_pnt = flash.geom.point;
o.s_mat = flash.geom.matrix;
o.s_cmf = flash.filters.colormatrixfilter;
o.limit = function (b1, b2, v) {
if (b1 < b2) {
return(((!((v >= b1) and (b2 >= v))) ? (((b2 >= v) ? (b1) : (b2))) : (v)));
}
return(((!((v >= b2) and (b1 >= v))) ? (((b1 >= v) ? (b2) : (b1))) : (v)));
};
o.trim = function (v) {
var s = v.length;
var i = 0;
while (i < s) {
if (32 < v.charcodeat(i)) {
v = v.substring(i);
break;
}
i++;
}
s = v.length;
var i = s;
while (0 < i) {
if (32 < v.charcodeat(i)) {
v = v.substring(0, i + 1);
break;
}
i--;
}
return(v);
};
o.f_set = function (v) {
if (v) {
v[0] = this.limit(0, 3, v[0]);
} else {
v = [1, 45];
}
if (v.length < 3) {
v[2] = 0.200000002980232;
}
this.f_shw = new flash.filters.dropshadowfilter(v[0] * 2, v[1], 0, v[2]);
this.f_btn = new flash.filters.bevelfilter(v[0], v[1], -1, 0.5, 0, 0.5, 2, 2);
this.f_bpr = new flash.filters.bevelfilter(v[0], v[1], -1, 0.200000002980232, 0, 0.200000002980232, 2, 2);
};
o.f_set();
o.f_ltn = new o.s_cmf([1, 0, 0, 0, 16, 0, 1, 0, 0, 16, 0, 0, 1, 0, 16, 0, 0, 0, 1, 0]);
o.f_dkn = new o.s_cmf([1, 0, 0, 0, -16, 0, 1, 0, 0, -16, 0, 0, 1, 0, -16, 0, 0, 0, 1, 0]);
o.kc8_init = function (v) {
this.f_set(v);
this._rotation = 0;
this._xscale = (this._yscale = 100);
this._x = math.round(this._x);
this._y = math.round(this._y);
v = 0;
while (v < this.c.length) {
this.c[v] = this.c[v] | -16777216;
v++;
}
if (this.$fp < 8) {
if (_root.kc8_warning._name != "KC8_warning") {
_root.createtextfield("KC8_warning", math.max(32768, _root.getnexthighestdepth()), stage.width / 2, 0, 0, 0);
v = _root.kc8_warning;
v.autosize = "center";
v.selectable = false;
v.background = true;
v.border = true;
v.html = true;
v.htmltext = "<p align=\"center\"><font face=\"_sans\" size=\"12\" color=\"#800000\"><b>Flash Player 8 is required\nto view this flash movie.\n\n<a href=\"http://www.macromedia.com/go/getflash\" target=\"_blank\">\u00BB Please upgrade \u00AB</a></b></font></p>";
v._y = (stage.height - v.textheight) / 2;
}
}
};
o.ocopy = function (o) {
var v = (new o.__proto__.constructor());
var p;
for (p in o) {
v[p] = ((typeof(o[p]) != "object") ? (o[p]) : (this.ocopy(o[p])));
}
return(v);
};
o.bmp9slice = function (dst, src, rct) {
if (!src.draw) {
src = flash.display.bitmapdata.loadbitmap(((!this.prefix) ? (src) : (this.prefix + src)));
}
var t = (new this.s_bmp(dst.width, src.height, true, 0));
var s = (((dst.width - src.width) + rct.width) / rct.width);
t.draw(src, new this.s_mat(s, 0, 0, 1, rct.left * (1 - s), 0), undefined, undefined, undefined, true);
t.copypixels(src, new this.s_rct(0, 0, rct.left, src.height), new this.s_pnt(0, 0));
t.copypixels(src, new this.s_rct(rct.right, 0, src.width - rct.right, src.height), new this.s_pnt((dst.width - src.width) + rct.right, 0));
s = ((dst.height - src.height) + rct.height) / rct.height;
dst.draw(t, new this.s_mat(1, 0, 0, s, 0, rct.top * (1 - s)), undefined, undefined, undefined, true);
dst.copypixels(t, new this.s_rct(0, 0, dst.width, rct.top), new this.s_pnt(0, 0));
dst.copypixels(t, new this.s_rct(0, rct.bottom, dst.width, src.height - rct.bottom), new this.s_pnt(0, (dst.height - src.height) + rct.bottom));
t.dispose();
};
o.bmprecolor = function (src, c1, c2) {
src.threshold(src, src.rectangle, src.rectangle.topleft, "==", c1, c2);
};
o.box = function (l, t, r, b, c, a, f, m) {
if (typeof(c) == "object") {
this.linestyle();
this.beginbitmapfill(c, m, true, false);
} else {
this.beginfill(c, a);
}
this.moveto(l, t);
this.lineto(r, t);
this.lineto(r, b);
this.lineto(l, b);
if (!f) {
this.lineto(l, t);
l++;
t++;
r--;
b--;
this.lineto(l, t);
this.lineto(l, b);
this.lineto(r, b);
this.lineto(r, t);
this.lineto(l, t);
}
this.endfill();
};
o.o_rmc = function (width, height, fill, name, depth, x, y) {
var m = this.attachmovie("KC8_Object", name, depth, {_x:x, _y:y});
m.box(0, 0, width, height, fill, 100, true);
return(m);
};
o.o_rmc_btn = function (width, height, fill, name, depth, x, y) {
return(this.o_btn_(this.o_rmc(width, height, fill, name, depth, x, y)));
};
o.o_bmc = function (bitmap, name, depth, x, y) {
var m = this.attachmovie("KC8_Object", name, depth, {_x:x, _y:y});
m.attachbitmap(bitmap, 1);
return(m);
};
o.o_bmc_btn = function (bitmap, name, depth, x, y) {
return(this.o_btn_(this.o_bmc(bitmap, name, depth, x, y)));
};
o.o_btn_ = function (m) {
m.f_set(this.s);
m.onpress = function () {
this._pressing = true;
this._timer = getTimer();
this._wait = 500;
this.filters = [this.f_bpr, this.f_dkn];
this.pressed();
this.onenterframe = function () {
if (this.pressing and (!this.hittest(_root._xmouse, _root._ymouse))) {
this.onrollout();
}
if (this._pressing) {
var v = getTimer();
if (this._wait < (v - this._timer)) {
this._timer = v;
this._wait = 50;
this.pressing();
}
} else {
this.onenterframe = null;
}
};
};
m.onrelease = (m.onrollover = function () {
((this._pressing = false));// not popped
((this.filters = [this.f_btn, this.f_ltn]));// not popped
this.released();
});
m.onreleaseoutside = (m.onrollout = function () {
((this._pressing = false));// not popped
((this.filters = [this.f_btn]));// not popped
this.released();
});
m.filters = [this.f_btn];
return(m);
};
object.kc8 = function () {
};
object.kc8.prototype = o;
object.registerclass("KC8_Object", object.kc8);
delete o;
#endinitclip
Symbol 200 MovieClip [KC8_Slider] Frame 1
#initclip 2
var o = new movieclip();
o.__proto__ = object.kc8.prototype;
o.__constructor__ = object.kc8;
o.tabchildren = false;
o.init = function () {
this.kc8_init(this.s);
this.length = this.limit(50, 2048, this.length);
this.tw = ((!this.thin) ? 19 : 15);
this.bw = this.tw - 4;
this.b_i = new this.s_bmp(this.bw, this.bw, 0, this.c[2]);
this.b_d = this.b_i.clone();
var v = 0;
while (v < ((!this.thin) ? 4 : 3)) {
this.b_i.fillrect(new this.s_rct(((!this.thin) ? 7 : 5) - v, ((!this.thin) ? 5 : 3) + v, 1 + (2 * v), 1), this.c[3]);
this.b_d.fillrect(new this.s_rct(((!this.thin) ? 7 : 5) - v, ((!this.thin) ? 9 : 6) - v, 1 + (2 * v), 1), this.c[3]);
v++;
}
this.o_rmc_btn(this.tw, this.length, this.c[0], "m_t", 1, 0, 0);
this.o_bmc_btn(this.b_i, "m_d", 2, 2, 2);
this.o_rmc_btn(this.bw, 1, this.c[1], "m_b", 3, 2, this.tw);
this.o_bmc_btn(this.b_d, "m_i", 4, 2, (this.length - this.bw) - 2);
if (this.horizontal) {
this._xscale = -100;
this._rotation = 270;
}
this.m_t.released = function () {
this.filters = [];
};
this.m_t.pressing = (this.m_t.pressed = function () {
this.released();
var p = this._parent;
if ((p._vis and (p.tw < this._ymouse)) and (this._ymouse < (p.length - p.tw))) {
var v = p._cur;
p._cur = p.limit(p._min, p._max, p._cur + ((p._vis - p._stp) * ((this._ymouse >= p.m_b._y) ? (((this._ymouse < (p.m_b._y + p.m_b._height)) ? 0 : 1)) : (-1))));
if (v != p._cur) {
p.update();
p.onmove(p._cur);
}
}
});
this.m_t.released();
this.m_i.pressing = (this.m_i.pressed = function () {
var p = this._parent;
var v = p._cur;
((p._cur = p.limit(p._min, p._max, p._cur + p._stp)));// not popped
if (v != p._cur) {
p.update();
p.onmove(p._cur);
}
});
this.m_d.pressing = (this.m_d.pressed = function () {
var p = this._parent;
var v = p._cur;
((p._cur = p.limit(p._min, p._max, p._cur - p._stp)));// not popped
if (v != p._cur) {
p.update();
p.onmove(p._cur);
}
});
this.m_b.pressed = function () {
var p = this._parent;
if (p._lh) {
this.startdrag(false, 2, p.tw, 2, p.tw + p._d);
this.onmousemove = function () {
this._parent._mm = true;
};
p.onenterframe = function () {
if (this._mm) {
var v = math.round(((this.m_b._y - this.tw) / this._lh) + this._min);
if (v != this._cur) {
this._cur = v;
this.onmove(v);
}
this._mm = false;
}
};
}
};
this.m_b.released = function () {
this.stopdrag();
this.onmousemove = (this._parent.onenterframe = null);
this._parent.update();
};
};
o.update = function () {
this.m_b._y = this.tw + (this._lh * (this._cur - this._min));
};
o._setscrollbar = function (min, max, stp, cur, vis) {
this.m_b.clear();
var v = ((this.length - this.tw) - this.tw);
var t = math.round(math.max(8, math.min(1, vis / ((vis + max) - min)) * v));
this.m_b.box(0, 0, this.bw, t, this.c[1], 100, true);
this._d = v - t;
this._lh = ((max != min) ? (this._d / (max - min)) : 0);
this._min = min;
this._max = max;
this._stp = stp;
this._cur = this.limit(min, max, cur);
this._vis = vis;
this.update();
};
o.setslider = function (min, max, cur) {
var v = ((max >= min) ? 1 : (-1));
if (this.horizontal) {
this._setscrollbar(min, max, v, cur, 0);
} else {
this._setscrollbar(max, min, -v, cur, 0);
}
this.filters = [this.f_shw];
};
o.getvalue = function () {
return(this._cur);
};
object.kc8_slider = function () {
this.init();
};
object.kc8_slider.prototype = o;
object.registerclass("KC8_Slider", object.kc8_slider);
delete o;
#endinitclip
Symbol 203 MovieClip [KC8_ContentPane] Frame 1
#initclip 3
var o = new movieclip();
o.__proto__ = object.kc8.prototype;
o.__constructor__ = object.kc8;
o.autohide = 1;
o.bartrans = (o.ignorecr = (o._ww = true));
o.ignorelf = (o._inv = (o._ef = (o._cw = false)));
o.init = function () {
this.kc8_init(this.s);
var v = this.ocopy(this.c);
v[0] = v[4];
var m = this.attachmovie("KC8_Slider", "nav", 8, {_x:0, _y:-19, length:75, horizontal:true, c:v, s:this.s});
m.onmove = function (v) {
this._parent._pcall(v);
};
m.m_i._y = 20;
m.m_b.removemovieclip();
m = new textformat();
m.size = 10;
m.color = this.c[6];
m.align = "right";
this.createtextfield("pn", 9, 39, -18, 35, 18);
this.pn.setnewtextformat(m);
this.pn.selectable = false;
this.width = this.limit(75, 2048, this.width);
this.height = this.limit(75, 2048, this.height);
this._miw = this.width - 6;
this._mih = this.height - 6;
this._lv = new loadvars();
this._mcl = new moviecliploader();
this._lv.o = (this._mcl.o = this);
this._snap = new this.s_bmp(this.width, this.height, 1, 0);
m = this.attachmovie("KC8_Object", "l0", 0);
m.box(0, 0, this.width, this.height, this.c[4], 100, true);
m = m.o_rmc(19, 19, this.c[0], "p", 0, this.width - 19, this.height - 19);
m.box(3, 3, 16, 16, this.c[4], 50, false);
m = this.attachmovie("KC8_Object", "l1", 1, {_x:1, _y:1});
m = m.attachmovie("KC8_Object", "h", 1);
m = this.attachmovie("KC8_Object", "l2", 2);
var i = 0;
while (i < 3) {
m.box(i, i, 50 - i, 50 - i, this.c[4], 100 - (i * 33), false);
i++;
}
m.scale9grid = new this.s_rct(5, 5, 40, 40);
this.attachmovie("KC8_Slider", "vs", 3, {_x:this.width - 19, _y:0, length:this.height - 19, c:this.c, s:this.s});
this.attachmovie("KC8_Slider", "hs", 4, {_x:0, _y:this.height - 19, length:this.width - 19, horizontal:true, c:this.c, s:this.s});
this.hs.onmove = function (v) {
var p = this._parent;
p.l1.h.scrollrect = new this.s_rct(v - 2, p.l1.h.scrollrect.y, p._iw + 4, p._ih + 4);
p.onscroll(v / this._max, p.vs._cur / p.vs._max);
};
this.vs.onmove = function (v) {
var p = this._parent;
p.l1.h.scrollrect = new this.s_rct(p.l1.h.scrollrect.x, v - 2, p._iw + 4, p._ih + 4);
p.onscroll(p.hs._cur / p.hs._max, v / this._max);
};
m = this.createemptymovieclip("l5", 5);
m._visible = false;
m.attachbitmap(this._snap, 1);
this.filters = [this.f_shw];
mouse.addlistener(this);
this.onmousewheel = function (d) {
if (this.vs._visible and this.hittest(_root._xmouse, _root._ymouse)) {
this.vs._cur = this.limit(this.vs._min, this.vs._max, this.vs._cur - (d * this.vs._stp));
this.vs.update();
this.vs.onmove(this.vs._cur);
}
};
this.setcontent(5, "KC8_Object");
var v = new contextmenu();
var f;
f = function (o) {
o._inv = !o._inv;
o.l1.filters = ((!o._inv) ? ([]) : ([new o.s_cmf([-1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0])]));
};
v.customitems.push(new contextmenuitem("Invert content colors", f));
f = function (o, i) {
var s = ((i.caption.indexof("in") >= 0) ? 2 : 0.5);
var v = ((!o.l1.h.g) ? "t" : "g");
var h = o.limit(25, 400, o.l1.h[v]._xscale * s);
if (h != o.l1.h[v]._xscale) {
o.l1.h[v]._xscale = h;
o.l1.h[v]._yscale = h;
v = (o.vs._cur + (o._ih / 2)) * s;
h = (o.hs._cur + (o._iw / 2)) * s;
o._update();
v = ((!o.vs._max) ? 0 : (o.limit(0, 1, (v - (o._ih / 2)) / o.vs._max)));
h = ((!o.hs._max) ? 0 : (o.limit(0, 1, (h - (o._iw / 2)) / o.hs._max)));
o.setscrollpos(h, v);
}
};
v.customitems.push(new contextmenuitem("Zoom in on content", f, true));
v.customitems.push(new contextmenuitem("Zoom out on content", f));
this.menu = v;
};
o._pcall = function (v) {
v = (this._page = ((!v) ? 1 : (this.limit(1, this._pages.length, v))));
this.pn.text = (v + " / ") + this._pages.length;
var p = this.ocopy(this._pages[v - 1]);
if (arguments[2] != undefined) {
p[2] = arguments[1];
p[3] = arguments[2];
}
this.setcontent.apply(this, p);
};
o.getpage = function () {
if (this.pn._visible) {
return(this._page);
}
};
o.setpage = function (v) {
if (this.pn._visible) {
this._pcall(v);
}
};
o._scv = function (v) {
this.hs.m_b._visible = (this.vs.m_b._visible = v);
};
o.setcontent = function () {
var m;
var v;
if (arguments[0].pop) {
this._pages = this.ocopy(arguments[0]);
this._pcall(arguments[1], arguments[2], arguments[3]);
this.nav.setslider(1, this._pages.length, this._page);
this.nav.filters = [];
} else if (1 < arguments.length) {
this.onenterframe = null;
this.nav._visible = (this.pn._visible = arguments.caller == this._pcall);
if (this._content) {
this._snap.fillrect(this._snap.rectangle, 0);
if (this.bartrans) {
this._scv(false);
}
this._snap.draw(this);
this.l5._visible = true;
this.l5._alpha = 100;
}
this._content = false;
this._bmp.dispose();
this._trans = arguments[2] & 3;
this._ttime = this.limit(0, 5, arguments[3]);
this._type = arguments[0] & 7;
this._source = arguments[1];
if (this._type & 4) {
m = this.l1.h.createemptymovieclip("g", 1);
if ((this._type == 4) and this._source) {
this._mcl.clip = this.ocopy(arguments[4]);
this._mcl.onloaderror = function () {
this.o._setprogress(-1);
};
this._mcl.onloadprogress = function (m, l, t) {
this.o._setprogress(math.max(0, l / t));
};
this._mcl.onloadinit = function () {
if (this.clip.width) {
this.o.l1.h.g.scrollrect = this.clip;
}
this.o._setprogress(1);
this.o._transit();
};
this._mcl.loadclip(this._source, m);
} else {
if (this._type == 5) {
m = this.l1.h.attachmovie(this._source, "g", 1, arguments[5]);
m._component = this;
if (arguments[4].width) {
m.scrollrect = arguments[4];
} else {
v = m.getbounds();
m.scrollrect = new this.s_rct(v.xmin, v.ymin, v.xmax - v.xmin, v.ymax - v.ymin);
}
v = m;
} else if (this._type == 6) {
v = (this._bmp = flash.display.bitmapdata.loadbitmap(this._source));
m.attachbitmap(v, 1);
} else {
v = this._source;
if (!v.draw) {
v = eval (v);
}
m.attachbitmap(v, 1);
v = v.draw;
}
if (v) {
this._transit();
} else {
this._setprogress(-1);
}
}
} else {
this.l1.h.createtextfield("t", 1, 0, 0, this.width - 25, 0);
v = this.l1.h.t;
v.html = (v.multiline = true);
v.selectable = false;
v.background = !this.l1.h.filters.length;
v.backgroundcolor = this.c[5];
v.autosize = "left";
v.wordwrap = this._ww;
v.embedfonts = this._ef;
v.stylesheet = this._ss;
v.condensewhite = this._cw;
v.setnewtextformat(this._tf);
v.antialiastype = "advanced";
if (this._type & 2) {
this._lv.ondata = function (v) {
this.o.onenterframe = (this.ondata = null);
if (v == undefined) {
this.o._setprogress(-1);
} else {
this.o._setprogress(1);
if (this.o.ignorelf) {
v = v.split(newline);
v = v.join("");
}
if (this.o.ignorecr) {
v = v.split("\r");
v = v.join("");
}
this.o.l1.h.t[((!(this.o._type & 1)) ? "text" : "htmltext")] = v;
this.o._transit();
}
};
this._lv.load(this._source);
this.onenterframe = function () {
this._setprogress(math.max(0, this._lv.getbytesloaded() / this._lv.getbytestotal()));
};
} else {
this.l1.h.t[((!(this._type & 1)) ? "text" : "htmltext")] = this._source;
this._transit();
}
}
}
};
o._setprogress = function (v) {
var x = (this.width - 16);
var y = (this.height - 16);
if (v >= 0) {
v = math.round(v * 169);
this._snap.fillrect(new this.s_rct(x, y, 13, 13), this.c[3]);
this._snap.fillrect(new this.s_rct(x, y, math.floor(v / 13), 13), this.c[2]);
this._snap.fillrect(new this.s_rct(x + math.floor(v / 13), (y + 13) - (v % 13), 1, v % 13), this.c[2]);
} else {
this._snap.fillrect(new this.s_rct(x, y, 13, 13), this.c[2]);
var i = 0;
while (i < 3) {
this._snap.fillrect(new this.s_rct((x + 3) + i, (y + 1) + (i * 2), 2 * (3.5 - i), 2), this.c[3]);
i++;
}
this._snap.fillrect(new this.s_rct(x + 5, y + 10, 3, 2), this.c[3]);
this._snap.setpixel(x + 6, y + 7, this.c[2]);
}
};
o._transit = function () {
this._update(true);
this.ontransit();
this._content = true;
if (this._ttime) {
this._time = getTimer();
this._seed = new date();
this.onenterframe = function () {
var p = ((0.00100000004749745 * (getTimer() - this._time)) / this._ttime);
if (1 < p) {
this.l5._visible = false;
this._scv(true);
this.onenterframe = null;
} else {
var v = this._snap;
if (this._trans == 1) {
v.pixeldissolve(v, v.rectangle, null, this._seed, (v.width * v.height) * p, 0);
} else if (this._trans == 2) {
v.fillrect(new this.s_rct(0, 0, v.width * p, v.height), 0);
} else if (this._trans == 3) {
v.fillrect(new this.s_rct(0, 0, v.width, v.height * p), 0);
} else {
this.l5._alpha = 100 - (100 * p);
}
}
};
} else {
this.l5._visible = false;
this._scv(true);
}
};
o._update = function (reset) {
var h;
var m;
var v;
var w;
var x;
var y;
m = this.l1.h;
if (reset) {
x = -2;
y = -2;
} else {
x = m.scrollrect.x;
y = m.scrollrect.y;
}
if (m.g) {
if (m.g.scrollrect) {
v = m.g._xscale / 100;
w = m.g.scrollrect.width * v;
h = m.g.scrollrect.height * v;
} else {
w = m.g._width;
h = m.g._height;
}
} else {
w = m.t._width;
h = m.t._height;
}
var hv = (!((this.autohide & 1) and (this._miw >= w)));
var vv = (!((this.autohide & 2) and ((this._mih - ((!hv) ? 0 : 19)) >= h)));
hv = !((this.autohide & 1) and ((this._miw - ((!vv) ? 0 : 19)) >= w));
this._ih = this._mih - ((!hv) ? 0 : 19);
this._iw = this._miw - ((!vv) ? 0 : 19);
this.l0.p._visible = hv or vv;
this.hs._visible = hv;
this.vs._visible = vv;
this.l1.scrollrect = new this.s_rct(0, 0, this._iw + 4, this._ih + 4);
m.scrollrect = new this.s_rct(x, y, this._iw + 4, this._ih + 4);
this.l2._width = this._iw + 6;
this.l2._height = this._ih + 6;
this.hs._setscrollbar(0, math.max(0, w - this._iw), 10, 0, this._iw);
this.vs._setscrollbar(0, math.max(0, h - this._ih), 10, 0, this._ih);
};
o.setscrollpos = function (h, v) {
var hs = this.hs;
var vs = this.vs;
hs._setscrollbar(0, hs._max, 10, math.round(hs._max * h), hs._vis);
vs._setscrollbar(0, vs._max, 10, math.round(vs._max * v), vs._vis);
this.l1.h.scrollrect = new this.s_rct(hs._cur - 2, vs._cur - 2, this._iw + 4, this._ih + 4);
};
var g;
var s;
o.$s = function (p, v) {
if (this.l1.h.t) {
this.l1.h.t[p] = v;
this._update(true);
}
};
o.setcontentfilters = function (v) {
this.l1.h.filters = v;
this.l1.h.t.background = !v.length;
};
o.settextformat = function () {
this.l1.h.t.settextformat.apply(this.l1.h.t, arguments);
this._update();
};
o.setnewtextformat = function (v) {
this._tf = this.ocopy(v);
this.l1.h.t.setnewtextformat(v);
};
g = function () {
return(this.c[5]);
};
s = function (v) {
this.c[5] = (this.l1.h.t.backgroundcolor = v);
};
o.addproperty("backgroundColor", g, s);
g = function () {
return(this._cw);
};
s = function (v) {
this._cw = v;
this.$s("condenseWhite", v);
};
o.addproperty("condenseWhite", g, s);
g = function () {
return(this._ef);
};
s = function (v) {
this._ef = (this.l1.h.t.embedfonts = v);
};
o.addproperty("embedFonts", g, s);
g = function () {
return(this.l1.h.t.htmltext);
};
s = function (v) {
this.$s("htmlText", v);
};
o.addproperty("htmlText", g, s);
g = function () {
return(this.l1.h.t.length);
};
o.addproperty("length", g, null);
g = function () {
return(this._ss);
};
s = function (v) {
this._ss = v;
this.$s("styleSheet", v);
};
o.addproperty("styleSheet", g, s);
g = function () {
return(this.l1.h.t.text);
};
s = function (v) {
this.$s("text", v);
};
o.addproperty("text", g, s);
g = function () {
return(this._ww);
};
s = function (v) {
this.l1.h.t._width = this._width - 25;
this._ww = v;
this.$s("wordWrap", v);
};
o.addproperty("wordWrap", g, s);
object.kc8_contentpane = function () {
this.init();
};
object.kc8_contentpane.prototype = o;
object.registerclass("KC8_ContentPane", object.kc8_contentpane);
delete g;
delete s;
delete o;
#endinitclip
Symbol 206 MovieClip [KC8_Button] Frame 1
#initclip 4
var o = new movieclip();
o.__proto__ = object.kc8.prototype;
o.__constructor__ = object.kc8;
o.init = function () {
this.kc8_init(this.s);
this.width = this.limit(18, 2048, this.width);
this.height = this.limit(18, 2048, this.height);
var m = this.o_rmc_btn(this.width, this.height, this.c[0], "l0", 0, 0, 0);
m.pressed = function () {
this._parent.onclick();
};
this.createtextfield("t", 1, 4, 0, this.width - 8, this.height + 2);
this.filters = [this.f_shw];
};
o.setlabel = function (t, tf, ht) {
var v = this.t;
v.selectable = false;
v.setnewtextformat(tf);
v.antialiastype = "advanced";
v.html = ht;
v[((!ht) ? "text" : "htmltext")] = t;
v._y = math.round((math.max(0, (this.height - v.textheight) / 2) - ((!tf.leading) ? 2 : (tf.leading))) - 2);
};
var g;
var s;
g = function () {
return(this.t.embedfonts);
};
s = function (v) {
this.t.embedfonts = v;
};
o.addproperty("embedFonts", g, s);
object.kc8_button = function () {
this.init();
};
object.kc8_button.prototype = o;
object.registerclass("KC8_Button", object.kc8_button);
delete g;
delete s;
delete o;
#endinitclip
Symbol 209 MovieClip [KC8_Switch] Frame 1
#initclip 5
var o = new movieclip();
o.__proto__ = object.kc8.prototype;
o.__constructor__ = object.kc8;
o.init = function () {
this.kc8_init(this.s);
this.f_bpr.angle = this.f_bpr.angle - 180;
this.size = this.limit(8, 40, this.size);
var m = this.o_rmc(this.size, this.size, this.c[0], "l0", 0, 0, 0);
m.onpress = function () {
var p = this._parent;
p._sw = !p._sw;
p.setswitch(p._sw);
p.onswitch(p._sw);
};
m.onrollover = function () {
var p = this._parent;
if (p._sw) {
this.filters = [p.f_bpr, p.f_shw];
} else {
this.filters = [p.f_btn, p.f_ltn, p.f_shw];
}
};
m.onrollout = function () {
var p = this._parent;
p.setswitch(p._sw);
};
this.setswitch(false);
};
o.setswitch = function (v) {
this._sw = v;
if (v) {
this.l0.filters = [this.f_bpr, this.f_dkn, this.f_shw];
} else {
this.l0.filters = [this.f_btn, this.f_shw];
}
};
o.getswitch = function () {
return(this._sw);
};
o.setlabel = function (t, tf, ht) {
this.createtextfield("t", 1, 0, 0, 0, 0);
var v = this.t;
v.autosize = "left";
v.selectable = false;
v.setnewtextformat(tf);
v.antialiastype = "advanced";
v.html = ht;
v[((!ht) ? "text" : "htmltext")] = t;
v._y = math.round((this.size - v.textheight) / 2);
if (tf.align == "right") {
v._x = 0;
this.l0._x = v.textwidth + 5;
} else {
this.lo._x = 0;
v._x = this.size + 5;
}
};
var g;
var s;
g = function () {
return(this.t.embedfonts);
};
s = function (v) {
this.t.embedfonts = v;
};
o.addproperty("embedFonts", g, s);
object.kc8_switch = function () {
this.init();
};
object.kc8_switch.prototype = o;
object.registerclass("KC8_Switch", object.kc8_switch);
delete g;
delete s;
delete o;
#endinitclip
Symbol 212 MovieClip [KC8_ComboBox] Frame 1
#initclip 6
var o = new movieclip();
o.__proto__ = object.kc8.prototype;
o.__constructor__ = object.kc8;
o.autohide = (o.tabchildren = false);
o.init = function () {
this.kc8_init(this.s);
this.width = this.limit(50, 2048, this.width);
this._ly = ((!this.boxstyle) ? 20 : 0);
this._mlh = this.limit(50, 2048, this.height - this._ly);
if (this._ly) {
this.b_c = new this.s_bmp(15, 17, 0, this.c[2]);
var v = 0;
while (v < 5) {
this.b_c.fillrect(new this.s_rct(7 - v, 9 - v, 1 + (2 * v), 1), this.c[3]);
v++;
}
var m = this.attachmovie("KC8_Object", "combo", 0);
m.box(0, 0, this.width - 19, 21, this.c[4], 100, true);
m.box(this.width - 19, 0, this.width, 21, this.c[0], 100, true);
m.box(2, 2, this.width - 21, 19, this.c[5], 100, true);
m.onpress = function () {
this._parent.m_c.pressed();
};
m = this.o_bmc_btn(this.b_c, "m_c", 1, this.width - 17, 2);
m.pressed = function () {
this._parent.list._visible = !this._parent.list._visible;
this._parent.onmousedown = function () {
if (!this.hittest(_root._xmouse, _root._ymouse)) {
this.onmousedown = null;
this.list._visible = false;
}
};
};
this.createtextfield("t", 2, 2, 1, this.width - 21, 19);
this.t.selectable = false;
}
this.setitems();
mouse.addlistener(this);
this.onmousewheel = function (d) {
if (this.list._visible and this.hittest(_root._xmouse, _root._ymouse)) {
var v = this.list.vs;
v._cur = this.limit(v._min, v._max, v._cur - (d * v._stp));
v.update();
v.onmove(v._cur);
}
};
this.filters = [this.f_shw];
};
o.setitems = function (i, m, t, ht) {
this._iarray = this.ocopy(i);
this._icount = this._iarray.length;
this._multiple = ((!this.boxstyle) ? false : (m));
if (t) {
this._tf = this.ocopy(t);
}
this._sel = -1;
this._ht = ht;
var v = 0;
while (v < this._icount) {
if (this._iarray[v].selected) {
this._sel = v;
exit();
}
v++;
}
this.createtextfield("v", 3, 0, 0, 0, 0);
this.v.setnewtextformat(t);
this.v.text = "v";
this._th = this.limit(11, ((!this.boxstyle) ? 19 : 25), this.v.textheight + 4);
this._vis = math.floor((this._mlh - 4) / this._th);
this._lh = this.limit(50, 2048, (this._vis * this._th) + 4);
this._vs = ((!((!this.autohide) or (this._vis < this._icount))) ? 0 : 19);
var m = this.attachmovie("KC8_Object", "list", 3, {_y:this._ly, _visible:!this._ly});
m.box(0, 0, this.width, this._lh, this.c[4], 100, true);
v = 0;
while (v < math.min(this._vis, this._icount)) {
m.createtextfield("t" + v, 3 + v, 2, 2 + (v * this._th), (this.width - 4) - this._vs, this._th);
var t = m["t" + v];
t.selectable = false;
t.backgroundcolor = this.c[7];
t.setnewtextformat(this._tf);
t.antialiastype = "advanced";
v++;
}
this.t.setnewtextformat(this._tf);
this.t.antialiastype = "advanced";
this.t.textcolor = this.c[6];
this.embedfonts = this._ef;
m.attachmovie("KC8_Object", "hl", 3 + this._vis, {_visible:false, _alpha:15});
v = m.attachmovie("KC8_Slider", "vs", 2, {_x:this.width - 19, length:this._lh, c:this.c, s:this.s, _visible:this._vs});
v._setscrollbar(0, math.max(0, this._icount - this._vis), 1, 0, this._vis);
v.onmove = function (v) {
var p = this._parent;
var pp = p._parent;
var i = 0;
while (i < this._vis) {
var t = p["t" + i];
t.background = ((!pp._multiple) ? ((v + i) == pp._sel) : (pp._iarray[v + i].selected));
t.textcolor = this.c[((!t.background) ? 6 : 8)];
t.html = pp._ht;
t[((!pp._ht) ? "text" : "htmltext")] = pp._iarray[v + i].label;
i++;
}
pp.t.html = pp._ht;
pp.t[((!pp._ht) ? "text" : "htmltext")] = ((pp._sel < 0) ? "" : (pp._iarray[pp._sel].label));
};
v.onmove(0);
m = m.attachmovie("KC8_Object", "chk", 1, {_x:2, _y:2});
m.box(0, 0, (this.width - 4) - this._vs, this._lh - 4, this.c[5], 100, true);
m.onrollover = function () {
this.onmousemove = function () {
var p = this._parent;
var pp = p._parent;
var i = p.hl;
if (this.hittest(_root._xmouse, _root._ymouse)) {
var v = math.floor(this._ymouse / pp._th);
i._y = this.limit(0, pp._vis - 1, v) * pp._th;
v = pp.c[((!p["t" + v].background) ? 7 : 5)];
if (i.c != v) {
i.c = v;
i.clear();
i.box(3, 3, (pp.width - 3) - pp._vs, pp._th + 1, v, 100, true);
}
i._visible = true;
} else {
this.onmousemove = null;
i._visible = false;
}
};
};
m.onpress = function () {
var p = this._parent;
var pp = p._parent;
var v = math.floor(this._ymouse / pp._th);
var t = p["t" + v];
var i = (v + p.vs._cur);
if (i < pp._icount) {
if (pp._multiple) {
pp._iarray[i].selected = !t.background;
pp.onchange();
} else if (i != pp._sel) {
pp._sel = i;
pp.onchange(pp.getvalue());
}
}
p.vs.onmove(p.vs._cur);
if (!pp.boxstyle) {
p._visible = false;
}
};
};
o.setselected = function () {
var i = 0;
while (i < this._icount) {
this._iarray[i].selected = false;
i++;
}
var v = ((!arguments[0].length) ? (arguments) : (arguments[0]));
i = 0;
while (i < v.length) {
this._iarray[v[i]].selected = true;
i++;
}
this._sel = ((v[0] >= this._icount) ? (-1) : (v[0]));
this.list.vs.onmove(this.list.vs._cur);
};
o.getselecteditems = function () {
var v = new array();
if (this._multiple) {
var i = 0;
while (i < this._icount) {
if (this._iarray[i].selected) {
v.push(this._iarray[i]);
}
i++;
}
} else {
v[0] = this._iarray[this._sel];
}
return(v);
};
o.getvalues = function () {
var v = new array();
if (this._multiple) {
var i = 0;
while (i < this._icount) {
if (this._iarray[i].selected) {
v.push(this._iarray[i].value);
}
i++;
}
} else {
v[0] = this._iarray[this._sel].value;
}
return(v);
};
o.getvalue = function () {
if (!this._multiple) {
return(this._iarray[this._sel].value);
}
};
var g;
var s;
g = function () {
return(this._ef);
};
s = function (v) {
this._ef = (this.t.embedfonts = v);
var i = 0;
while (i < this._vis) {
this.list["t" + i].embedfonts = v;
i++;
}
};
o.addproperty("embedFonts", g, s);
object.kc8_combobox = function () {
this.init();
};
object.kc8_combobox.prototype = o;
object.registerclass("KC8_ComboBox", object.kc8_combobox);
delete g;
delete s;
delete o;
#endinitclip
Symbol 215 MovieClip [KC8_SlideShow] Frame 1
#initclip 7
var o = new movieclip();
o.__proto__ = object.kc8.prototype;
o.__constructor__ = object.kc8;
o.border = true;
o.navigation = true;
o.soundmode = 0;
o.init = function () {
this.kc8_init(this.s);
this.width = this.limit(((!this.navigation) ? 50 : 125), 2048, this.width);
this.height = this.limit(50, 2048, this.height);
this._miw = this.width - ((!this.border) ? 0 : 4);
this._mih = (this.height - ((!this.navigation) ? 0 : 19)) - ((!this.border) ? 0 : 4);
this._mcl = new moviecliploader();
this._mcl.o = this;
this._tb = new this.s_bmp(this._miw, this._mih, 0, this.c[4]);
this._bb = this._tb.clone();
var m = this.attachmovie("KC8_Object", "l0", 0);
m.box(0, 0, this.width, this.height, this.c[4], 100, true);
this.attachmovie("KC8_Switch", "pause", 3, {_x:36, _y:this.height - 17, size:15, s:[this.s[0], this.s[1], 0], _visible:this.navigation});
if (this.navigation) {
m.box(0, this.height - 19, this.width, this.height, this.c[0], 100, true);
m.b_p = new this.s_bmp(15, 15, 0, this.c[2]);
m.b_p.fillrect(new this.s_rct(5, 4, 2, 7), this.c[3]);
m.b_p.fillrect(new this.s_rct(8, 4, 2, 7), this.c[3]);
this.pause.l0.attachbitmap(m.b_p, 1);
this.pause.onswitch = function (v) {
var p = this._parent;
if (v) {
p._mcl.onloadinit = null;
p._mcl.onloaderror = null;
p._loading = -1;
p._loaded = -1;
} else {
p._2s(p._s + 1);
}
};
m = this.attachmovie("KC8_Slider", "nav", 2, {_x:68, _y:this.height - 19, length:this.width - 51, horizontal:true, c:this.c, s:this.s});
m.m_d._y = -49;
m.m_i._y = -15;
m.b_f = m.b_i.clone();
m.b_f.fillrect(new this.s_rct(4, 3, 7, 2), this.c[3]);
m.b_f.scroll(0, 1);
m.b_l = m.b_d.clone();
m.b_l.fillrect(new this.s_rct(4, 10, 7, 2), this.c[3]);
m.b_l.scroll(0, -1);
m.o_bmc_btn(m.b_f, "m_f", 1, 2, -66);
m.o_bmc_btn(m.b_l, "m_l", 5, 2, 2);
m.m_f.pressing = function () {
this._parent._parent.gotoslide("f");
};
m.m_l.pressing = function () {
this._parent._parent.gotoslide("l");
};
m.m_b._pressed = m.m_b.pressed;
m.m_f.pressed = (m.m_l.pressed = (m.m_i.pressed = (m.m_d.pressed = (m.m_b.pressed = function () {
this._parent._parent.pause.setswitch(true);
this._parent._parent.pause.onswitch(true);
this.pressing();
this._pressed();
}))));
this.nav.onmove = function (v) {
this._parent.gotoslide(v);
};
}
m = this.attachmovie("KC8_Object", "l1", 1, {scrollrect:new this.s_rct(0, 0, this._miw, this._mih)});
if (this.border) {
m._x = 2;
m._y = 2;
}
this.filters = [this.f_shw];
this.cleartransit();
};
o.callout = function (mc, tl_x, tl_y, br_x, br_y, r, l, c) {
r = this.limit(0, 10, r);
var ex = r;
var ey = 0;
var i = 0;
while (i < 2) {
mc.linestyle(0, l);
if (i % 2) {
mc.beginbitmapfill(this._cb);
} else {
mc.beginfill(c, 80);
}
mc.moveto(br_x, tl_y + r);
var a = 45;
while (a < 405) {
if (a % 90) {
var x = ((!((90 < a) and (a < 270))) ? (br_x - r) : (tl_x + r));
var y = ((180 >= a) ? (br_y - r) : (tl_y + r));
mc.curveto(ex + x, ey + y, ex + x, ey + y);
}
ex = r * math.cos(a / 57.2960014343262);
ey = r * math.sin(a / 57.2960014343262);
var cx = (ex + ((r * 0.414209991693497) * math.sin(a / 57.2960014343262)));
var cy = (ey - ((r * 0.414209991693497) * math.cos(a / 57.2960014343262)));
mc.curveto(cx + x, cy + y, ex + x, ey + y);
a = a + 45;
}
mc.endfill();
i++;
}
};
o.draw_mc = function (mc, bmp, mode, bgcolor) {
var b = mc.getbounds();
var sc = ((1 >= mode) ? (math[((0 >= mode) ? "min" : "max")](bmp.width / (b.xmax - b.xmin), bmp.height / (b.ymax - b.ymin))) : 1);
var tx = ((bmp.width - (sc * (b.xmin + b.xmax))) / 2);
var ty = ((bmp.height - (sc * (b.ymin + b.ymax))) / 2);
bmp.fillrect(bmp.rectangle, -16777216 | bgcolor);
bmp.draw(mc, new flash.geom.matrix(sc, 0, 0, sc, tx, ty));
};
o.cleartransit = function () {
this._tbusy = false;
this.l1.attachmovie("KC8_Object", "b_mc", 0);
var m = this.l1.attachmovie("KC8_Object", "t_mcc", 1, {_x:this._miw / 2, _y:this._mih / 2, __x:this._miw / 2, __y:this._mih / 2, blendmode:"layer"});
m.attachmovie("KC8_Object", "t_mc", 0, {_x:-m._x, _y:-m._y});
m.attachmovie("KC8_Object", "a", 1, {blendmode:"alpha"});
if ((t == 0) or (this.soundmode < 1)) {
this._ts.stop();
}
};
o.setslides = function () {
this._slides = this.ocopy(arguments[0]);
this._lastslide = this._slides.length - 1;
this._loop = this.limit(-1, this._lastslide, arguments[1]);
this._cc = this.ocopy(arguments[2]);
this._tf = ((3 >= arguments.length) ? (new textformat("_sans")) : (this.ocopy(arguments[3])));
this.nav._setscrollbar(0, this._lastslide, 1, 0, 1);
this._s = -1;
this._tm = -infinity;
this._2s(0);
this.onenterframe = function () {
var b;
var c;
var i;
var m;
var s = ((this._s >= 0) ? (this._slides[this._s]) : ([0, 0, 0, 0]));
t = (getTimer() - this._tm) / 1000;
i = math.min(1, s[3] - (math.abs((s[1] + (s[3] / 2)) - t) * 2));
if (0 < i) {
this.l1.ca._visible = true;
if (this.l1.ca.i != i) {
if (s[9]) {
this.l1.ca._x = (this._tb.width * [0, 0, 1, 0, -1][s[9]]) * (1 - i);
this.l1.ca._y = (this._tb.height * [0, -1, 0, 1, 0][s[9]]) * (1 - i);
} else {
this.l1.ca.filters = [new this.s_cmf([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, i, 0])];
}
this.l1.ca.i = i;
}
} else {
this.l1.ca._visible = false;
}
this.nav.m_b._alpha = 100;
if ((s[1] + s[3]) < t) {
this[this._msg]();
}
if (((((this._load == this._loaded) and (this._load != this._s)) and this.tmp_mc._width) and ((s[1] + s[3]) < t)) and (!this._ts.wait)) {
this.l1.attachmovie("KC8_Object", "ca", 2, {_visible:false});
this.l1.attachmovie("KC8_Object", "cl", 3);
t = 0;
this._tm = getTimer();
this._s = this._loaded;
this.cleartransit();
this._tbusy = true;
this.nav._setscrollbar(0, this._lastslide, 1, this._s, 1);
s = this._slides[this._s];
this._bb.dispose();
this._bb = this._tb.clone();
if (s[0] & 67108864) {
this.l1.t_mcc.t_mc.attachbitmap(this._bb, 0);
this.l1.b_mc.attachbitmap(this._tb, 0);
} else {
this.l1.t_mcc.t_mc.attachbitmap(this._tb, 0);
this.l1.b_mc.attachbitmap(this._bb, 0);
}
if (s[6] & 2) {
this.tmp_mc.filters = [new this.s_cmf([0.39300000667572, 0.768999993801117, 0.188999995589256, 0, 0, 0.349000006914139, 0.685999989509583, 0.167999997735023, 0, 0, 0.272000014781952, 0.533999979496002, 0.130999997258186, 0, 0, 0, 0, 0, 1, 0])];
} else if (s[6] & 4) {
this.tmp_mc.filters = [new this.s_cmf([0.29899999499321, 0.587000012397766, 0.114000000059605, 0, 0, 0.29899999499321, 0.587000012397766, 0.114000000059605, 0, 0, 0.29899999499321, 0.587000012397766, 0.114000000059605, 0, 0, 0, 0, 0, 1, 0])];
} else {
this.tmp_mc.filters = [];
}
this.l1.t_mcc.filters = ((!(s[6] & 1)) ? ([]) : ([new flash.filters.dropshadowfilter(0)]));
this.draw_mc(this.tmp_mc, this._tb, s[4], s[5]);
if (!this.pause.getswitch()) {
this._2s(this._s + 1);
}
this._bmp.dispose();
if ((s[0] & -133170176) == -133170176) {
this._tbmp.dispose();
b = (s[0] >> 20) & 63;
if (b < 32) {
b = "KC8_Transit" + b;
this._tbmp = ((!_global[b].clone) ? (flash.display.bitmapdata.loadbitmap(b)) : (_global[b].clone()));
} else if (b < 62) {
this._tbmp = new this.s_bmp(32, 32, 0);
this._tbmp.perlinnoise(16, 4, 5, 9, true, true, 7, true);
} else {
this._tbmp = ((b >= 63) ? (((!(s[0] & 512)) ? (new this.s_bmp(1, 48, 0)) : (new this.s_bmp(48, 1, 0)))) : (new this.s_bmp(48, 48, 0)));
this._tbmp.noise(new date(), 0, 255, 7, true);
}
b = (this._bmp = new this.s_bmp(this._tbmp.width, this._tbmp.height, 0));
b.draw(this._tbmp, new flash.geom.matrix(), new flash.geom.colortransform(), ((s[0] >> 5) & 8) | 1);
} else if (s[0] & 512) {
b = (this._bmp = new this.s_bmp(((s[0] >> 8) & 60) + 4, ((s[0] >> 12) & 252) + 4, 0));
b.draw(this._tr, new flash.geom.matrix(0, 1, -1, 0, b.width + ((s[0] >> 18) & 252), -((s[0] >> 24) & 248)), new flash.geom.colortransform(), ((s[0] >> 5) & 8) | 1);
} else {
b = (this._bmp = new this.s_bmp(((s[0] >> 12) & 252) + 4, ((s[0] >> 8) & 60) + 4, 0));
b.draw(this._tr, new flash.geom.matrix(1, 0, 0, 1, -((s[0] >> 24) & 248), -((s[0] >> 18) & 252)), new flash.geom.colortransform(), ((s[0] >> 5) & 8) | 1);
}
this._tbmp.dispose();
this._tbmp = new this.s_bmp(b.width, b.height, 1, 0);
var hs = ((!(s[0] & 128)) ? ((this._tb.width + 2) / b.width) : 1);
var vs = ((!(s[0] & 64)) ? ((this._tb.height + 2) / b.height) : 1);
if (s[0] & 32) {
hs = (vs = math.max(hs, vs));
}
var tx = ((b.width * hs) / 2);
var ty = ((b.height * vs) / 2);
if ((s[0] & 128) and (this._tb.width % 2)) {
tx = tx + 0.5;
}
if ((s[0] & 64) and (this._tb.height % 2)) {
ty = ty + 0.5;
}
this._matrix = new flash.geom.matrix(hs, 0, 0, vs, tx, ty);
this.ontransitstart(this._s);
if (s[7]) {
this._ts = new sound(this);
if (1 < this.soundmode) {
this._ts.wait = true;
}
this._ts.onsoundcomplete = function () {
this.wait = false;
};
i = s[7].lastindexof(".");
ext = s[7].substr(i + 1);
ext = ext.tolowercase();
if (ext == "mp3") {
this._ts.loadsound(s[7], true);
this._ts.start();
} else {
this._ts.attachsound(((i >= 0) ? (s[7].substr(0, i)) : (s[7])));
if (this._ts.duration) {
this._ts.start(0, ext);
}
}
}
}
var p = ((0 >= s[1]) ? 1 : (t / s[1]));
m = this.l1.t_mcc;
b = this._bmp;
if (p < 1) {
if (s[6] & 8) {
i = [new this.s_cmf([math.min(1, p * 3), 0, 0, 0, 0, 0, math.min(1, p * 2), 0, 0, 0, 0, 0, p, 0, 0, 0, 0, 0, 1, 0])];
if (s[0] & 67108864) {
this.l1.b_mc.filters = i;
} else {
m.t_mc.filters = i;
}
}
if (s[0] & -83886112) {
this._tbmp.threshold(b, b.rectangle, b.rectangle.topleft, "<=", p * 255, -1, 255);
m.a.clear();
m.a.box((-m.__x) - 0.5, (-m.__y) - 0.5, m.__x + 0.5, m.__y + 0.5, this._tbmp, 0, true, this._matrix);
}
if (s[0] & 67108864) {
p = 1 - p;
}
if (s[0] & 16) {
m._alpha = p * 100;
}
i = s[0] & 15;
if (i < 4) {
if (i % 2) {
m._xscale = p * 100;
}
if (1 < i) {
m._yscale = p * 100;
}
} else if (i < 6) {
m._rotation = ((!(i % 2)) ? (p) : (-p)) * 360;
} else if (i < 14) {
m._x = m.__x + ((this._tb.width * [1, -1, 0, 0, -1, 1, 1, -1][i - 6]) * (1 - p));
m._y = m.__y + ((this._tb.height * [0, 0, 1, -1, -1, -1, 1, 1][i - 6]) * (1 - p));
} else if (i < 15) {
m._x = m.__x + (this._tb.width * (1 - p));
this.l1.b_mc._x = (-this._tb.width) * p;
} else {
m._y = m.__y + (this._tb.height * (1 - p));
this.l1.b_mc._y = (-this._tb.height) * p;
}
} else if (this._tbusy) {
this.cleartransit();
this.l1.t_mcc.t_mc.attachbitmap(this._tb, 0);
this.l1.b_mc.attachbitmap(this._bb, 0);
this.ontransitcomplete(this._s);
i = 0;
while (i < s[8].length) {
c = this._cc[s[8][i]];
m = this.l1[((!c.text.length) ? "cl" : "ca")].attachmovie("KC8_Object", "c" + i, i, {_x:c.x, _y:c.y, o:this, usehandcursor:true});
if (c.text.length) {
this.callout(m, 0, 0, c.w, c.h, ((c.cradius != undefined) ? (c.cradius) : 6), c.line, ((c.fill != undefined) ? (c.fill) : 16777215));
m.createtextfield("t", 1, 5, 0, c.w - 5, c.h - 2);
m.t.html = true;
m.t.multiline = true;
m.t.wordwrap = true;
m.t.selectable = false;
m.t.setnewtextformat(this._tf);
m.t.htmltext = c.text;
} else if (c.link) {
m.box(0, 0, c.w, c.h, 0, 0, true);
}
if (c.link != undefined) {
m.l = c.link;
m.onpress = function () {
if ((-1) < this.l.indexof("@")) {
getURL ("mailto:" + this.l);
} else if ((-1) < this.l.indexof(".")) {
getURL (this.l, "_blank");
} else {
this.o._tm = -infinity;
this.o.gotoslide(this.l);
}
};
}
i++;
}
} else if (((-1) < this._loading) and this.pause.getswitch()) {
this.nav.m_b._alpha = 25 + (math.abs(500 - (getTimer() % 1000)) * 0.0750000029802322);
}
};
};
o._2s = function (v) {
if ((this._loading != v) and (this._loaded != v)) {
this._msg = "";
if ((v == this._slides.length) and (this._loop + 1)) {
this._msg = "onLoop";
v = this._loop;
}
if (v < this._slides.length) {
this.tmp_mc.b.dispose();
this.attachmovie("KC8_Object", "tmp_mc", -2, {_visible:false});
this._load = v;
this._loaded = -1;
this._loading = v;
var i = this._slides[this._loading][2];
if (0 < i.indexof(".")) {
this.tmp_mc.createemptymovieclip("m" + v, 0);
this._mcl.onloadinit = function (v) {
if (v._name == ("m" + this.o._loading)) {
this.o._loaded = this.o._loading;
this.o._loading = -1;
}
};
this._mcl.onloaderror = function (v) {
if (v._name == ("m" + this.o._loading)) {
this.o._2s(this.o._loading + 1);
}
};
this._mcl.loadclip(this._slides[this._loading][2], this.tmp_mc["m" + v]);
} else {
this.tmp_mc.b = flash.display.bitmapdata.loadbitmap(i);
if (this.tmp_mc.b) {
this.tmp_mc.attachbitmap(this.tmp_mc.b, 0, "auto", true);
} else {
i = this.tmp_mc.attachmovie(i, "m", 0);
}
if (i) {
this._loaded = v;
this._loading = -1;
} else {
this._2s(this._loading + 1);
}
}
} else {
this._msg = "onEnd";
}
}
};
o.gotoslide = function (v) {
var i = "fFpPnNlL";
i = i.indexof(v.charat(0)) >> 1;
i = [v, 0, math.max(0, this._s - 1), math.min(this._s + 1, this._lastslide), this._lastslide][i + 1];
this.nav._setscrollbar(0, this._lastslide, 1, i, 1);
this._tm = -infinity;
this._ts.wait = false;
this._2s(i);
};
o.setmode = function (v) {
this.pause.setswitch(v);
this.pause.onswitch(v);
};
var g;
var s;
o._tr = flash.display.bitmapdata.loadbitmap("KC8_Transitions");
o._cb = new o.s_bmp(1, 2, 1, 184549376);
o._cb.setpixel(0, 1, 201326591);
g = function () {
return(this._s);
};
o.addproperty("_currentslide", g, null);
g = function () {
return(this._slides.length);
};
o.addproperty("_totalslides", g, null);
object.kc8_slideshow = function () {
this.init();
};
object.kc8_slideshow.prototype = o;
object.registerclass("KC8_SlideShow", object.kc8_slideshow);
delete g;
delete o;
#endinitclip
Symbol 218 MovieClip [KC8_MediaPlayer] Frame 1
#initclip 8
var o = new movieclip();
o.__proto__ = object.kc8.prototype;
o.__constructor__ = object.kc8;
o._vol = 70;
o._bal = 50;
o._scalemode = 0;
o._smoothing = true;
o._repeat = 0;
o._imode = 0;
o._isspeed = 2;
o._st = 7000;
o.plselclose = false;
o.paused = true;
o.prefix = "";
o.uservars = new object();
o.ctypes = "flvmp3.fdjpgpnggifmp4m4vm4amov3gp";
o.ctype = -1;
o.fd = undefined;
o.init = function () {
this._mcl = new moviecliploader();
this._mcl.o = this;
this._lv = new loadvars();
this._lv.o = this;
this._lv2 = new loadvars();
this._lv2.o = this;
this._lv2.ondata = function (items) {
if (items != undefined) {
var l = new array();
items = items.split("\r\n");
if (items.length < 2) {
items = items[0].split(newline);
}
var i = 0;
while (i < items.length) {
if (items[i]) {
items[i] = items[i].split("|");
l.push({label:this.o.trim(items[i][0]), value:this.o.trim(items[i][1])});
}
i++;
}
this.o.setplaylist(l, this.nr, this.paused);
}
};
this._lv.ondata = function (fdata) {
var p = this.o;
p.fd = fdata;
p._snd.type = fdata.charcodeat(0) - 32;
p._snd.bands = ((!(p._snd.type & 1)) ? 9 : 12);
p._snd.bpaf = ((!(p._snd.type & 1)) ? 6 : 8);
p._snd.bpsec = (44100 / ((!(p._snd.type & 2)) ? 2048 : 4096)) * p._snd.bpaf;
p._snd.length = (fdata.length - 1) / p._snd.bpsec;
p._snd.id3duration = p._snd.length * 1000;
var nr = p.playlist[p._nr];
if (nr.value) {
nr = nr.value;
}
var paused = p.paused;
p.fn_load(nr.substr(0, nr.length - 3) + ".mp3", true);
if (paused) {
p.fn_pause();
}
};
this._nc = new netconnection();
this._nc.connect(null);
this._ns = new netstream(this._nc);
this._ns.o = this;
this._ns.onmetadata = function (v) {
if (v.duration) {
this.duration = v.duration * 1000;
}
this.o.onmetadata(v);
};
this._ns.ontextdata = function (v) {
this.o.ontextdata(v);
};
this._ns.oncuepoint = function (v) {
this.o.oncuepoint(v);
};
this.seek = function (v) {
this._ns.seek(v);
};
var vh = this.attachmovie("KC8_VideoHolder", "videoholder", 3);
vh.setmask(this.attachmovie("KC8_Object", "vhm", -9));
vh.__proto__ = object.kc8.prototype;
vh.__constructor__ = object.kc8;
vh._video.attachvideo(this._ns);
vh._video._visible = false;
vh.attachaudio(this._ns);
this._vsnd = new sound(vh);
this._snd = new sound(this);
this._snd.o = this;
this._snd.onsoundcomplete = function () {
this.o._next(this.o, true);
};
this._snd.onid3 = function () {
if (this.id3.tlen) {
this.id3duration = this.id3.tlen;
}
var artist = ((this.id3.artist != undefined) ? (this.id3.artist) : "");
var title = ((this.id3.songname != undefined) ? (this.id3.songname) : "");
this.info = (artist + ((!((artist != "") and (title != ""))) ? "" : " - ")) + title;
if ((this.o.idsp.st.text != this.info) and (0 < this.o._imode)) {
this.o.idsp.st.text = this.info;
this.o.idsp.st._x = this.o.idsp.w;
}
this.o.id3 = this.id3;
this.o.onid3();
};
this._snd.id3duration = 0;
this.setbuffertime(3);
this.setclassicskin();
};
o.onenterframe = function () {
this.timeline.setvalue(((!this.fn_duration()) ? 0 : (math.min(100, (100 * this.fn_position()) / this.fn_duration()))));
this.timeline.setvalue(100 * this.fn_percloaded(), true);
var t = math.floor(this.fn_position() / 1000);
var s = string(100 + (t % 60));
var m = string(100 + math.floor(t / 60));
this.timer.text = ((0 >= t) ? "00:00" : ((m.substr(-2) + ":") + s.substr(-2)));
if (this.timer.ttime) {
t = math.floor(this.fn_duration() / 1000);
s = string(100 + (t % 60));
m = string(100 + math.floor(t / 60));
this.timer.text = this.timer.text + (" / " + ((0 >= t) ? "00:00" : ((m.substr(-2) + ":") + s.substr(-2))));
}
if ((this.ctype == 2) and this.fd) {
var sndpos = (this._snd.position / 1000);
var a = [];
var f = this.fdsp;
f.clear();
if ((!this.paused) and (0 < sndpos)) {
var offset = (1 + (this._snd.bpaf * math.floor((this._snd.bpsec * sndpos) / this._snd.bpaf)));
var x = ((!f.r) ? 0 : ((f.s - f.w) - (this._snd.bands * f.s)));
var i = 0;
while (i < this._snd.bands) {
a[i] = (this.fd.charcodeat(offset) - 32) >> 2;
f.box(x, 0, x + f.w, (-f.h) * a[i], f.c, 100, true);
x = x + f.s;
i++;
a[i] = (((this.fd.charcodeat(offset) - 32) << 2) & 12) + ((this.fd.charcodeat(offset + 1) - 32) >> 4);
f.box(x, 0, x + f.w, (-f.h) * a[i], f.c, 100, true);
x = x + f.s;
i++;
a[i] = (this.fd.charcodeat(offset + 1) - 32) & 15;
f.box(x, 0, x + f.w, (-f.h) * a[i], f.c, 100, true);
x = x + f.s;
offset = offset + 2;
i++;
}
}
this._onfd(a);
this.onfd(a);
}
};
o.setclassicskin = function (o) {
var i;
if (o) {
var p;
for (p in o) {
this[p] = ((typeof(o[p]) != "object") ? (o[p]) : (this.ocopy(o[p])));
}
}
this.kc8_init(this.s);
if (this.c.length) {
this.width = this.limit(150, 2048, this.width);
this.height = this.limit(36, 2048, this.height);
this.b_plbg.dispose();
if (this.lpos % 2) {
var plw = this.limit(36, 2048, this.lsize);
var plh = this.height;
this.plx = ((1 >= this.lpos) ? (this.width) : (-plw));
this.ply = 0;
} else {
var plw = this.width;
var plh = this.limit(36, 2048, this.lsize);
this.plx = 0;
this.ply = ((1 >= this.lpos) ? (-plh) : (this.height));
}
this.b_plbg = new this.s_bmp(plw, plh, 0, this.c[0]);
this.b_plbg.fillrect(new this.s_rct(4, 4, plw - 8, plh - 8), this.c[4]);
this.b_plbg.fillrect(new this.s_rct(5, 5, plw - 10, plh - 10), this.c[0]);
this.b_plbg.fillrect(new this.s_rct(12, 4, plw - 24, plh - 8), this.c[0]);
this.b_plbg.fillrect(new this.s_rct(4, 12, plw - 8, plh - 24), this.c[0]);
var h = new textformat("_sans", this.lfsize, 0, true);
h = h.gettextextent("yf");
h = h.textfieldheight;
var states = ["up", "over", "down"];
var i = 1;
while (i < 4) {
var s = states[i - 1];
this["b_i" + s].dispose();
this["b_i" + s] = new this.s_bmp(plw - 29, h + 2, true, 0);
this["b_i" + s].fillrect(new this.s_rct(0, 1, plw - 29, h), (this.c[1] & 16777215) | (i * 402653184));
i++;
}
this.b_plsl.dispose();
this.b_plsl = new this.s_bmp(4, plh - 26, 0, this.c[4]);
this.b_drag.dispose();
this.b_drag = new this.s_bmp(8, 8, 0, this.c[1]);
this.b_bg.dispose();
this.b_bg = new this.s_bmp(this.width, this.height, 0, this.c[4]);
this.b_bg.fillrect(new this.s_rct(0, this.height - 36, this.width, 36), this.c[0]);
var m = this.createemptymovieclip("bmp_mc", 99, {_visible:false});
var buttons = ["b_prev", "b_play", "b_pause", "b_stop", "b_next", "b_pl"];
i = 0;
while (i < 6) {
var b = buttons[i];
this[b + "_up"].dispose();
this[b + "_down"].dispose();
this[b + "_over"].dispose();
this[b + "_up"] = new this.s_bmp(15, 15, 0, this.c[2]);
this[b + "_down"] = this[b + "_up"].clone();
this[b + "_over"] = this[b + "_up"].clone();
i++;
}
this.b_pause_up.fillrect(new this.s_rct(5, 4, 2, 7), this.c[3]);
this.b_pause_up.fillrect(new this.s_rct(8, 4, 2, 7), this.c[3]);
this.b_stop_up.fillrect(new this.s_rct(4, 4, 7, 7), this.c[3]);
i = 0;
while (i < 4) {
this.b_prev_up.fillrect(new this.s_rct(6 + i, 7 - i, 1, 1 + (2 * i)), this.c[3]);
this.b_next_up.fillrect(new this.s_rct(8 - i, 7 - i, 1, 1 + (2 * i)), this.c[3]);
i++;
}
this.b_play_up.draw(this.b_next_up, new flash.geom.matrix(1, 0, 0, 1, 1, 0));
this.b_prev_up.fillrect(new this.s_rct(4, 4, 2, 7), this.c[3]);
this.b_next_up.fillrect(new this.s_rct(9, 4, 2, 7), this.c[3]);
this.b_pl_up.fillrect(new this.s_rct(4, 5, 7, 1), this.c[3]);
this.b_pl_up.fillrect(new this.s_rct(4, 7, 7, 1), this.c[3]);
this.b_pl_up.fillrect(new this.s_rct(4, 9, 7, 1), this.c[3]);
i = 0;
while (i < 6) {
var b = buttons[i];
m.attachbitmap(this[b + "_up"], 1);
m.filters = [this.f_bpr, this.f_dkn];
this[b + "_down"].draw(m);
m.filters = [this.f_btn, this.f_ltn];
this[b + "_over"].draw(m);
m.filters = [this.f_btn];
this[b + "_up"].draw(m);
i++;
}
m.removemovieclip();
this.setunderlayimage(0, 0, this.b_bg);
this.setdisplay(2, 2, this.width - 4, math.max(this.height - 40, 0), this.c[5]);
this.setoverlayimage();
i = this.height - 17;
this.setfd(this.width - 4, i + 13, 1, 12, 1, this.c[1], true);
this.setprevbutton(2, i, this.b_prev_up, this.b_prev_down, this.b_prev_over);
this.setpausebutton(19, i, this.b_pause_up, this.b_pause_down, this.b_pause_over);
this.setplaybutton(19, i, this.b_play_up, this.b_play_down, this.b_play_over);
this.setstopbutton(36, i, this.b_stop_up, this.b_stop_down, this.b_stop_over);
this.setnextbutton(53, i, this.b_next_up, this.b_next_down, this.b_next_over);
var lv = (this.plb.down | this.lvisible);
this.setplbutton(70, i, this.b_pl_up, this.b_pl_down, this.b_pl_over);
if (this.lsize) {
this.setlistdisplay(this.plx, this.ply, this.b_plbg, null, null, null, 6, 6, plh - 12, this.b_iup, this.b_idown, this.b_iover, "_sans", this.lfsize, this.c[2], true, "left", plw - 16, 13, this.b_plsl, 2, 0, 26 - plh, this.b_drag);
} else {
this.setlistdisplay();
this.plb.enabled = false;
this.plb._alpha = 50;
}
if (!lv) {
this.plb.down = false;
this.plb.onreleaseoutside();
}
i = 0;
while (i < 10) {
this.setuserslider(i);
this.setuserbutton(i);
i++;
}
this.b_timeline_base.dispose();
this.b_timeline_base = new this.s_bmp(this.width - 49, 4, 0, this.c[4]);
this.b_vol_base.dispose();
this.b_fvol_base.dispose();
this.b_vol_base = new this.s_bmp(this.width - 96, 12, 1, 0);
this.b_fvol_base = new this.s_bmp(this.width - 121, 12, 1, 0);
this.b_vol_base.fillrect(new this.s_rct(0, 4, this.width - 108, 4), this.c[4]);
this.b_vol_base.fillrect(new this.s_rct(this.width - 104, 4, 4, 4), this.c[4]);
i = 0;
while (i < 4) {
this.b_vol_base.fillrect(new this.s_rct((this.width - 100) + i, 3 - i, 1, 6 + (2 * i)), this.c[4]);
i++;
}
this.b_fvol_base.copypixels(this.b_vol_base, this.b_vol_base.rectangle, new this.s_pnt(-25, 0));
this.settimelineslider(4, this.height - 29, this.b_timeline_base, 0, 0, 1, null, 2, 2, this.width - 53, this.b_drag);
this._classicvol();
this.settimer(this.width - 3, this.height - 37, "_sans", 12, this.c[2], true, true);
this.underlay.filters = [this.f_shw];
this.pl_underlay.filters = [this.f_shw];
this.setinfoscroll(0, "_sans", 12, this.c[1], true, 2);
}
};
o._classicvol = function () {
if (this.ctype == 2) {
this.setvolumeslider(90, this.height - 16, this.b_fvol_base, 0, 0, 1, null, 2, 6, this.width - 137, this.b_drag);
} else {
this.setvolumeslider(90, this.height - 16, this.b_vol_base, 0, 0, 1, null, 2, 6, this.width - 112, this.b_drag);
}
this._cvol = true;
};
o.setunderlayimage = function (xoffset, yoffset, image, width, height, s9rct) {
this._setimage("underlay", 2, xoffset, yoffset, image, width, height, s9rct);
};
o.setoverlayimage = function (xoffset, yoffset, image, width, height, s9rct) {
this._setimage("overlay", 9, xoffset, yoffset, image, width, height, s9rct);
};
o._setimage = function (obj_name, obj_depth, xoffset, yoffset, image, width, height, s9rct) {
var m = this.attachmovie("KC8_Object", obj_name, obj_depth, {_x:xoffset, _y:yoffset});
this["_" + obj_name].dispose();
this["_" + obj_name] = flash.display.bitmapdata.loadbitmap(this.prefix + image);
var v = this["_" + obj_name];
if (!v.draw) {
v = image;
if (!v.draw) {
v = eval (v);
}
}
if (v.draw) {
m.attachbitmap(v, 1, "auto", true);
if ((width != undefined) and (height != undefined)) {
if (s9rct) {
this["_" + obj_name] = new flash.display.bitmapdata(width, height, true, 0);
this.bmp9slice(this["_" + obj_name], v, s9rct);
m.attachbitmap(this["_" + obj_name], 1, "auto");
} else {
m._width = width;
m._height = height;
}
}
}
return(m);
};
o.settimelineslider = function (xoffset, yoffset, bimage, rxfill, ryfill, dfill, fimage, rxdrag, rydrag, ddrag, dupimage, ddownimage, doverimage) {
this._setslider("timeline", 18, xoffset, yoffset, bimage, rxfill, ryfill, dfill, fimage, rxdrag, rydrag, ddrag, dupimage, ddownimage, doverimage);
this.timeline.onstartdrag = function (p) {
p.$paused = p.paused;
p.paused = true;
if (p.ctype == 0) {
p._ns.pause(true);
} else if ((p.ctype == 1) or (p.ctype == 2)) {
p._snd.oldpos = p._snd.position;
p._snd.stop();
}
};
this.timeline.ondrag = function (v, p) {
if (p.ctype == 0) {
if (p.fn_duration()) {
p.fn_seek(p.limit(0, (p.fn_duration() * p.fn_percloaded()) - 1000, (v / 100) * p.fn_duration()));
}
} else if ((p.ctype == 1) or (p.ctype == 2)) {
p._snd.oldpos = (v / 100) * p.fn_duration();
} else if (((p.ctype == 3) or (p.ctype == 4)) or (p.ctype == 5)) {
p.fn_seek((v / 100) * p.fn_duration());
}
};
this.timeline.onstopdrag = function (p) {
p.paused = p.$paused;
if (p.ctype == 0) {
p._ns.pause(p.paused);
} else if ((p.ctype == 1) or (p.ctype == 2)) {
if (!p.paused) {
p._snd.start(p._snd.oldpos / 1000);
}
}
};
this.onenterframe();
};
o.setfd = function (xoffset, yoffset, bwidth, bheight, bspace, bcolor, ranchor) {
if (xoffset == undefined) {
this.fdsp.removemovieclip();
} else {
this.attachmovie("KC8_Object", "fdsp", 4, {_x:xoffset, _y:yoffset, w:bwidth, h:bheight / 15, s:bwidth + bspace, c:bcolor, r:ranchor});
}
};
o.setvolumeslider = function (xoffset, yoffset, bimage, rxfill, ryfill, dfill, fimage, rxdrag, rydrag, ddrag, dupimage, ddownimage, doverimage) {
this._setslider("volume", 19, xoffset, yoffset, bimage, rxfill, ryfill, dfill, fimage, rxdrag, rydrag, ddrag, dupimage, ddownimage, doverimage);
this.volume.ondrag = function (v, p) {
p.setvolume(v);
};
this.setvolume(this._vol);
this._cvol = false;
};
o.setuserslider = function (nr, xoffset, yoffset, bimage, rxfill, ryfill, dfill, fimage, rxdrag, rydrag, ddrag, dupimage, ddownimage, doverimage) {
nr = this.limit(0, 9, nr);
var m = this._setslider("usl" + nr, 30 + nr, xoffset, yoffset, bimage, rxfill, ryfill, dfill, fimage, rxdrag, rydrag, ddrag, dupimage, ddownimage, doverimage);
m.nr = nr;
m.ondrag = function (v, p) {
p.onuserslider(this.nr, v);
};
return(m);
};
o.setuserslidervalue = function (nr, v) {
this["usl" + nr].setvalue(v);
};
o._setslider = function (obj_name, obj_depth, xoffset, yoffset, bimage, rxfill, ryfill, dfill, fimage, rxdrag, rydrag, ddrag, dupimage, ddownimage, doverimage) {
if (ddrag < 0) {
rydrag = rydrag - ddrag;
}
var m = this.attachmovie("KC8_Object", obj_name, obj_depth, {_x:xoffset, _y:yoffset, dfill:dfill, rxdrag:rxdrag, rydrag:rydrag, ddrag:ddrag, prefix:this.prefix});
m.setvalue = function (v, second) {
if (second) {
var f = this.fill2;
} else {
var f = this.fill1;
if (!this.drag.onmousemove) {
if (0 < this.ddrag) {
this.drag._x = math.round(this.rxdrag + ((this.ddrag * v) / 100));
} else {
this.drag._y = math.round(this.rydrag + ((this.ddrag * v) / 100));
}
}
}
f.mask.clear();
if (0 < this.dfill) {
f.mask.box(0, 0, math.round((this.wfill * v) / 100), this.hfill, 0, 100, true);
} else {
f.mask.box(0, this.hfill - math.round((this.hfill * v) / 100), this.wfill, this.hfill, 0, 100, true);
}
};
this._setimage.call(m, "base", 1, 0, 0, bimage);
var f = this._setimage.call(m, "fill1", 2, rxfill, ryfill, fimage);
m.wfill = f._width;
m.hfill = f._height;
f.attachmovie("KC8_Object", "mask", 2);
f.setmask(f.mask);
f = this._setimage.call(m, "fill2", 3, rxfill, ryfill, fimage);
f._alpha = 40;
f.attachmovie("KC8_Object", "mask", 2);
f.setmask(f.mask);
var btn = this._setbutton.call(m, "drag", 4, rxdrag, rydrag, dupimage, ddownimage, doverimage);
btn._x = (m.rxdrag = m.rxdrag - (btn._width >> 1));
btn._y = (m.rydrag = m.rydrag - (btn._height >> 1));
btn.onbtnpress = function (p) {
this.startdrag(false, p.rxdrag, p.rydrag + math.min(p.ddrag, 0), p.rxdrag + math.max(0, p.ddrag), p.rydrag);
p.onstartdrag(p._parent);
this.onmousemove = function () {
var p = this._parent;
if (0 < p.ddrag) {
p.ondrag((100 * (this._x - p.rxdrag)) / p.ddrag, p._parent);
} else {
p.ondrag((100 * (this._y - p.rydrag)) / p.ddrag, p._parent);
}
};
};
btn.onbtnrelease = function (p) {
p.onstopdrag(p._parent);
};
return(m);
};
o.setprevbutton = function (xoffset, yoffset, upimage, downimage, overimage) {
var btn = this._setbutton("prev", 10, xoffset, yoffset, upimage, downimage, overimage);
btn.onbtnrelease = function (p) {
if (0 < p._nr) {
p.setplaylist(0, p._nr - 1);
}
};
};
o.setplaybutton = function (xoffset, yoffset, upimage, downimage, overimage) {
var btn = this._setbutton("playb", 11, xoffset, yoffset, upimage, downimage, overimage);
btn.onbtnrelease = function (p) {
p.fn_play();
p._playpausechk(true);
};
this._playpausechk();
};
o.setpausebutton = function (xoffset, yoffset, upimage, downimage, overimage) {
var btn = this._setbutton("pause", 12, xoffset, yoffset, upimage, downimage, overimage);
btn.onbtnrelease = function (p) {
p.fn_pause();
p._playpausechk(true);
};
this._playpausechk();
};
o._playpausechk = function (v) {
if ((this.playb._x == this.pause._x) and (this.playb._y == this.pause._y)) {
this.playb._visible = this.paused;
this.pause._visible = !this.paused;
if (v) {
this.playb.attachbitmap(this.playb._down, 1);
this.pause.attachbitmap(this.pause._down, 1);
}
}
};
o.setstopbutton = function (xoffset, yoffset, upimage, downimage, overimage) {
var btn = this._setbutton("stopb", 13, xoffset, yoffset, upimage, downimage, overimage);
btn.onbtnrelease = function (p) {
p.fn_stop();
p.paused = true;
p._playpausechk();
};
};
o.setnextbutton = function (xoffset, yoffset, upimage, downimage, overimage) {
var btn = this._setbutton("next", 14, xoffset, yoffset, upimage, downimage, overimage);
btn.onbtnrelease = this._next;
};
o._next = function (p, chk_loop) {
if (chk_loop) {
if (p._repeat == 1) {
p.setplaylist(0, p._nr);
} else if (p._nr < (p.playlist.length - 1)) {
p.setplaylist(0, p._nr + 1);
} else {
p.setplaylist(0, 0, p._repeat == 0);
}
} else if (p._nr < (p.playlist.length - 1)) {
p.setplaylist(0, p._nr + 1);
}
};
o.setplbutton = function (xoffset, yoffset, upimage, downimage, overimage) {
var btn = this._setbutton("plb", 15, xoffset, yoffset, upimage, downimage, overimage, true, this.pl_dsp._visible);
btn.onbtnrelease = function (p) {
p.pl_underlay._visible = (p.pl_dsp._visible = this.down);
};
btn._tip = "Toggle playlist";
};
o.setdragbutton = function (xoffset, yoffset, upimage, downimage, overimage) {
var btn = this._setbutton("drb", 16, xoffset, yoffset, upimage, downimage, overimage);
btn.onbtnpress = function (p) {
p.startdrag(false);
};
btn.onbtnrelease = function (p) {
p.stopdrag();
};
btn._tip = "Drag MediaPlayer";
};
o.setuserbutton = function (nr, xoffset, yoffset, upimage, downimage, overimage, hold, down) {
nr = this.limit(0, 9, nr);
var btn = this._setbutton("user" + nr, 20 + nr, xoffset, yoffset, upimage, downimage, overimage, hold, down);
btn.nr = nr;
btn.onbtnrelease = function (p) {
p.onuserbutton(this.nr, this.down);
};
};
o._setbutton = function (obj_name, obj_depth, xoffset, yoffset, upimage, downimage, overimage, hold, down) {
var m = this.attachmovie("KC8_Object", obj_name, obj_depth, {_x:xoffset, _y:yoffset, hold:hold, down:down});
var states = ["up", "down", "over"];
var i = 0;
while (i < 3) {
var s = states[i];
this[(("_" + obj_name) + "_") + s].dispose();
this[(("_" + obj_name) + "_") + s] = flash.display.bitmapdata.loadbitmap(this.prefix + eval (s + "Image"));
var v = this[(("_" + obj_name) + "_") + s];
if (!v.draw) {
v = eval (s + "Image");
if (!v.draw) {
v = eval (v);
}
}
if (v.draw) {
m["_" + s] = v;
} else {
m["_" + s] = m._up;
}
i++;
}
m.attachbitmap(((!down) ? (m._up) : (m._down)), 1);
m.cleartip = function () {
clearinterval(this.tid);
this.tid = undefined;
_root.kc8_mptip.removetextfield();
};
m.showtip = function () {
this.cleartip();
if (this._tip) {
_root.createtextfield("KC8_MPtip", _root.getnexthighestdepth(), _root._xmouse, _root._ymouse, 0, 0);
var t = _root.kc8_mptip;
t.autosize = true;
t.selectable = false;
t.type = "dynamic";
t.border = true;
t.background = true;
t.backgroundcolor = 16777185 /* 0xFFFFE1 */;
t.setnewtextformat(new textformat("_sans", 11));
t.text = this._tip;
t._y = t._y - t._height;
}
};
m.onrollover = function (v) {
if (!v) {
this.tid = setinterval(this, "showTip", 750);
}
if ((!this.hold) or (!this.down)) {
this.attachbitmap(this._over, 1);
}
};
m.onrollout = function () {
this.cleartip();
if ((!this.hold) or (!this.down)) {
this.attachbitmap(this._up, 1);
}
};
m.onpress = function () {
this.cleartip();
this.down = !this.down;
this.attachbitmap(this._down, 1);
this.onbtnpress(this._parent);
};
m.onrelease = function () {
this.stopdrag();
this.onmousemove = null;
this.onbtnrelease(this._parent);
this.onrollover(true);
};
m.onreleaseoutside = function () {
this.onrelease();
this.onrollout();
};
m.usehandcursor = true;
return(m);
};
o.setdisplay = function (xoffset, yoffset, width, height, bgcolor, ellipse) {
var vh = this.videoholder;
var m = this.vhm;
if ((width < 1) or (height < 1)) {
vh._visible = false;
} else {
vh._visible = true;
m._x = (vh._x = xoffset);
m._y = (vh._y = yoffset);
vh.clear();
if (bgcolor == undefined) {
bgcolor = 0;
}
vh.box(0, 0, width, height, bgcolor, 100, true);
m.clear();
if (ellipse) {
m.linestyle();
m.beginfill(0);
m.moveto(width, height * 0.5);
m.curveto(width, height * 0.292890012264252, width * 0.853550016880035, height * 0.146449998021126);
m.curveto(width * 0.707109987735748, 0, width * 0.5, 0);
m.curveto(width * 0.292890012264252, 0, width * 0.146449998021126, height * 0.146449998021126);
m.curveto(0, height * 0.292890012264252, 0, height * 0.5);
m.curveto(0, height * 0.707109987735748, width * 0.146449998021126, height * 0.853550016880035);
m.curveto(width * 0.292890012264252, height, width * 0.5, height);
m.curveto(width * 0.707109987735748, height, width * 0.853550016880035, height * 0.853550016880035);
m.curveto(width, height * 0.707109987735748, width, height * 0.5);
m.endfill();
} else {
m.box(0, 0, width, height, 0, 100, true);
}
var v = vh._video;
v.bgcolor = bgcolor;
v.vhwidth = (vh.w = width);
v.vhheight = (vh.h = height);
this.setscalemode(this._scalemode, this._smoothing);
}
};
o.settimer = function (xoffset, yoffset, font, size, color, bold, ranchor, ttime) {
if (xoffset == undefined) {
this.timer.removetextfield();
} else {
this.createtextfield("timer", 6, 0, 0, 0, 0);
var t = this.timer;
t._x = xoffset;
t._y = yoffset;
t.ttime = ttime;
t.autosize = ((!ranchor) ? true : "right");
t.selectable = false;
t.setnewtextformat(new textformat(font, size, color, bold));
}
};
o.setscalemode = function (scalemode, smoothing) {
this.videoholder._video.scalemode = (this._scalemode = scalemode);
if (smoothing != undefined) {
this.videoholder._video.smoothing = (this._smoothing = smoothing);
}
this._updatevideosize();
};
o._updatevideosize = function () {
var v = this.videoholder._video;
var s = this.videoholder.still;
s._xscale = 100;
s._yscale = 100;
if (s._width * s._height) {
var vs = ((1 >= this._scalemode) ? (math[((0 >= this._scalemode) ? "min" : "max")](v.vhwidth / s._width, v.vhheight / s._height)) : 1);
s._width = s._width * vs;
s._height = s._height * vs;
s._x = (v.vhwidth - s._width) / 2;
s._y = (v.vhheight - s._height) / 2;
}
if ((this.ctype == 0) and (v.width * v.height)) {
this.videoholder.onenterframe = null;
var vs = ((1 >= v.scalemode) ? (math[((0 >= v.scalemode) ? "min" : "max")](v.vhwidth / v.width, v.vhheight / v.height)) : 1);
v._width = v.width * vs;
v._height = v.height * vs;
v._x = (v.vhwidth - v._width) / 2;
v._y = (v.vhheight - v._height) / 2;
v._visible = true;
}
};
o.setexternalplaylist = function (plfile, nr, paused) {
this._lv2.nr = nr;
this._lv2.paused = paused;
this._lv2.load(plfile);
};
o.setplaylist = function (playlist, nr, paused) {
var p = this.pl_dsp;
var l = p.list;
l["item" + this._nr].down = false;
l["item" + this._nr].onrollout();
this.idsp.st.text = "";
this.fn_unload();
if (playlist != 0) {
this.pl_object = undefined;
if (playlist._iarray) {
playlist.mpo = this;
playlist.onchange = function () {
this.mpo.setplaylist(0, this._sel);
};
this.pl_object = playlist;
this.playlist = this.ocopy(playlist._iarray);
} else if (playlist._mlh) {
playlist.mpo = this;
playlist.nr = nr;
playlist.paused = paused;
playlist.onenterframe = function () {
this.onenterframe = null;
this.mpo.setplaylist(this, this.nr, this.paused);
};
} else {
this.playlist = this.ocopy(playlist);
}
this._nr = nr;
this.updatelist();
}
if (nr == undefined) {
nr = 0;
} else {
nr = nr % this.playlist.length;
}
var i = this.pl_dsp.list["item" + nr];
i.down = true;
i.attachbitmap(i._down, 1);
if (this.pl_object) {
this.pl_object.setselected(nr);
}
this._nr = nr;
nr = this.playlist[this._nr];
if (nr.value) {
this.idsp.st.htmltext = nr.label;
this.idsp.st._x = this.idsp.w;
nr = nr.value;
}
var s = nr.substr(-3);
this.ctype = this.ctypes.indexof(s.tolowercase()) / 3;
if (this.ctype >= 0) {
if (5 < this.ctype) {
this.ctype = 0;
}
if ((this.ctype < 1) or (2 < this.ctype)) {
this.videoholder.st.text = "";
}
if (this._cvol) {
this._classicvol();
}
this.setfunctions(this.ctype);
this.onplay(this._nr, nr, this.ctype);
this.fn_load(nr);
if (paused) {
this.fn_pause();
this.fn_seek(0);
}
this._playpausechk();
}
if (!p.pl_slider.drag.onmousemove) {
i = this._item_up.height;
var v = 0;
if ((i * this._nr) < (l.y0 - l._y)) {
l._y = l.y0 - (i * this._nr);
v = -1;
} else if ((((l.lh + l.y0) - l._y) - i) < (i * this._nr)) {
l._y = ((l.lh + l.y0) - (i * this._nr)) - i;
v = -1;
}
if (v) {
v = (100 * (l.y0 - l._y)) / (l._height - l.lh);
p.pl_slider.setvalue(((p.pl_slider.ddrag >= 0) ? (v) : (100 - v)));
}
}
};
o.setlistdisplay = function (xoffset, yoffset, image, width, height, s9rct, rxlist, rylist, lheight, iupimage, idownimage, ioverimage, font, size, color, bold, align, rxslider, ryslider, bimage, rxdrag, rydrag, ddrag, dupimage, ddownimage, doverimage) {
this.plb.down = false;
this.plb.onpress();
this._setbutton("item", 1, 0, 0, iupimage, idownimage, ioverimage);
this._item_up = this.item._up;
this._item_down = this.item._down;
this._item_over = this.item._over;
this._setimage("pl_underlay", 1, xoffset, yoffset, image, width, height, s9rct);
var p = this.attachmovie("KC8_Object", "pl_dsp", 8, {_x:xoffset, _y:yoffset, _setimage:this._setimage, _setbutton:this._setbutton, prefix:this.prefix});
var l = p.attachmovie("KC8_Object", "list", 1, {_x:rxlist, _y:rylist, y0:rylist, lh:lheight});
l.tf = new textformat(font, size, color, bold, false, false, "", null, align, 4, 4, 0, 0);
var th = l.tf.gettextextent("yf");
l.th = th.height;
this.updatelist();
p.attachmovie("KC8_Object", "mask", 2, {_x:rxlist, _y:rylist});
p.mask.box(0, 0, this._item_up.width, lheight, 0, 100, true);
l.setmask(p.mask);
this._setslider.call(p, "pl_slider", 3, rxslider, ryslider, bimage, null, null, null, null, rxdrag, rydrag, ddrag, dupimage, ddownimage, doverimage);
if (ddrag < 0) {
p.pl_slider.setvalue(100);
}
p.pl_slider.onstartdrag = function (p) {
if (p.mask._height >= p.list._height) {
this.drag.stopdrag();
}
};
p.pl_slider.ondrag = function (v, p) {
p.list._y = p.list.y0 - math.round(((this.ddrag >= 0) ? (v / 100) : (1 - (v / 100))) * math.max(0, p.list._height - p.list.lh));
};
};
o.setlistvisibility = function (v) {
this.pl_underlay._visible = v;
this.pl_dsp._visible = v;
this.plb.down = v;
this.plb.attachbitmap(((!v) ? (this.plb._up) : (this.plb._down)), 1);
};
o.updatelist = function () {
var p = this.pl_dsp;
var l = p.list;
var y = 0;
var i = 0;
while (i < this.playlist.length) {
var btn = this._setbutton.call(l, "item" + i, i, 0, y, this._item_up, this._item_down, this._item_over, true, i == this._nr);
btn.nr = i;
y = y + btn._height;
btn.createtextfield("t", 2, 0, 0, btn._width, btn._height);
var t = btn.t;
t.html = true;
t.selectable = false;
t.setnewtextformat(l.tf);
t.htmltext = ((!this.playlist[i].label) ? "" : (this.playlist[i].label));
t._y = math.max(0, (btn._height - l.th) >> 1) - 2;
btn.onbtnrelease = function (p) {
var pp = p._parent._parent;
if (pp._nr != this.nr) {
pp.setplaylist(0, this.nr);
} else {
this.down = true;
}
if (pp.plselclose) {
pp.setlistvisibility(false);
}
};
i++;
}
while (l["item" + i]) {
l["item" + i].removemovieclip();
i++;
}
};
o.setrepeat = function (v) {
this._repeat = v;
};
o.shuffleplay = function () {
if (this.pl_object) {
var l = this.pl_object._iarray.length;
var i = 0;
while (i < l) {
var r = math.floor(math.random() * l);
var t = this.pl_object._iarray[i];
this.pl_object._iarray[i] = this.pl_object._iarray[r];
this.pl_object._iarray[r] = t;
i++;
}
this.setplaylist(this.pl_object, 0);
} else {
var l = this.playlist.length;
var i = 0;
while (i < l) {
var r = math.floor(math.random() * l);
var t = this.playlist[i];
this.playlist[i] = this.playlist[r];
this.playlist[r] = t;
i++;
}
this.setplaylist(0, 0);
}
this.updatelist();
};
o.scroll = function () {
var st = this.idsp.st;
if (st.text) {
st._x = st._x - this._isspeed;
if (st._x < (-st._width)) {
st._x = this.idsp.w;
}
st._y = ((this.idsp.h - st.h) >> 1) - 2;
st._visible = true;
} else {
st._visible = false;
}
};
o.setinfoscroll = function (mode, font, size, color, bold, speed, xoffset, yoffset, width, height) {
clearinterval(this.iid);
this.iid = undefined;
var ht = this.idsp.st.htmltext;
this.idsp.st.removetextfield();
if (arguments.length) {
if (width) {
this.idsp = this.attachmovie("KC8_Object", "infoscroll", 5, {_x:xoffset, _y:yoffset, w:width, h:height});
this.idsp.attachmovie("KC8_Object", "mask", 3);
this.idsp.mask.box(0, 0, width, height, 0, 100, true);
this.idsp.setmask(this.idsp.mask);
} else {
this.infoscroll.removemovieclip();
this.idsp = this.videoholder;
}
this.idsp.createtextfield("st", 2, 0, 0, 0, 0);
var t = this.idsp.st;
var tf = new textformat(font, size, color, bold);
t.h = tf.gettextextent("yf");
t.h = t.h.height;
t.html = true;
t.autosize = true;
t.selectable = false;
t.setnewtextformat(tf);
if (ht) {
t.htmltext = ht;
}
this._imode = mode;
this._isspeed = speed;
this.iid = setinterval(this, "scroll", 100);
}
};
o.setbuffertime = function (v) {
this._ns.setbuffertime(v);
};
o.setstillsduration = function (v) {
this._st = v;
};
o.setvolume = function (v) {
v = this.limit(0, 100, v);
this._vol = v;
this._snd.setvolume(((!this._mute) ? (v) : 0));
this._vsnd.setvolume(((!this._mute) ? (v) : 0));
this.volume.setvalue(v);
};
o.mute = function (v) {
this._mute = v;
this.setvolume(this._vol);
};
o.setbalance = function (v) {
this._bal = (v = this.limit(0, 100, v));
v = (2 * v) - 100;
this._snd.setpan(v);
this._vsnd.setpan(v);
};
o.setfunctions = function (ctype) {
if (ctype == 0) {
this.fn_load = function (v) {
this._ns.onstatus = function (v) {
v = (this.laststatus = v.code);
if (v == "NetStream.Play.Start") {
this.o.videoholder.onenterframe = function () {
this._parent._updatevideosize();
};
} else if ((v == "NetStream.Play.Stop") or ((v == "NetStream.Buffer.Empty") and (this.bytesloaded == this.bytestotal))) {
this.onstatus = null;
this.o._next(this.o, true);
}
};
this.videoholder.attachaudio(this._ns);
this._vsnd = new sound(this.videoholder);
this._ns.play(v, 0);
this.setvolume(this._vol);
this.setbalance(this._bal);
this.paused = false;
};
this.fn_unload = function () {
if (this._ns.laststatus != "NetStream.Play.Stop") {
this._ns.close();
}
this._ns.duration = 0;
this.videoholder._video._visible = false;
this.videoholder._video.clear();
this.paused = true;
};
this.fn_percloaded = function () {
return(this.limit(0, 1, this._ns.bytesloaded / this._ns.bytestotal));
};
this.fn_position = function () {
return(this._ns.time * 1000);
};
this.fn_duration = function () {
return(this._ns.duration);
};
this.fn_seek = function (v) {
this._ns.seek(v / 1000);
};
this.fn_play = function () {
this._ns.pause(false);
this.paused = false;
};
this.fn_pause = function () {
this._ns.pause(true);
this.paused = true;
};
this.fn_stop = function () {
this.fn_pause();
this._ns.seek(0);
};
} else if ((ctype == 1) or (ctype == 2)) {
this.fn_load = function (v, from_lv) {
if (0 < this._imode) {
this.idsp.st.text = "";
}
if ((this.ctype == 1) or from_lv) {
this._snd.loadsound(v, true);
this._snd.start();
} else {
this._lv.load(v);
}
this.setvolume(this._vol);
this.setbalance(this._bal);
this.paused = false;
};
this.fn_unload = function () {
this._snd.start(0);
this._snd.stop();
this._snd.loadsound(null);
this._snd.id3duration = 0;
this.fd = undefined;
this.fdsp.clear();
this._onfd();
this.onfd();
this.paused = true;
};
this.fn_percloaded = function () {
return(this.limit(0, 1, this._snd.getbytesloaded() / this._snd.getbytestotal()));
};
this.fn_position = function () {
return(this._snd[((!this.paused) ? "position" : "oldpos")]);
};
this.fn_duration = function () {
return(math.max(this._snd.duration, this._snd.id3duration));
};
this.fn_seek = function (v) {
if (!this.paused) {
this._snd.start(v / 1000);
} else {
this._snd.oldpos = v;
}
};
this.fn_play = function () {
if (this.paused) {
this._snd.start(this._snd.oldpos / 1000);
}
this.paused = false;
};
this.fn_pause = function () {
if (!this.paused) {
this._snd.oldpos = this._snd.position;
}
this._snd.stop();
this.paused = true;
};
this.fn_stop = function () {
this._snd.oldpos = 0;
this._snd.stop();
this.paused = true;
};
} else if (((ctype == 3) or (ctype == 4)) or (ctype == 5)) {
this.fn_load = function (v) {
this.videoholder.createemptymovieclip("still", 1);
this._mcl.loadclip(v, this.videoholder.still);
this._mcl.onloadinit = function () {
this.o._updatevideosize();
};
this._mcl.iid = setinterval(this._mcl, "fn_stimer", 100);
this._mcl.stimer = 0;
this._mcl.fn_stimer = function () {
if ((!this.o.paused) and (this.o.fn_percloaded() == 1)) {
this.stimer = this.stimer + 100;
}
if (this.o._st < this.stimer) {
clearinterval(this.iid);
this.iid = undefined;
this.o._next(this.o, true);
}
};
this.paused = false;
};
this.fn_unload = function () {
clearinterval(this._mcl.iid);
this._mcl.iid = undefined;
this.videoholder.still.removemovieclip();
this.paused = true;
};
this.fn_percloaded = function () {
var v = this._mcl.getprogress(this.videoholder.still);
return(this.limit(0, 1, v.bytesloaded / v.bytestotal));
};
this.fn_position = function () {
return(this._mcl.stimer);
};
this.fn_duration = function () {
return(this._st);
};
this.fn_seek = function (v) {
this._mcl.stimer = this.limit(0, this._st, v);
if (this._mcl.iid == undefined) {
this._mcl.iid = setinterval(this._mcl, "fn_stimer", 100);
}
};
this.fn_play = function () {
this.paused = false;
};
this.fn_pause = function () {
this.paused = true;
};
this.fn_stop = function () {
this._mcl.stimer = 0;
this.paused = true;
};
}
};
object.kc8_mediaplayer = function () {
this.init();
};
object.kc8_mediaplayer.prototype = o;
object.registerclass("KC8_MediaPlayer", object.kc8_mediaplayer);
delete o;
#endinitclip
Symbol 246 Button
on (release) {
gotoAndStop (727);
}
Symbol 249 Button
on (release) {
gotoAndPlay (727);
}
Symbol 252 Button
on (release) {
gotoAndStop (2347);
}
Symbol 255 Button
on (release) {
stopAllSounds();
}
Symbol 258 Button
on (release) {
gotoAndStop (2428);
}
Symbol 263 Button
on (release) {
stopAllSounds();
}
on (release) {
gotoAndPlay (3);
}
Symbol 268 Button
on (release) {
gotoAndStop (808);
}
Symbol 269 Button
on (release) {
stop();
}
Symbol 272 Button
on (release) {
play();
}
Symbol 275 Button
on (release) {
stopAllSounds();
}
Symbol 283 Button
on (release) {
gotoAndStop (727);
}
Symbol 284 Button
on (release) {
gotoAndStop (889);
}
Symbol 293 Button
on (release) {
gotoAndStop (808);
}
Symbol 294 Button
on (release) {
gotoAndStop (970);
}
Symbol 300 Button
on (release) {
gotoAndStop (889);
}
Symbol 301 Button
on (release) {
gotoAndStop (1051);
}
Symbol 307 Button
on (release) {
gotoAndStop (1132);
}
Symbol 308 Button
on (release) {
gotoAndStop (970);
}
Symbol 314 Button
on (release) {
gotoAndStop (1051);
}
Symbol 315 Button
on (release) {
gotoAndStop (1213);
}
Symbol 321 Button
on (release) {
gotoAndStop (1132);
}
Symbol 322 Button
on (release) {
gotoAndStop (1294);
}
Symbol 329 Button
on (release) {
gotoAndStop (1213);
}
Symbol 330 Button
on (release) {
gotoAndStop (1375);
}
Symbol 337 Button
on (release) {
gotoAndStop (1294);
}
Symbol 338 Button
on (release) {
gotoAndStop (1456);
}
Symbol 344 Button
on (release) {
gotoAndStop (1375);
}
Symbol 345 Button
on (release) {
gotoAndStop (1537);
}
Symbol 351 Button
on (release) {
gotoAndStop (1456);
}
Symbol 352 Button
on (release) {
gotoAndStop (1618);
}
Symbol 358 Button
on (release) {
gotoAndStop (1537);
}
Symbol 359 Button
on (release) {
gotoAndStop (1699);
}
Symbol 365 Button
on (release) {
gotoAndStop (1618);
}
Symbol 366 Button
on (release) {
gotoAndStop (1780);
}
Symbol 372 Button
on (release) {
gotoAndStop (1699);
}
Symbol 373 Button
on (release) {
gotoAndStop (1861);
}
Symbol 379 Button
on (release) {
gotoAndStop (1780);
}
Symbol 380 Button
on (release) {
gotoAndStop (1942);
}
Symbol 388 Button
on (release) {
gotoAndStop (1861);
}
Symbol 389 Button
on (release) {
gotoAndStop (2023);
}
Symbol 396 Button
on (release) {
gotoAndStop (1942);
}
Symbol 397 Button
on (release) {
gotoAndStop (2104);
}
Symbol 403 Button
on (release) {
gotoAndStop (2023);
}
Symbol 404 Button
on (release) {
gotoAndStop (2185);
}
Symbol 410 Button
on (release) {
gotoAndStop (2266);
}
Symbol 412 Button
on (release) {
gotoAndStop (2104);
}
Symbol 420 Button
on (release) {
gotoAndStop (2185);
}
Symbol 436 Button
on (release) {
gotoAndStop (727);
}
Symbol 475 Button
on (release) {
gotoAndStop (1213);
}
Symbol 476 Button
on (release) {
gotoAndStop (1051);
}
Symbol 477 Button
on (release) {
gotoAndStop (970);
}
Symbol 478 Button
on (release) {
gotoAndStop (889);
}
Symbol 479 Button
on (release) {
gotoAndStop (1132);
}
Symbol 480 Button
on (release) {
gotoAndStop (808);
}
Symbol 481 Button
on (release) {
gotoAndStop (1780);
}
Symbol 482 Button
on (release) {
gotoAndStop (1699);
}
Symbol 483 Button
on (release) {
gotoAndStop (1618);
}
Symbol 484 Button
on (release) {
gotoAndStop (1537);
}
Symbol 485 Button
on (release) {
gotoAndStop (1456);
}
Symbol 486 Button
on (release) {
gotoAndStop (1375);
}
Symbol 487 Button
on (release) {
gotoAndStop (1294);
}
Symbol 488 Button
on (release) {
gotoAndStop (2185);
}
Symbol 489 Button
on (release) {
gotoAndStop (2104);
}
Symbol 490 Button
on (release) {
gotoAndStop (2023);
}
Symbol 491 Button
on (release) {
gotoAndStop (1942);
}
Symbol 492 Button
on (release) {
gotoAndStop (1861);
}