Frame 1
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes - loaded_bytes;
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
loadBar._width = loadBarHousing._width * (percent / 100);
percent_done = int((loaded_bytes / total_bytes) * 100) + "%";
ifFrameLoaded (4) {
if (_root.emailme == "true") {
EMAILURL = "/litebrite/content/lb_email.cfm";
emailSender = new LoadVars();
emailHolder = new LoadVars();
trace("List: " + list_str);
emailSender.a = "open_email";
emailSender.page = "LB_Email_app";
emailSender.id = mailid;
emailSender.sendAndLoad(EMAILURL, emailHolder);
stop();
emailHolder.onLoad = function () {
gotoAndStop (4);
};
} else {
gotoAndStop (3);
}
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 4
function email_me() {
mc_email._x = -20;
}
function fnSendList(email, name, vname, vemail) {
EMAILURL = "/litebrite/content/lb_email.cfm";
emailLoader = new LoadVars();
emailReceiver = new LoadVars();
trace("List: " + list_str);
emailLoader.a = "email";
emailLoader.page = "LB_Email_app";
emailLoader.recipient_name = vname;
emailLoader.sender_name = name;
emailLoader.sender_email = email;
emailLoader.recipient_email = vemail;
emailLoader.list_str = list_str;
emailLoader.sendAndLoad(EMAILURL, emailReceiver);
mc_email._x = 2000;
}
email_mc.duplicateMovieClip("mc_email", 65000);
mc_email._x = 2000;
peg_color = "black";
peg_mc_0._xscale = 70;
peg_mc_0._yscale = 70;
row = 20;
layer = 3;
inc = 46;
mouse_peg = 0;
var b = 1;
while (b < 20) {
var c = 11;
while (c < 56) {
_root.layer = _root.layer + 1;
peg_mc_0.duplicateMovieClip((("peg_mc_" + c) + "_r") + b, _root.layer);
if (c == 11) {
eval ((("peg_mc_" + c) + "_r") + b)._x = 23;
eval ((("peg_mc_" + c) + "_r") + b)._y = _root.row;
} else {
eval ((("peg_mc_" + c) + "_r") + b)._x = eval ((("peg_mc_" + (c - 1)) + "_r") + b)._x + 13;
eval ((("peg_mc_" + c) + "_r") + b)._y = _root.row;
}
c++;
}
_root.row = _root.row + 13;
var d = 11;
while (d < 56) {
peg_mc_0.duplicateMovieClip((("peg_mc_" + d) + "r") + b, _root.layer);
_root.layer = _root.layer + 1;
if (d == 11) {
eval ((("peg_mc_" + d) + "r") + b)._x = 15;
eval ((("peg_mc_" + d) + "r") + b)._y = _root.row;
} else {
eval ((("peg_mc_" + d) + "r") + b)._x = eval ((("peg_mc_" + (d - 1)) + "r") + b)._x + 13;
eval ((("peg_mc_" + d) + "r") + b)._y = _root.row;
}
d++;
}
_root.row = _root.row + 13;
b++;
}
mouseListener = new Object();
mouseListener.onMouseDown = function () {
_root.dragger = "Yes";
};
mouseListener.onMouseUp = function () {
_root.dragger = "No";
};
Mouse.addListener(mouseListener);
Instance of Symbol 40 MovieClip "peg_mc_0" in Frame 4
on (press) {
this.gotoandStop(_root.peg_color);
eval (this).color = _root.peg_color;
trace(" -- ");
trace((eval (this) + ".color = ") + eval (this).color);
if (_root.mouse_peg == 0) {
_root.list_str = _root.list_str + (((("a_" + this._name) + "=") + eval (this).color) + "&");
} else {
_root.list_str = _root.list_str + (((("a_" + this._name) + "=") + eval (this).color) + "&");
_root.list_str = _root.list_str + (((((("a_" + this._name.substr(0, 7)) + (this._name.substr(7, 2) - 1)) + this._name.substr(9, 10)) + "=") + eval (this).color) + "&");
_root.list_str = _root.list_str + (((((("a_" + this._name.substr(0, 7)) + (Number(this._name.substr(7, 2)) + 1)) + this._name.substr(9, 10)) + "=") + eval (this).color) + "&");
}
}
Instance of Symbol 165 MovieClip "menu" in Frame 4
onClipEvent (enterFrame) {
this.swapDepths(60005);
}
Instance of Symbol 166 MovieClip "mouse_track" in Frame 4
onClipEvent (load) {
startDrag ("", true);
Mouse.hide();
this.swapDepths(61000);
}
onClipEvent (mouseDown) {
_droptarget.gotoandStop(_root.peg_color);
_level0[(this._droptarget.substr(1, 7) + (this._droptarget.substr(8, 2) - _root.mouse_peg)) + this._droptarget.substr(10, 10)].gotoandStop(_root.peg_color);
_level0[(this._droptarget.substr(1, 7) + (Number(this._droptarget.substr(8, 2)) + _root.mouse_peg)) + this._droptarget.substr(10, 10)].gotoandStop(_root.peg_color);
if (this._droptarget.substr(1, 9) == "menu/prin") {
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (_root.mouse_peg == 0) {
this.peg1._visible = false;
this.peg3._visible = false;
} else {
this.peg1._visible = true;
this.peg3._visible = true;
}
if (_root.alignment == "vert") {
this.gotoandstop(2);
_root.menu.gotoandStop(3);
_root.background.gotoandStop(3);
} else {
this.gotoandstop(1);
_root.menu.gotoandStop(2);
_root.background.gotoandStop(2);
}
}
Frame 5
stop();
_root.help = 1;
Frame 6
gotoAndStop (5);
Frame 7
stop();
Instance of Symbol 219 MovieClip "quit_screen" in Frame 7
onClipEvent (enterFrame) {
this.swapDepths(62005);
}
Symbol 19 Button
on (release) {
_root.load_mc._x = 300;
_root.alignment = "hor";
gotoAndPlay (4);
}
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 3
stop();
Symbol 40 MovieClip Frame 1
stop();
if (_root.emailme == "true") {
if (!(eval ("_root.emailHolder.a_" + this._name) === undefined)) {
trace("emailHolder.a_" + this._name);
gotoAndStop(eval ("_root.emailHolder.a_" + this._name));
_root.list_str = _root.list_str + (((("a_" + this._name) + "=") + eval ("_root.emailHolder.a_" + this._name)) + "&");
}
}
Symbol 50 Button
on (release) {
_root.peg_color = "orange";
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 52 Button
on (release) {
_root.peg_color = "red";
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 54 Button
on (release) {
_root.peg_color = "purple";
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 56 Button
on (release) {
_root.peg_color = "pale";
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 58 Button
on (release) {
_root.peg_color = "magenta";
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 60 Button
on (release) {
_root.peg_color = "green";
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 62 Button
on (release) {
_root.peg_color = "yellow";
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 64 Button
on (release) {
_root.peg_color = "blue";
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 66 Button
on (release) {
_root.peg_color = "black";
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 72 Button
on (release) {
_root.list_str = "";
_root.emailme = "false";
var b = 1;
while (b < 20) {
var c = 11;
while (c < 56) {
_root[(("peg_mc_" + c) + "_r") + b].gotoandStop(1);
c++;
}
var d = 11;
while (d < 56) {
_root[(("peg_mc_" + d) + "r") + b].gotoandStop(1);
d++;
}
b++;
}
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Instance of Symbol 40 MovieClip "peg1" in Symbol 79 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Instance of Symbol 40 MovieClip "peg2" in Symbol 79 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Instance of Symbol 40 MovieClip "peg3" in Symbol 79 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Instance of Symbol 40 MovieClip "peg1" in Symbol 79 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Instance of Symbol 40 MovieClip "peg2" in Symbol 79 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Instance of Symbol 40 MovieClip "peg3" in Symbol 79 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Symbol 84 Button
on (release) {
_root.mouse_peg = 1;
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 87 Button
on (release) {
_root.mouse_track._visible = false;
Mouse.hide();
getURL ("print:", "/print");
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 91 Button
on (release) {
getURL ("javascript:basicPopup('http://www.hasbro.com/games/tell_a_friend.cfm?server=www.hasbro.com/litebrite&script=/',500,500);");
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 94 Button
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
on (release) {
var b = 1;
while (b < 20) {
var c = 11;
while (c < 56) {
_root[(("peg_mc_" + c) + "_r") + b].gotoandStop(10);
c++;
}
var d = 11;
while (d < 56) {
_root[(("peg_mc_" + d) + "r") + b].gotoandStop(10);
d++;
}
b++;
}
_root.gotoandstop("quit");
}
Instance of Symbol 40 MovieClip "peg1" in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Instance of Symbol 40 MovieClip "peg1" in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Symbol 98 Button
on (release) {
_root.mouse_peg = 0;
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 103 Button
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
on (release) {
getURL ("javascript:window.external.AddFavorite('http://www.hasbro.com/litebrite/pl/page.litebrite_demo/dn/default.cfm', 'Lite-Brite Game Demo');");
}
Symbol 108 Button
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
on (release) {
_root.email_me();
}
Symbol 113 Button
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
_root.help = 0;
_root.mouse_track._visible = false;
Mouse.show();
var b = 1;
while (b < 20) {
var c = 11;
while (c < 56) {
_root[(("peg_mc_" + c) + "_r") + b]._visible = false;
c++;
}
var d = 11;
while (d < 56) {
_root[(("peg_mc_" + d) + "r") + b]._visible = false;
d++;
}
b++;
}
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
_root.help = 1;
_root.mouse_track._visible = true;
Mouse.hide();
var b = 1;
while (b < 20) {
var c = 11;
while (c < 56) {
_root[(("peg_mc_" + c) + "_r") + b]._visible = true;
c++;
}
var d = 11;
while (d < 56) {
_root[(("peg_mc_" + d) + "r") + b]._visible = true;
d++;
}
b++;
}
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
stop();
Instance of Symbol 115 MovieClip in Symbol 121 MovieClip Frame 2
on (rollOver) {
useHandCursor = false;
}
Symbol 141 Button
on (release) {
if (birth_year.getValue() == "") {
register_error.setActiveState(true);
register_error.setMessage("I am sorry, you must enter a year.");
} else if (birth_day.getValue() == "") {
register_error.setActiveState(true);
register_error.setMessage("I am sorry, you must enter a day.");
} else if (email_txt.text == "") {
register_error.setActiveState(true);
register_error.setMessage("I am sorry, you must enter an email address.");
} else {
regLoader = new LoadVars();
regReceiver = new LoadVars();
regLoader.email = email_txt;
regLoader.DOB_DAY = birth_day.getValue();
regLoader.DOB_MONTH = birth_month.getValue();
regLoader.DOB_YEAR = birth_year.getValue();
regLoader.NAMED_OPTIN = optin.getValue();
regLoader.NEEDSSEGMENT = "gameplayer";
regLoader.SOURCE_LIST = 3596496 /* 0x36E0D0 */;
loadmovie._visible = true;
regLoader.sendAndLoad("http://hasbro.ed4.net/starwars/reg/flash/signup2.cfm", regReceiver, "GET");
if (birth_year.getValue() > 1988) {
myFrame = 3;
} else {
myFrame = 2;
}
}
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Instance of Symbol 115 MovieClip in Symbol 142 MovieClip Frame 2
on (rollOver) {
useHandCursor = false;
}
Symbol 146 Button
on (release) {
var b = 1;
while (b < 20) {
var c = 11;
while (c < 56) {
_root[(("peg_mc_" + c) + "_r") + b].gotoandStop(1);
c++;
}
var d = 11;
while (d < 56) {
_root[(("peg_mc_" + d) + "r") + b].gotoandStop(1);
d++;
}
b++;
}
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 150 Button
on (release) {
_root.mouse_peg = 0;
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 151 Button
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
on (release) {
var b = 1;
while (b < 20) {
var c = 11;
while (c < 56) {
_root[(("peg_mc_" + c) + "_r") + b].gotoandStop(10);
c++;
}
var d = 11;
while (d < 56) {
_root[(("peg_mc_" + d) + "r") + b].gotoandStop(10);
d++;
}
b++;
}
_root.gotoandStop("quit");
}
Symbol 154 Button
on (release) {
_root.mouse_peg = 1;
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 155 Button
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
_root.help = 0;
_root.mouse_track._visible = false;
Mouse.show();
var b = 1;
while (b < 20) {
var c = 11;
while (c < 56) {
_root[(("peg_mc_" + c) + "_r") + b]._visible = false;
c++;
}
var d = 11;
while (d < 56) {
_root[(("peg_mc_" + d) + "r") + b]._visible = false;
d++;
}
b++;
}
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
_root.help = 1;
_root.mouse_track._visible = true;
Mouse.hide();
var b = 1;
while (b < 20) {
var c = 11;
while (c < 56) {
_root[(("peg_mc_" + c) + "_r") + b]._visible = true;
c++;
}
var d = 11;
while (d < 56) {
_root[(("peg_mc_" + d) + "r") + b]._visible = true;
d++;
}
b++;
}
}
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 2
stop();
Symbol 165 MovieClip Frame 1
stop();
Instance of Symbol 40 MovieClip "peg" in Symbol 165 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Instance of Symbol 40 MovieClip "peg" in Symbol 165 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Instance of Symbol 121 MovieClip "help_MC" in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_root.help = 1;
}
onClipEvent (enterFrame) {
if (_root.help == 1) {
this._visible = false;
this.gotoandStop(1);
} else {
this._visible = true;
this.gotoandStop(2);
_root.mouse_track._visible = false;
Mouse.show();
}
}
Instance of Symbol 142 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
_root.email = 1;
}
onClipEvent (enterFrame) {
if (_root.email == 1) {
this._visible = false;
this.gotoandStop(1);
} else {
this._visible = true;
this.gotoandStop(2);
_root.mouse_track._visible = false;
Mouse.show();
}
}
Symbol 165 MovieClip Frame 3
stop();
Instance of Symbol 164 MovieClip "help2_mc" in Symbol 165 MovieClip Frame 3
onClipEvent (load) {
_root.help = 1;
}
onClipEvent (enterFrame) {
if (_root.help == 1) {
this._visible = false;
this.gotoandStop(1);
} else {
this._visible = true;
this.gotoandStop(2);
_root.mouse_track._visible = false;
Mouse.show();
}
}
Symbol 166 MovieClip Frame 1
stop();
Instance of Symbol 40 MovieClip "peg1" in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Instance of Symbol 40 MovieClip "peg2" in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Instance of Symbol 40 MovieClip "peg3" in Symbol 166 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoandStop(_root.peg_color);
}
Symbol 166 MovieClip Frame 2
stop();
Symbol 167 Button
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 172 Button
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 186 Button
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
on (release) {
_root.mc_email._x = 2000;
}
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
close_btn.onRelease = function () {
Selection.setFocus(_parent.email);
gotoAndStop (1);
};
Symbol 197 MovieClip Frame 3
close_btn.onRelease = function () {
Selection.setFocus(_parent.name);
gotoAndStop (1);
};
Symbol 197 MovieClip Frame 4
close_btn.onRelease = function () {
Selection.setFocus(_parent.vemail);
gotoAndStop (1);
};
Symbol 197 MovieClip Frame 5
close_btn.onRelease = function () {
Selection.setFocus(_parent.vname);
gotoAndStop (1);
};
Symbol 198 MovieClip Frame 1
name.tabIndex = 1;
email.tabIndex = 2;
vname.tabIndex = 3;
vemail.tabIndex = 4;
send_btn.onRelease = function () {
var _local1 = email.text;
var _local3 = name.text;
var vname = vname.text;
var _local2 = vemail.text;
if (((_local1.length > 5) && (_local1.indexOf("@") != -1)) && (_local1.indexOf(".") != -1)) {
if ((_local3.length > 0) && (_local3 != "")) {
if (((_local2.length > 5) && (_local2.indexOf("@") != -1)) && (_local2.indexOf(".") != -1)) {
if ((vname.length > 0) && (vname != "")) {
_root.fnSendList(_local1, _local3, vname, _local2);
gotoAndStop (3);
} else {
messages_mc.gotoAndStop("vname");
}
} else {
messages_mc.gotoAndStop("vemail");
}
} else {
messages_mc.gotoAndStop("name");
}
} else {
messages_mc.gotoAndStop("email");
}
};
Symbol 203 Button
on (release) {
unloadMovie (_level0);
loadMovie ("litebrite.swf", _level0);
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 206 Button
on (release) {
getURL ("/litebrite/pl/page.wtb/dn/default.cfm", "main");
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 209 Button
on (release) {
getURL ("/litebrite/pl/page.browse/dn/default.cfm", "main");
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}
Symbol 212 Button
on (release) {
getURL ("javascript:close()");
}
on (rollOver) {
_root.mouse_track._visible = false;
Mouse.show();
}
on (rollOut) {
_root.mouse_track._visible = true;
Mouse.hide();
}