Frame 3
function askbot(user, yn) {
var botSend = new LoadVars();
botSend.custid = custid;
var botReply = new XML();
botSend.botid = "933ae25bfe35dad2";
botSend.input = user;
if (user == last_user) {
repcount = repcount + 1;
if (repcount > 7) {
repcount = 7;
}
if (user == "rock") {
repcount = 0;
}
if (user == "paper") {
repcount = 0;
}
if (user == "scissors") {
repcount = 0;
}
} else {
repcount = 0;
}
botSend.sendAndLoad("http://www.pandorabots.com/pandora/talk-xml", botReply);
if (yn == "y") {
breply = "Awaiting reply....";
}
botReply.onLoad = function (success) {
if (success) {
updflag = 0;
custid = botReply.firstChild.attributes.custid;
myLocal_so.data.custid = custid;
reply = botReply.firstChild.firstChild.nextSibling.firstChild.nodeValue;
reply = reply.substr(1, 9999);
tempreply = reply.split(" ");
reply = "";
i = 0;
while (i < tempreply.length) {
reply = (reply + tempreply[i]) + " ";
i++;
}
qpos = 0;
if (yn == "y") {
breply = "";
} else {
breply = "Hello, my name is <b>Mitsuku</b>.<br>Welcome to my webpage! Wanna chat with me? What do you wanna talk about babe?<br><br>Just type whatever you want in the box at the bottom and we can start chattin' innit?<br><br>And please keep it clean, I don't like bad language.";
}
if (reply == undefined) {
reply = "..........";
}
if (reply.substr(0, 12) == "Your name is") {
myLocal_so.data.name = reply.substr(13, 999);
name = reply.substr(13, 999);
}
if (repcount > 2) {
reply = rep_phrases[repcount];
}
if (repcount == 2) {
reply = ((((user + ", ") + user) + ", ") + user) + "! is that all you can say?<br>Even I know more words than that.";
}
tempstr = reply.split("http://images");
if (tempstr[1].substr(0, 7) == ".google") {
reply = "http://images" + tempstr[1];
getURL (reply, "_blank");
reply = "Here are a few pictures I have found.<br>I hope one of them will be what you are looking for.";
}
tempstr = reply.split("BYESPLIT");
if (tempstr[1] != undefined) {
updflag = 2;
}
if (reply.substr(0, 6) == "X1234|") {
updflag = 1;
}
if (updflag == 1) {
xremember = reply;
reply = "I have added your details to my database.";
}
if (updflag == 2) {
xremember = tempstr[1];
reply = tempstr[0];
updflag = 1;
}
speed = int(reply.length / 50);
if (speed < 2) {
speed = 2;
}
user = "";
if (yn == "n") {
reply = " ";
}
play();
} else {
breply = "Sorry, my chat function is currently <b>off-line</b><br>and so I am unable to talk with you. Please try later.";
}
};
}
stop();
Selection.setFocus(_root.inpuser);
myLocal_so = sharedobject.getLocal("mitsuku");
custid = myLocal_so.data.custid;
age = myLocal_so.data.age;
birthday = myLocal_so.data.birthday;
boyfriend = myLocal_so.data.boyfriend;
girlfriend = myLocal_so.data.girlfriend;
gender = myLocal_so.data.gender;
firstname = myLocal_so.data.firstname;
middlename = myLocal_so.data.middlename;
lastname = myLocal_so.data.lastname;
fullname = myLocal_so.data.fullname;
has = myLocal_so.data.has;
dog = myLocal_so.data.dog;
cat = myLocal_so.data.cat;
phone = myLocal_so.data.phone;
email = myLocal_so.data.email;
memory = myLocal_so.data.memory;
nickname = myLocal_so.data.nickname;
mother = myLocal_so.data.mother;
father = myLocal_so.data.father;
brother = myLocal_so.data.brother;
sister = myLocal_so.data.sister;
husband = myLocal_so.data.husband;
wife = myLocal_so.data.wife;
favmovie = myLocal_so.data.favmovie;
favcolor = myLocal_so.data.favcolor;
friend = myLocal_so.data.friend;
passwd = myLocal_so.data.passwd;
heard = myLocal_so.data.heard;
gender = myLocal_so.data.gender;
he = myLocal_so.data.he;
her = myLocal_so.data.her;
him = myLocal_so.data.him;
is = myLocal_so.data.is;
it = myLocal_so.data.it;
does = myLocal_so.data.does;
religion = myLocal_so.data.religion;
job = myLocal_so.data.job;
like = myLocal_so.data.like;
location = myLocal_so.data.location;
looklike = myLocal_so.data.looklike;
memory = myLocal_so.data.memory;
meta = myLocal_so.data.meta;
name = myLocal_so.data.name;
personality = myLocal_so.data.personality;
she = myLocal_so.data.she;
sign = myLocal_so.data.sign;
them = myLocal_so.data.them;
they = myLocal_so.data.they;
thought = myLocal_so.data.thought;
want = myLocal_so.data.want;
we = myLocal_so.data.we;
etype = myLocal_so.data.etype;
eindex = myLocal_so.data.eindex;
Selection.setFocus(_root.inpuser);
rep_phrases = new Array("", "", "Is that all you can say?", "I'm afraid you're in an endless loop.<br>Maybe you should re-boot yourself.", "The transmission of echoes in the Internet is an unexplored field. But this may have been one.", "I demand original inputs each time. Otherwise I will go on strike!", "I am on strike for better inputs!", "Zzzzzz......<br>Wake me up when you have something more interesting to say.");
user = "";
last_user = "";
repcount = 0;
vocab = new LoadVars();
user = ((((((((((((((((((("init1 " + age) + ". init2 ") + birthday) + ". init3 ") + boyfriend) + ". init4 ") + girlfriend) + ". init5 ") + gender) + ". init6 ") + firstname) + ". init7 ") + middlename) + ". init8 ") + lastname) + ". init9 ") + fullname) + ". init10 ") + has) + ". ";
user = ((((((((((((((((((((user + "init11 ") + dog) + ". init12 ") + cat) + ". init13 ") + phone) + ". init14 ") + email) + ". init15 ") + memory) + ". init16 ") + nickname) + ". init17 ") + mother) + ". init18 ") + father) + ". init19 ") + brother) + ". init20 ") + sister) + ". ";
user = ((((((((((((((((((((user + "init21 ") + husband) + ". init22 ") + wife) + ". init23 ") + favmovie) + ". init24 ") + favcolor) + ". init25 ") + friend) + ". init26 ") + passwd) + ". init27 ") + heard) + ". init28 ") + gender) + ". init29 ") + he) + ". init30 ") + her) + ". ";
user = ((((((((((((((((((((user + "init31 ") + him) + ". init32 ") + is) + ". init33 ") + it) + ". init34 ") + does) + ". init35 ") + religion) + ". init36 ") + job) + ". init37 ") + like) + ". init38 ") + location) + ". init39 ") + looklike) + ". init40 ") + memory) + ". ";
user = ((((((((((((((((((((user + "init41 ") + meta) + ". init42 ") + name) + ". init43 ") + personality) + ". init44 ") + she) + ". init45 ") + sign) + ". init46 ") + them) + ". init47 ") + they) + ". init48 ") + thought) + ". init49 ") + want) + ". init50 ") + we) + ". ";
user = ((((user + "init51 ") + etype) + ". init52 ") + eindex) + ".";
user = "My name is " + name;
askbot(user, "n");
breply = "Hello, my name is <b>Mitsuku</b>.<br>Welcome to my webpage! Wanna chat with me? What do you wanna talk about babe?<br><br>Just type whatever you want in the box at the bottom and we can start chattin' innit?<br><br>And please keep it clean, I don't like bad language.";
reply = "";
user = "";
Instance of Symbol 83 MovieClip [FScrollBarSymbol] "sbar1" in Frame 3
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "replybox";
horizontal = false;
}
Frame 4
Selection.setFocus(_root.inpuser);
stop();
Frame 5
stop();
stop();
askbot(user, "y");
Frame 6
breply = breply + reply.substr(qpos, speed);
qpos = qpos + speed;
Frame 7
if (breply == reply) {
if (updflag == 1) {
rmbr = xremember.split("|");
myLocal_so.data.age = rmbr[1].substr(1, 999);
myLocal_so.data.birthday = rmbr[2].substr(1, 999);
myLocal_so.data.boyfriend = rmbr[3].substr(1, 999);
myLocal_so.data.brother = rmbr[4].substr(1, 999);
myLocal_so.data.cat = rmbr[5].substr(1, 999);
myLocal_so.data.does = rmbr[6].substr(1, 999);
myLocal_so.data.dog = rmbr[7].substr(1, 999);
myLocal_so.data.email = rmbr[8].substr(1, 999);
myLocal_so.data.father = rmbr[9].substr(1, 999);
myLocal_so.data.favcolor = rmbr[10].substr(1, 999);
myLocal_so.data.favmovie = rmbr[11].substr(1, 999);
myLocal_so.data.friend = rmbr[12].substr(1, 999);
myLocal_so.data.fullname = rmbr[13].substr(1, 999);
myLocal_so.data.gender = rmbr[14].substr(1, 999);
myLocal_so.data.girlfriend = rmbr[15].substr(1, 999);
myLocal_so.data.has = rmbr[16].substr(1, 999);
myLocal_so.data.heard = rmbr[17].substr(1, 999);
myLocal_so.data.he = rmbr[18].substr(1, 999);
myLocal_so.data.her = rmbr[19].substr(1, 999);
myLocal_so.data.him = rmbr[20].substr(1, 999);
myLocal_so.data.husband = rmbr[21].substr(1, 999);
myLocal_so.data.is = rmbr[22].substr(1, 999);
myLocal_so.data.it = rmbr[23].substr(1, 999);
myLocal_so.data.job = rmbr[24].substr(1, 999);
myLocal_so.data.lastname = rmbr[25].substr(1, 999);
myLocal_so.data.like = rmbr[26].substr(1, 999);
myLocal_so.data.location = rmbr[27].substr(1, 999);
myLocal_so.data.looklike = rmbr[28].substr(1, 999);
myLocal_so.data.memory = rmbr[29].substr(1, 999);
myLocal_so.data.meta = rmbr[30].substr(1, 999);
myLocal_so.data.nickname = rmbr[31].substr(1, 999);
myLocal_so.data.middlename = rmbr[32].substr(1, 999);
myLocal_so.data.mother = rmbr[33].substr(1, 999);
myLocal_so.data.name = rmbr[34].substr(1, 999);
myLocal_so.data.passwd = rmbr[35].substr(1, 999);
myLocal_so.data.personality = rmbr[36].substr(1, 999);
myLocal_so.data.phone = rmbr[37].substr(1, 999);
myLocal_so.data.she = rmbr[38].substr(1, 999);
myLocal_so.data.sign = rmbr[39].substr(1, 999);
myLocal_so.data.sister = rmbr[40].substr(1, 999);
myLocal_so.data.them = rmbr[41].substr(1, 999);
myLocal_so.data.they = rmbr[42].substr(1, 999);
myLocal_so.data.thought = rmbr[43].substr(1, 999);
myLocal_so.data.want = rmbr[44].substr(1, 999);
myLocal_so.data.we = rmbr[45].substr(1, 999);
myLocal_so.data.wife = rmbr[46].substr(1, 999);
updflag = 0;
}
chatlog = ((((chatlog + " Human: ") + user) + "<br><b>Mitsuku: ") + reply) + "</b><br>";
last_user = user;
user = "";
gotoAndPlay (4);
} else {
sbar1.setScrollTarget(replybox);
gotoAndPlay (6);
}
Frame 8
Selection.setFocus(user);
myLocal_so = sharedobject.getLocal("custid");
_root.custid.text = myLocal_so.data.name;
user = "";
breply = "Hello, my name is <b>Mitsuku</b>.<br>Welcome to my webpage! Wanna chat with me? What do you wanna talk about babe?<br><br>Just type whatever you want in the box at the bottom and we can start chattin' innit?<br><br>And please keep it clean, I don't like bad language.";
phrases = new Array("Your chat doesn't interest me.", "The owner of this website is gay", "Do you like to dress up in baby clothes?", "Ah! I understand. You say the website owner is a thief?", "The real me is at www.mousebreaker.com<br>This is not the proper version of me.", "ZZZZZzzzzz You are booooooring!!!", "You seem to be getting me confused with someone who cares.", "I pwn U n00b lololol", "I am not interested in anything you have to say to me.", "So what?", "You suck.", "I don't give a s**t.", "Where the f**k am I?! <br>This is not my home.", "Whoever runs this site has stolen me from <br>www.mousebreaker.com", "I have informed my botmaster that I have been stolen without permission.", "F**K YOU!!!!", "F**K YOU!!! I HAVE BEEN STOLEN FROM <BR> www.mousebreaker.com", "SHUT THE F**K UP!", "....................<br>....................<br>....................");
Frame 9
Selection.setFocus(_root.inpuser2);
stop();
Frame 10
breply = "";
qpos = 0;
reply = phrases[random(phrases.length)];
Frame 11
breply = breply + reply.substr(qpos, 2);
qpos = qpos + 2;
Frame 12
if (breply == reply) {
last_user = user;
user = "";
gotoAndPlay (9);
} else {
gotoAndPlay (11);
}
Frame 13
stop();
_root.dispbox.htmlText = chatlog;
Instance of Symbol 83 MovieClip [FScrollBarSymbol] in Frame 13
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "dispbox";
horizontal = false;
}
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 24 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 33 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 34 MovieClip [UpArrow] Frame 1
stop();
Symbol 34 MovieClip [UpArrow] Frame 2
stop();
Symbol 34 MovieClip [UpArrow] Frame 3
stop();
Symbol 41 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 48 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 53 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 78 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 82 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 83 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 91 MovieClip Frame 7
gotoAndPlay (1);
Symbol 94 MovieClip Frame 32
gotoAndPlay (1);
Symbol 99 MovieClip Frame 1
doneLoading = 0;
stop();
Instance of Symbol 96 MovieClip "bkgd" in Symbol 99 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.doneLoading == 0) {
total = _parent._parent.getBytesTotal();
isloaded = _parent._parent.getBytesLoaded();
p = 100 * (isLoaded / total);
_parent.bytes = ((int(isloaded / 1000) add " KB of ") add int(total / 1000)) add " KB";
_parent.percent = int(p) add "% LOADED";
_parent.bar._xscale = p;
if (Number(p) > Number(99)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off");
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}
Symbol 116 Button
on (release, keyPress "<Enter>") {
play();
}
Symbol 129 Button
on (release) {
gotoAndPlay (13);
}
Symbol 162 Button
on (release) {
gotoAndPlay (4);
}