Frame 1
function onFailure() {
trace("Mochi did not load");
}
function StartGame() {
DelFrame();
stopAllSounds();
gotoAndStop (5);
trace("\u52A8\u753B\u64AD\u653E\u5B8C\u6BD5\uFF0C\u60A8\u7684\u6E38\u620F\u8DF3\u5230\u7B2C5\u5E27\uFF01");
}
function NewFrame() {
function NextFrame() {
}
T = setInterval(NextFrame, Fps);
}
function DelFrame() {
clearInterval(T);
stop();
}
function InitIntro(Obj) {
Obj.titterBtn.onRelease = function () {
if (introOK) {
open_link("intro");
} else {
open_link("preloader");
}
};
}
function NewLoading(Obj) {
LoadingPic = Obj;
Obj.onEnterFrame = function () {
Load = int((getBytesLoaded() / getBytesTotal()) * 100);
this.LoadingPic.gotoAndStop(Load);
this.loadTxt.text = Load + " %";
if (Load == 100) {
LoadOK();
delete this.onEnterFrame;
}
};
InitIntro(Obj);
}
function LoadOK() {
stopAllSounds();
NewFrame();
introOK = true;
LoadingPic.play();
if (_root.continueButton == 2) {
LoadingPic.Continue.gotoAndStop(2);
}
LoadingPic.Continue.onRelease = function () {
};
LoadingPic.Continue.onRollOver = function () {
this.gotoAndStop(2);
};
LoadingPic.Continue.onRollOut = function () {
this.gotoAndStop(1);
};
}
function CuntryType(Type) {
var _local1;
switch (Type) {
case "mary.com" :
_local1 = "MaryCOM";
break;
case "mary.com" :
_local1 = "TitterCOM";
break;
case "titter.fr" :
_local1 = "TitterFR";
break;
case "titter.es" :
_local1 = "TitterES";
break;
case "titter.pt" :
_local1 = "TitterPT";
break;
case "titter.nl" :
_local1 = "TitterNL";
break;
case "titter.it" :
_local1 = "TitterIT";
break;
case "warda.com" :
_local1 = "WardaCOM";
break;
case "titter.com.cn" :
_local1 = "TitterCOMCN";
break;
case "titter.co.id" :
_local1 = "TitterCOID";
break;
case "tessaspiele.de" :
_local1 = "TessaspieleDE";
break;
case "tessagames.co.uk" :
_local1 = "TessagamesCOUK";
break;
case "titter.pl" :
_local1 = "TitterPL";
break;
case "titter.no" :
_local1 = "TitterNO";
break;
case "titter.se" :
_local1 = "TitterSE";
break;
case "titter.dk" :
_local1 = "TitterDK";
break;
case "titter.hu" :
_local1 = "TitterHU";
break;
case "titter.gr" :
_local1 = "TitterGR";
break;
case "titter.tw" :
_local1 = "TitterTW";
break;
case "titter.fi" :
_local1 = "TitterFI";
break;
case "irgytessy.ru" :
_local1 = "IrgytessyRU";
break;
case "kikirti.com" :
_local1 = "KikirtiCOM";
}
Url = "http://www." + Type;
Goto = _local1;
}
function open_link(buttonLocation, Game, GameURL) {
var _local4 = _root._url;
var _local2 = Url;
if (Game) {
_local2 = GameURL;
}
var _local5 = (((((((_local2 + "?utm_campaign=") + escape(GameName)) + "&utm_content=") + escape(buttonLocation)) + "&utm_medium=") + escape(branding)) + "&utm_source=") + escape(_local4);
getURL (_local5, "_blank");
trace("logo: " + buttonLocation);
mochi.as2.MochiEvents.trackEvent("Logo Clicked", buttonLocation);
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
var MochiBotKey = "b582cacf";
var GameName = "Tessa's Cottage";
var branding = "original";
var continueButton = 1;
var GAME_ID = "78c764b63ce4b825";
stop();
var T;
var Fps = 30;
mochi.as2.MochiServices.connect(GAME_ID, root, onConnectError);
var LoadingPic;
NewLoading(TitterIntro);
var introOK;
var Url = "http://www.mary.com";
Goto = "MaryCOM";
var lv = new LoadVars();
lv.onData = function (portalData) {
var _local1 = portalData.toLowerCase();
CuntryType(_local1);
LoadingPic.Loading.gotoAndStop(Goto);
LoadingPic.titterBtn.Logo.gotoAndStop(Goto);
LoadingPic.gotoAndStop(Goto);
trace("Goto:" + Goto);
};
var sender = new LocalConnection();
domein = sender.domain();
if (domein != "localhost") {
lv.load("http://api.jaludo.com/geoip/index.php?return=domain&type=gameshell&portal=mary");
}
stop();
__com_mochibot__(MochiBotKey, this, 10301, true);
var CountRoomA = 0;
var CountRoomB = 0;
var CountRoomC = 0;
var CountRoomD = 0;
Frame 5
function Input() {
txt.text = "";
}
function ServerData(s, Time) {
my_so.data.BoxClub = BoxClub;
trace("Data RoomLength:" + my_so.data.BoxClub.length);
}
function LoadData(s) {
BoxClub = my_so.data.BoxClub;
trace("ReadOK.........." + BoxClub);
mochi.as2.MochiEvents.trackEvent("Loadbtn", 1);
mochi.as2.MochiEvents.startPlay();
}
function GotoPage() {
gotoAndStop (30);
trace("*************Room count*************");
trace("CountRoomA = " + _root.CountRoomA);
trace("CountRoomB = " + _root.CountRoomB);
trace("CountRoomC = " + _root.CountRoomC);
trace("CountRoomD = " + _root.CountRoomD);
trace("************************************");
ButtonPic.a.onRelease = function () {
_root.CountRoomA++;
addFrame = 0;
NewGame(1);
mochi.as2.MochiEvents.trackEvent("room a", 1);
trace("room a");
if (_root.CountRoomA == 10) {
mochi.as2.MochiEvents.trackEvent("room a 10", 10);
}
if (_root.CountRoomA == 20) {
mochi.as2.MochiEvents.trackEvent("room a 20", 20);
}
if (_root.CountRoomA == 30) {
mochi.as2.MochiEvents.trackEvent("room a 30", 30);
}
if (_root.CountRoomA == 100) {
mochi.as2.MochiEvents.trackEvent("room a 100", 100);
}
if (_root.CountRoomA >= 101) {
mochi.as2.MochiEvents.trackEvent("room a 100+", 1);
}
};
ButtonPic.b.onRelease = function () {
_root.CountRoomB++;
addFrame = 100;
NewGame(2);
mochi.as2.MochiEvents.trackEvent("room b", 1);
trace("room b");
if (_root.CountRoomB == 10) {
mochi.as2.MochiEvents.trackEvent("room b 10", 10);
}
if (_root.CountRoomB == 20) {
mochi.as2.MochiEvents.trackEvent("room b 20", 20);
}
if (_root.CountRoomB == 30) {
mochi.as2.MochiEvents.trackEvent("room b 30", 30);
}
if (_root.CountRoomB == 100) {
mochi.as2.MochiEvents.trackEvent("room b 100", 100);
}
if (_root.CountRoomB >= 101) {
mochi.as2.MochiEvents.trackEvent("room b 100+", 1);
}
};
ButtonPic.c.onRelease = function () {
_root.CountRoomC++;
addFrame = 200;
NewGame(3);
mochi.as2.MochiEvents.trackEvent("room c", 1);
trace("room c");
if (_root.CountRoomC == 10) {
mochi.as2.MochiEvents.trackEvent("room c 10", 10);
}
if (_root.CountRoomC == 20) {
mochi.as2.MochiEvents.trackEvent("room c 20", 20);
}
if (_root.CountRoomC == 30) {
mochi.as2.MochiEvents.trackEvent("room c 30", 30);
}
if (_root.CountRoomC == 100) {
mochi.as2.MochiEvents.trackEvent("room c 100", 100);
}
if (_root.CountRoomC >= 101) {
mochi.as2.MochiEvents.trackEvent("room c 100+", 1);
}
};
ButtonPic.d.onRelease = function () {
_root.CountRoomD++;
addFrame = 300;
NewGame(4);
mochi.as2.MochiEvents.trackEvent("room d", 1);
trace("room d");
if (_root.CountRoomD == 10) {
mochi.as2.MochiEvents.trackEvent("room d 10", 10);
}
if (_root.CountRoomD == 20) {
mochi.as2.MochiEvents.trackEvent("room d 20", 20);
}
if (_root.CountRoomD == 30) {
mochi.as2.MochiEvents.trackEvent("room d 30", 30);
}
if (_root.CountRoomD == 100) {
mochi.as2.MochiEvents.trackEvent("room d 100", 100);
}
if (_root.CountRoomD >= 101) {
mochi.as2.MochiEvents.trackEvent("room d 100+", 1);
}
};
}
function NewList(Num, Sn) {
ListPic.Mc.Pic.a._visible = false;
var _local1 = 0;
while (_local1 < Num) {
var _local2 = ListPic.Mc.Pic.a.duplicateMovieClip("a" + _local1, _local1);
_local2._y = 80 * _local1;
_local2.n = (_local1 + 1) + Sn;
NewDJ(_local2);
_local1++;
}
ListPic.One.onRelease = function () {
NewList(ListNum, 0);
};
ListPic.Two.onRelease = function () {
NewList(ListNum, 100);
};
ListPic.Three.onRelease = function () {
NewList(ListNum, 200);
};
ListPic.Four.onRelease = function () {
NewList(ListNum, 300);
};
}
function NewInput(s) {
InputTxt.gotoAndStop(s);
}
function RoomButtonUP() {
MenuS.a1.gotoAndStop(1);
MenuS.a2.gotoAndStop(1);
MenuS.a3.gotoAndStop(1);
MenuS.a4.gotoAndStop(1);
MenuS["a" + Room].gotoAndStop(2);
MenuS.a1.a.onRelease = function () {
NewTempPausePic(BJ);
addFrame = 0;
NewGame(1);
};
MenuS.a2.a.onRelease = function () {
NewTempPausePic(BJ);
addFrame = 100;
NewGame(2);
};
MenuS.a3.a.onRelease = function () {
NewTempPausePic(BJ);
addFrame = 200;
NewGame(3);
};
MenuS.a4.a.onRelease = function () {
NewTempPausePic(BJ);
addFrame = 300;
NewGame(4);
};
}
function NewGame(Page) {
Room = Page;
gotoAndStop (50);
BJ.gotoAndStop(Page);
BJ.Pic._visible = false;
NewList(ListNum, addFrame);
NewMenu();
RoomButtonUP();
onMouseUp = function () {
delete TempMc.onEnterFrame;
delete MenuS.Change.R.onEnterFrame;
stopDrag();
};
ListPic.onEnterFrame = function () {
if (this.hitTest(_xmouse, _ymouse, true)) {
delete this.onEnterFrame;
onEnterFrame = function () {
if (_xmouse > 660) {
ListPic._x = 592;
} else if (_xmouse < 595) {
ListPic._x = 1000;
}
};
}
};
MenuS.a.onRollOver = function () {
NewInput(1);
};
MenuS.a.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.b.onRollOver = function () {
NewInput(2);
};
MenuS.b.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.c.onRollOver = function () {
NewInput(3);
};
MenuS.c.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.d.onRollOver = function () {
NewInput(4);
};
MenuS.d.onRollOut = function () {
InputTxt._visible = false;
};
DelRoomBox();
ReadData();
}
function NewMenu() {
ReadyTween("X", ListPic, 1000, 592);
MenuS.Del.a.onRelease = function () {
this._visible = false;
MenuS.Del.b._visible = true;
DelOK = false;
RGB = "0xFF0000";
};
MenuS.Del.b.onRelease = function () {
this._visible = false;
MenuS.Del.a._visible = true;
DelOK = true;
RGB = "0xfddff";
};
MenuS.Save.onRelease = function () {
ServerData();
OKPic.gotoAndPlay(1);
mochi.as2.MochiEvents.trackEvent("Save btn", 1);
trace("Save btn");
};
MenuS.Done.onRelease = function () {
NewGlow(TempMc.a, 0);
ReadyTween("Y", DonePage, 1000, 0);
ReadyTween("Y", MenuS, MenuS._y, 1000);
BJ.Logos.Type = "logo-donepage";
ListPic._visible = false;
mochi.as2.MochiEvents.trackEvent("Done btn", 1);
mochi.as2.MochiEvents.endPlay();
trace("Done btn");
};
DonePage.Back.onRelease = function () {
ReadyTween("Y", DonePage, DonePage._y, 1000);
ReadyTween("Y", MenuS, MenuS._y, 500);
ListPic._visible = true;
BJ.Logos.Type = "logo-ingame";
mochi.as2.MochiEvents.trackEvent("Back btn", 1);
mochi.as2.MochiEvents.startPlay();
trace("Back btn");
};
DonePage.PlayOn.onRelease = function () {
gotoAndStop (5);
};
DonePage.MoreGameOn.onRelease = function () {
open_link("moregames-donepage");
mochi.as2.MochiEvents.trackEvent("Moregames - donepage", 1);
trace("moregames donepage");
};
DonePage.PrintOn.onRelease = function () {
PrintPicReady(BJ);
mochi.as2.MochiEvents.trackEvent("Print btn", 1);
trace("Print");
};
MenuS.Change.Xscale.onRelease = function () {
NewXscale();
};
MenuS.Change.Del.onRelease = function () {
DelMovie(TempMc);
};
MenuS.Change.Xscale.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.Change.Xscale.onRollOver = function () {
NewInput(5);
};
MenuS.Change.Del.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.Change.Del.onRollOver = function () {
NewInput(8);
};
MenuS.Change.One.onRelease = function () {
NewBJ(1);
};
MenuS.Change.Two.onRelease = function () {
NewBJ(2);
};
MenuS.Change.Three.onRelease = function () {
NewBJ(3);
};
MenuS.Change.Four.onRelease = function () {
NewBJ(4);
};
MenuS.Change.One.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.Change.One.onRollOver = function () {
NewInput(10);
};
MenuS.Change.Two.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.Change.Two.onRollOver = function () {
NewInput(10);
};
MenuS.Change.Three.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.Change.Three.onRollOver = function () {
NewInput(10);
};
MenuS.Change.Four.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.Change.Four.onRollOver = function () {
NewInput(10);
};
MenuS.Change.Up.onRelease = function () {
NewDepth("Up");
};
MenuS.Change.Down.onRelease = function () {
NewDepth("Down");
};
MenuS.Change.Ups.onRelease = function () {
NewDepth("Ups");
};
MenuS.Change.Downs.onRelease = function () {
NewDepth("Downs");
};
MenuS.Change.Ups.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.Change.Ups.onRollOver = function () {
NewInput(6);
};
MenuS.Change.Downs.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.Change.Downs.onRollOver = function () {
NewInput(7);
};
MenuS.Change.R.a.a.onRollOver = function () {
NewInput(9);
};
MenuS.Change.R.a.a.onRollOut = function () {
InputTxt._visible = false;
};
MenuS.Change.R.a.a.onPress = function () {
startDrag (this, false, 0, 0, 100, 0);
MenuS.Change.R.onEnterFrame = function () {
NewRGB(-180 + (this.a.a._x * 3.6));
};
};
MenuS.Change.R.a.a.onRelease = function () {
delete MenuS.Change.R.onEnterFrame;
};
}
function NewXscale() {
TempMc._xscale = -TempMc._xscale;
trace("TempMc.x:" + TempMc._x);
trace("TempMc._width:" + TempMc._width);
if (TempMc._xscale < 0) {
TempMc._x = TempMc._x + int(TempMc._width / 2);
} else {
TempMc._x = TempMc._x - int(TempMc._width / 2);
}
trace(" TempMc.x:" + TempMc._x);
trace(" TempMc._width:" + TempMc._width);
SaveXY(TempMc);
}
function NewBJ(s) {
BJ.a.gotoAndStop(s);
BoxClub[Room].Map = s;
}
function NewRGB(s) {
TempMc._hue = s;
NewHue(TempMc, s);
}
function NewDepth(Type) {
var _local1;
if (Type == "Up") {
if (TempMc.getDepth() < (BJ.getNextHighestDepth() - 1)) {
_local1 = BJ.getInstanceAtDepth(TempMc.getDepth() + 1);
TempMc.swapDepths(TempMc.getDepth() + 1);
}
SaveDepth(_local1, _local1.getDepth());
} else if (Type == "Down") {
if (TempMc.getDepth() > 0) {
_local1 = BJ.getInstanceAtDepth(TempMc.getDepth() - 1);
TempMc.swapDepths(TempMc.getDepth() - 1);
}
SaveDepth(_local1, _local1.getDepth());
} else if (Type == "Ups") {
TempMc.swapDepths(BJ.getNextHighestDepth());
} else if (Type == "Downs") {
if (TempMc.getDepth() > 0) {
_local1 = BJ.getInstanceAtDepth(0);
TempMc.swapDepths(0);
SaveDepth(_local1, _local1.getDepth());
}
}
SaveDepth(TempMc, TempMc.getDepth());
}
function NewDJ(Mc) {
Mc.Ioc.gotoAndStop(Mc.n);
Mc.Ioc._width = 42;
Mc.Ioc._height = 60;
Mc.onDragOut = function () {
NewPic(this.n, "Out");
};
Mc.onRelease = function () {
NewPic(this.n, "Release");
};
}
function DelMovie(Mc) {
var _local3 = Mc.attachMovie("GIFDel", "GIFDel", 0);
DelRoomData(Mc);
Mc.onEnterFrame = function () {
this.a._alpha = this.a._alpha - 2;
};
}
function DelRoomData(Mc) {
var _local1 = BoxClub[Room];
for (var _local3 in _local1) {
if (_local1[_local3].S == Mc.S) {
_local1.splice(_local3, 1);
trace(Mc._name);
break;
}
}
}
function DelRoomBox() {
for (var _local1 in BJ) {
removeMovieClip(BJ[_local1]);
}
}
function ReadData() {
var _local2 = BoxClub[Room];
BJ.a.gotoAndStop(_local2.Map);
for (var _local3 in _local2) {
var _local1 = BJ.Pic.duplicateMovieClip("a" + _local2[_local3].S, BJ.getNextHighestDepth());
_local1.a.gotoAndStop(_local2[_local3].N);
_local1._x = _local2[_local3].X;
_local1._y = _local2[_local3].Y;
_local1.S = _local2[_local3].S;
_local1._hue = _local2[_local3].RGB;
_local1.swapDepths(_local2[_local3].Depth);
_local1._xscale = _local2[_local3].Xscale;
BoxEvent(_local1);
}
}
function SaveXY(Mc) {
var _local1 = BoxClub[Room];
for (var _local3 in _local1) {
if (_local1[_local3].S == Mc.S) {
_local1[_local3].X = Mc._x;
_local1[_local3].Y = Mc._y;
_local1[_local3].Xscale = Mc._xscale;
break;
}
}
}
function NewHue(Mc, s) {
var _local1 = BoxClub[Room];
for (var _local4 in _local1) {
if (_local1[_local4].S == Mc.S) {
_local1[_local4].RGB = s;
break;
}
}
}
function SaveDepth(Mc, s) {
var _local1 = BoxClub[Room];
for (var _local4 in _local1) {
if (_local1[_local4].S == Mc.S) {
_local1[_local4].Depth = s;
break;
}
}
}
function InitialBox(Mc) {
for (var _local3 in Mc.a) {
var _local2 = Mc.a[_local3];
}
ReadyTween("WH", Mc.a, 0, 100);
}
function NewPic(n, Type) {
var _local3 = BJ.getNextHighestDepth();
var _local2 = BJ.Pic.duplicateMovieClip("a" + s, _local3);
BoxClub[Room].push({Mc:_local2, X:_local2._x, Y:_local2._y, N:n, S:s, Depth:_local2.getDepth()});
_local2.S = s;
s++;
_local2.a.gotoAndStop(n);
NewGlow(TempMc.a, 0);
TempMc = _local2;
if (Type == "Release") {
_local2._x = 300;
_local2._y = 250;
} else {
_local2._x = _xmouse;
_local2._y = _ymouse;
_local2.startDrag();
}
_local2.onEnterFrame = function () {
DepthAI(this);
SaveXY(this);
};
BoxEvent(_local2);
}
function DepthAI(Mc) {
var _local1 = BoxClub[Room];
for (var _local3 in _local1) {
if (_local1[_local3].Mc.hitTest(Mc)) {
if (Mc.getDepth() > _local1[_local3].Mc.getDepth()) {
if (Mc._y < _local1[_local3].Mc._y) {
Mc.swapDepths(_local1[_local3].Mc);
SaveDepth(Mc, Mc.getDepth());
SaveDepth(_local1[_local3].Mc, _local1[_local3].Mc.getDepth());
break;
}
}
if (Mc.getDepth() < _local1[_local3].Mc.getDepth()) {
if (Mc._y > _local1[_local3].Mc._y) {
Mc.swapDepths(_local1[_local3].Mc);
SaveDepth(Mc, Mc.getDepth());
SaveDepth(_local1[_local3].Mc, _local1[_local3].Mc.getDepth());
break;
}
}
}
}
}
function BoxEvent(Mc) {
InitialBox(Mc);
Mc.onPress = function () {
if (TempMc != this) {
NewGlow(TempMc.a, 0);
}
TempMc = Mc;
if (DelOK) {
DelMovie(this);
} else {
this.startDrag();
}
this.onEnterFrame = function () {
SaveXY(this);
};
};
Mc.onRollOver = function () {
NewGlow(this.a, 100);
};
Mc.onRollOut = function () {
if (TempMc != this) {
NewGlow(this.a, 0);
}
};
Mc.onRelease = function () {
SaveXY(this);
delete this.onEnterFrame;
};
}
function ReadyTween(Type, Mc, Min, Max) {
switch (Type) {
case "X" :
var _local4 = new mx.transitions.Tween(Mc, "_x", Effect, Min, Max, 1, true);
break;
case "Y" :
var _local7 = new mx.transitions.Tween(Mc, "_y", Effect, Min, Max, 1, true);
break;
case "XY" :
_local4 = new mx.transitions.Tween(Mc, "_x", Effect, Min, Max, 1, true);
_local7 = new mx.transitions.Tween(Mc, "_y", Effect, Min, Max, 1, true);
break;
case "WH" :
var _local6 = new mx.transitions.Tween(Mc, "_xscale", Effect, Min, Max, 0.5, true);
var _local5 = new mx.transitions.Tween(Mc, "_yscale", Effect, Min, Max, 0.5, true);
}
_local4.onMotionChanged = function () {
};
_local4.onMotionFinished = function () {
};
}
function NewGlow(Mc, Alpha) {
var _local1 = new flash.filters.GlowFilter(RGB, Alpha, 15, 15, 1.8, 1, false);
Mc.filters = new Array(_local1);
}
function DelGlow(Mc) {
Mc.filters = null;
}
function NewTempPausePic(Obj) {
var _local2 = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
var _local3 = new flash.display.BitmapData(700, 500);
_local2.attachBitmap(_local3, this.getNextHighestDepth());
_local3.draw(Obj);
_local2.onEnterFrame = function () {
this._y = this._y + ((-700 - this._y) / 12);
if (this._alpha > 0) {
this._alpha = this._alpha - 2;
} else {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
}
function PrintPicReady(ObjURL) {
BackMenuButton._visible = false;
var _local2 = this.createEmptyMovieClip("mc", 1110);
var _local3 = new flash.display.BitmapData(700, 500);
_local2.attachBitmap(_local3, 0);
_local3.draw(ObjURL);
printAsBitmap (_local2, "bmovie");
BackMenuButton._visible = true;
_local2.onRollOver = function () {
removeMovieClip(this);
};
}
stop();
var Sod = new Sound();
ColorProperty.init();
var my_so = SharedObject.getLocal("Room");
var BoxClub = new Array();
var Room = 1;
BoxClub[0] = [];
BoxClub[1] = [];
BoxClub[2] = [];
BoxClub[3] = [];
BoxClub[4] = [];
var addFrame = 0;
var ListNum = 50;
var DelOK;
PlayOn.onRelease = function () {
GotoPage();
mochi.as2.MochiEvents.startPlay();
};
MoreGameOn.onRelease = function () {
open_link("moregames-menu");
mochi.as2.MochiEvents.trackEvent("moregames-menu", 1);
trace("moregames menu");
};
LoadOn.onRelease = function () {
LoadData(0);
GotoPage();
NewGame(1);
};
if ((!my_so.data.BoxClub) or (my_so.data.BoxClub == null)) {
LoadOn._alpha = 30;
LoadOn.enabled = false;
}
trace(my_so.data.BoxClub);
var keyListener = new Object();
var Space;
keyListener.onKeyDown = function () {
if (Key.isDown(32) and (!Space)) {
Space = true;
NewXscale();
}
};
keyListener.onKeyUp = function () {
Space = false;
};
Key.addListener(keyListener);
var TempMc;
var s = 0;
var Effect = mx.transitions.easing.Elastic.easeInOut;
var TweenX;
var TweenY;
var TweenWidth;
var TweenHeight;
var TweenXscale;
var TweenYscale;
var RGB = "0xFF0000";
Instance of Symbol 579 MovieClip in Frame 5
//component parameters
onClipEvent (construct) {
Type = "logo-menu";
Goto = 1;
}
Symbol 35 MovieClip Frame 39
removeMovieClip(_parent._parent);
Symbol 122 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
function Loading(s) {
var _local3 = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_local3 < s) {
stop();
} else {
play();
delete this.onEnterFrame;
}
}
Symbol 152 MovieClip Frame 16
this.onEnterFrame = function () {
Loading(20);
};
Symbol 152 MovieClip Frame 25
this.onEnterFrame = function () {
Loading(40);
};
Symbol 152 MovieClip Frame 33
this.onEnterFrame = function () {
Loading(60);
};
Symbol 152 MovieClip Frame 41
this.onEnterFrame = function () {
Loading(80);
};
Symbol 152 MovieClip Frame 128
stop();
Symbol 178 MovieClip Frame 1
this.onEnterFrame = function () {
gotoAndStop(_root.Goto);
delete this.onEnterFrame;
};
Symbol 338 MovieClip Frame 1
this.onEnterFrame = function () {
gotoAndStop(_root.Goto);
delete this.onEnterFrame;
};
Symbol 343 MovieClip Frame 50
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 6
stop();
Symbol 349 MovieClip Frame 10
gotoAndPlay (1);
Symbol 369 MovieClip Frame 1
this.onEnterFrame = function () {
gotoAndStop(_root.Goto);
delete this.onEnterFrame;
};
Symbol 390 MovieClip Frame 1
this.onEnterFrame = function () {
gotoAndStop(_root.Goto);
delete this.onEnterFrame;
};
Symbol 391 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
Continue.onMouseMove = function () {
play();
};
stop();
Symbol 400 MovieClip Frame 151
_root.StartGame();
stop();
Symbol 1003 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1004 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1005 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.2 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1006 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1007 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1008 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1009 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1010 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1011 MovieClip [__Packages.ColorProperty] Frame 0
class ColorProperty
{
function ColorProperty () {
}
static function init() {
setColorProperty();
MovieClip.prototype.addProperty("_hue", MovieClip.prototype.getHue, MovieClip.prototype.setHue);
MovieClip.prototype.addProperty("_brightness", MovieClip.prototype.getBrightness, MovieClip.prototype.setBrightness);
MovieClip.prototype.addProperty("_grayscale", MovieClip.prototype.getGrayscale, MovieClip.prototype.setGrayscale);
MovieClip.prototype.addProperty("_saturation", MovieClip.prototype.getSaturation, MovieClip.prototype.setSaturation);
MovieClip.prototype.addProperty("_contrast", MovieClip.prototype.getContrast, MovieClip.prototype.setContrast);
MovieClip.prototype.addProperty("_invert", MovieClip.prototype.getInvert, MovieClip.prototype.setInvert);
_global.ASSetPropFlags(MovieClip.prototype, "_hue,_brightness,_grayscale,_saturation,_contrast,_invert,getHue,setHue,getBrightness,setBrightness,getGrayscale,setGrayscale,getSaturation,setSaturation,getContrast,setContrast,getInvert,setInvert", 7, 0);
}
static function setColorProperty() {
MovieClip.prototype.setHue = function (hue) {
if ((hue == 0) || (isNaN(hue))) {
return(undefined);
}
hue = (Math.min(180, Math.max(-180, hue)) / 180) * Math.PI;
var _local3 = Math.cos(hue);
var _local2 = Math.sin(hue);
var _local5 = 0.213;
var _local4 = 0.715;
var _local6 = 0.072;
var _local8 = [(_local5 + (_local3 * (1 - _local5))) + (_local2 * (-_local5)), (_local4 + (_local3 * (-_local4))) + (_local2 * (-_local4)), (_local6 + (_local3 * (-_local6))) + (_local2 * (1 - _local6)), 0, 0, (_local5 + (_local3 * (-_local5))) + (_local2 * 0.143), (_local4 + (_local3 * (1 - _local4))) + (_local2 * 0.14), (_local6 + (_local3 * (-_local6))) + (_local2 * -0.283), 0, 0, (_local5 + (_local3 * (-_local5))) + (_local2 * (-(1 - _local5))), (_local4 + (_local3 * (-_local4))) + (_local2 * _local4), (_local6 + (_local3 * (1 - _local6))) + (_local2 * _local6), 0, 0, 0, 0, 0, 1, 0];
this.filters = [new flash.filters.ColorMatrixFilter(_local8)];
MovieClip.prototype._hue = hue;
};
MovieClip.prototype.getHue = function () {
return(MovieClip.prototype._hue);
};
MovieClip.prototype.getBrightness = function () {
return(MovieClip.prototype._brightness);
};
MovieClip.prototype.setBrightness = function (offset) {
var _local3 = [1, 0, 0, 0, offset, 0, 1, 0, 0, offset, 0, 0, 1, 0, offset, 0, 0, 0, 1, 0];
this.filters = [new flash.filters.ColorMatrixFilter(_local3)];
MovieClip.prototype._brightness = offset;
};
MovieClip.prototype.getGrayscale = function () {
return(MovieClip.prototype._grayscale);
};
MovieClip.prototype.setGrayscale = function (yes) {
if (yes) {
var _local2 = [ColorProperty._nRed, ColorProperty._nGreen, ColorProperty._nBlue, 0, 0, ColorProperty._nRed, ColorProperty._nGreen, ColorProperty._nBlue, 0, 0, ColorProperty._nRed, ColorProperty._nGreen, ColorProperty._nBlue, 0, 0, 0, 0, 0, 1, 0];
this.filters = [new flash.filters.ColorMatrixFilter(_local2)];
MovieClip.prototype._grayscale = true;
} else {
MovieClip.prototype._grayscale = false;
}
};
MovieClip.prototype.getSaturation = function () {
return(MovieClip.prototype._saturation);
};
MovieClip.prototype.setSaturation = function (nLevel) {
var _local8 = ((1 - nLevel) * ColorProperty._nRed) + nLevel;
var _local12 = (1 - nLevel) * ColorProperty._nGreen;
var _local6 = (1 - nLevel) * ColorProperty._nBlue;
var _local7 = (1 - nLevel) * ColorProperty._nRed;
var _local10 = ((1 - nLevel) * ColorProperty._nGreen) + nLevel;
var _local4 = (1 - nLevel) * ColorProperty._nBlue;
var _local5 = (1 - nLevel) * ColorProperty._nRed;
var _local9 = (1 - nLevel) * ColorProperty._nGreen;
var _local3 = ((1 - nLevel) * ColorProperty._nBlue) + nLevel;
var _local11 = [_local8, _local12, _local6, 0, 0, _local7, _local10, _local4, 0, 0, _local5, _local9, _local3, 0, 0, 0, 0, 0, 1, 0];
this.filters = [new flash.filters.ColorMatrixFilter(_local11)];
MovieClip.prototype._saturation = nLevel;
};
MovieClip.prototype.getContrast = function () {
return(MovieClip.prototype._contrast);
};
MovieClip.prototype.setContrast = function (nLevel) {
var _local2 = nLevel * 11;
var _local3 = 63.5 - (nLevel * 698.5);
var _local5 = [_local2, 0, 0, 0, _local3, 0, _local2, 0, 0, _local3, 0, 0, _local2, 0, _local3, 0, 0, 0, 1, 0];
this.filters = [new flash.filters.ColorMatrixFilter(_local5)];
MovieClip.prototype._contrast = nLevel;
};
MovieClip.prototype.getInvert = function () {
return(MovieClip.prototype._invert);
};
MovieClip.prototype.setInvert = function (yes) {
if (yes) {
var _local2 = [-1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0];
this.filters = [new flash.filters.ColorMatrixFilter(_local2)];
MovieClip.prototype._invert = true;
} else {
MovieClip.prototype._invert = false;
}
};
}
static var _nRed = 0.3086;
static var _nGreen = 0.6094;
static var _nBlue = 0.082;
}
Symbol 1012 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 425 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 2
LogoColor.gotoAndStop(_parent.Goto);
this.onEnterFrame = function () {
gotoAndStop(_root.Goto);
delete this.onEnterFrame;
};
Symbol 579 MovieClip Frame 1
stop();
Logo.onRelease = function () {
_root.open_link(Type);
trace(Type);
};
Logo.onRollOver = function () {
gotoAndStop (2);
};
Logo.onRollOut = function () {
gotoAndStop (1);
};
Symbol 585 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 1
function NewSound(OK) {
if (OK) {
this.onEnterFrame = function () {
if (s < 100) {
s = s + 5;
_root.sod.setVolume(s);
} else {
delete this.onEnterFrame;
}
};
} else {
this.onEnterFrame = function () {
if (s > 0) {
s = s - 5;
_root.sod.setVolume(s);
} else {
delete this.onEnterFrame;
}
};
}
}
stop();
var s = 100;
_root.sod = new Sound();
a.onRelease = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
NewSound(false);
} else {
this.gotoAndStop(1);
NewSound(true);
}
};
Symbol 821 MovieClip Frame 1
stop();
Symbol 860 MovieClip Frame 1
stop();
Instance of Symbol 579 MovieClip "Logos" in Symbol 860 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
Type = "logo-ingame";
Goto = 1;
}
Symbol 878 MovieClip Frame 1
var e;
var c;
Del._visible = false;
a._visible = false;
Del.onRelease = function () {
var _local3 = 0;
while (_local3 < _root.CK.length) {
if (_root.CK[_local3][0] == e) {
_root.CK.splice(_local3, 1);
trace("\u5220\u9664\uFF1A " + e);
_parent.run();
break;
}
_local3++;
}
};
a.onRelease = function () {
_parent._parent._parent.Mysound.gotoAndStop(e);
trace("" + e);
};
Symbol 879 MovieClip Frame 1
Instance of Symbol 882 MovieClip in Symbol 883 MovieClip Frame 1
onClipEvent (load) {
Max = 100;
Y = this._y;
M = int(_parent._parent.Pic._height / Max);
}
onClipEvent (enterFrame) {
var Obj = _parent._parent.Pic;
var S = int((Obj._height / Max) * int(this._y - Y));
var Out = ((M - S) + (this._y * 3));
Obj._y = Obj._y + ((Out - Obj._y) / 5);
}
on (press) {
startDrag (this, false, _x, 0, _x, 100);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 884 MovieClip Frame 1
Pic.setMask(mask);
Symbol 979 MovieClip Frame 1
Game1.onRelease = function () {
var _local2 = "http://www.mary.com/tessa-s-horse.html";
_root.open_link("tessa-s-horse", true, _local2);
trace(_local2);
};
Symbol 988 MovieClip Frame 1
a.useHandCursor = false;
Instance of Symbol 579 MovieClip in Symbol 988 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
Type = "logo-donepage";
Goto = 1;
}
Symbol 1002 MovieClip Frame 1
stop();