Frame 1
fscommand ("showmenu", "false");
Stage.scaleMode = "noScale";
Frame 2
if (isNaN(this.startLoading)) {
this.startLoading = 1;
my_cm.hideBuiltInItems();
this.menu = my_cm;
Key.removeListener(KEvents);
}
Frame 3
stop();
Frame 4
var address0 = "http://www.2DPlay.com/index.php?gameid=673&gamename=Sudoku Original";
var address1 = "http://www.2DPlay.com/downloadgame.php?gameid=673&gamename=Sudoku Original";
var address2 = "http://www.2DPlay.com/freecontent.htm";
var address0 = "http://www.2DPlay.com/index.php?gameid=673&gamename=Sudoku Original";
var address4 = "sudoku-2dplay-levelpacks.xml";
var clickSound = new Sound(this);
clickSound.attachSound("click");
_global.clickSound = clickSound;
var clickSound2 = new Sound(this);
clickSound2.attachSound("backclick");
_global.clickSound2 = clickSound2;
var hoverSound = new Sound(this);
hoverSound.attachSound("");
_global.hoverSound = hoverSound;
var levelSeleclSound = new Sound(this);
levelSeleclSound.attachSound("");
_global.levelSeleclSound = levelSeleclSound;
var playSound = new Sound(this);
playSound.attachSound("levelstart");
_global.playSound = playSound;
var scrollSound = new Sound(this);
scrollSound.attachSound("");
_global.scrollSound = scrollSound;
var hintSound = new Sound(this);
hintSound.attachSound("hint");
_global.hintSound = hintSound;
var numberChangeSound = new Sound(this);
numberChangeSound.attachSound("numberselect");
_global.numberChangeSound = numberChangeSound;
var completeSound = new Sound(this);
completeSound.attachSound("levelcomplete");
_global.completeSound = completeSound;
defPackStr = "<defaultPack timerEnabled='true' hintEnabled='true'>";
defPackStr = defPackStr + "<level pattern='008309100900060004007504800036000540001000600042000970005907300600010008004608200' solved='428379165953861724167524839836792541791435682542186973285947316679213458314658297' />";
defPackStr = defPackStr + "<level pattern='890170000604900080000000600000002430030408010012700000009000000050007904000069027' solved='895176243674923581123854679987612435536498712412735896769241358251387964348569127' />";
defPackStr = defPackStr + "<level pattern='000040003060000940304508100020400000436000597000005080005109208073000010200060000' solved='157946823862713945394528176528497361436281597719635482645179238973852614281364759' />";
defPackStr = defPackStr + "<level pattern='200000009005807000890006031030084010000301000040950080470500062000209100900000008' solved='264135879315897624897426531539784216782361495146952387473518962658279143921643758' />";
defPackStr = defPackStr + "<level pattern='000070000240000039009308200900816005020000090300952006008403600160000082000080000' solved='836279514247165839519348267974816325625734198381952746798423651163597482452681973' />";
defPackStr = defPackStr + "<level pattern='000002096030074028024060000048009700000000000005300640000040260490710030350200000' solved='517832496639174528824965317148629753263457981975381642781543269492716835356298174' />";
defPackStr = defPackStr + "<level pattern='084901760000000000020756090009070600015000380003060100030582010000000000058409270' solved='584921763967348521321756498849173652615294387273865149736582914492617835158439276' />";
defPackStr = defPackStr + "<level pattern='000090000042700096060032108010060800000208000009040030201950060750004310000010000' solved='178596423342781596965432178517369842634278951829145637281953764756824319493617285' />";
defPackStr = defPackStr + "<level pattern='300080001080306040001904200045000870000060000032000510003401600070805030500020007' solved='354287961289316745761954283645132879197568324832749516923471658476895132518623497' />";
defPackStr = defPackStr + "<level pattern='803706401000902000090000070002608100730000046009304800050000020000209000206501309' solved='823756491417982563695413278542698137738125946169374852951837624384269715276541389' />";
defPackStr = defPackStr + "<level pattern='000243000902000405700050008009805700038000240006304800600090004201000607000671000' solved='815243976962187435743956128429815763538769241176324859687592314251438697394671582' />";
defPackStr = defPackStr + "<level pattern='080030010001809300040702060800107004007000500900208006070403090003506800060080040' solved='789635412621849357345712968856197234217364589934258176178423695493576821562981743' />";
defPackStr = defPackStr + "<level pattern='900102003020000040050904060007506900290000086006807100070308010030000050400201007' solved='984162573621735849753984261817526934295413786346897125579348612132679458468251397' />";
defPackStr = defPackStr + "<level pattern='000305091700000020000700380070600100800109004003008070015003000080000009240806000' solved='624385791738961425591724386479632158852179634163458972915243867386517249247896513' />";
defPackStr = defPackStr + "<level pattern='090805010030000020500703009470906035000000000310402068800209003060000040040107050' solved='794825316138694527526713489472986135685371294319452768851249673267538941943167852' />";
defPackStr = defPackStr + "<level pattern='001320000008100700060000058000010024200405009940030000780000060004009500000081200' solved='571328496498156732362794158856917324213465879947832615785243961124679583639581247' />";
defPackStr = defPackStr + "<level pattern='000010040650300000700500029006080052008000900210050700980006001000007035060020000' solved='893712546652349817741568329476983152538271964219654783985436271124897635367125498' />";
defPackStr = defPackStr + "<level pattern='000000001080060007009084030910400205000308000208001064020930100700040090600000000' solved='367259841482163957159784632913476285546328719278591364824935176731642598695817423' />";
defPackStr = defPackStr + "<level pattern='400029500010705030000040009327000800000000000008000962200030000040107080009580001' solved='436829517912765438875341629327916854694258173158473962281634795543197286769582341' />";
defPackStr = defPackStr + "<level pattern='060300000000200807008090020051003096480000053690700140020030500107002000000009030' solved='264387915319254867578691324751843296482916753693725148926438571137562489845179632' />";
defPackStr = defPackStr + "<level pattern='002007003060084020000000040900170000710506038000039006020000000050260070100700800' solved='492657183361984527578312649936178254714526938285439716627841395859263471143795862' />";
defPackStr = defPackStr + "<level pattern='070900010009400000050008006310000800904103205006000073100600050000004900040002030' solved='872936514639451728451728396317265849984173265526849173193687452265314987748592631' />";
defPackStr = defPackStr + "<level pattern='000400260030800070540200000014000300903000401006000750000006035020008090067005000' solved='179453268632891574548267913714589326953672481286314759491726835325148697867935142' />";
defPackStr = defPackStr + "<level pattern='076000310900050004005608900061070830000000000089010540002307100600090003098000260' solved='876429315923751684145638972261574839534986721789213546452367198617892453398145267' />";
defPackStr = defPackStr + "<level pattern='002040800950000041000203000060905010700000004030604050000706000470000035006030100' solved='612549873953867241847213596264975318785321964139684752321756489478192635596438127' />";
defPackStr = defPackStr + "<level pattern='063000700000690008900007002002010080050806090090070200600100003700045000009000140' solved='463258719527691438918437562372519684154826397896374251645182973731945826289763145' />";
defPackStr = defPackStr + "<level pattern='009000000004902000002300918030080170000503000096020030621005800000708400000000600' solved='369851742184972365572346918235684179417593286896127534621435897953768421748219653' />";
defPackStr = defPackStr + "<level pattern='090000020240000081000125000007060800002798100004010600000687000650000074070000060' solved='195843726243976581786125439917364852562798143834512697429687315658231974371459268' />";
defPackStr = defPackStr + "<level pattern='103000070080205000020070800000410009400000005200056000005020010000603050070000604' solved='193864572786235491524179836857412369469387125231956748645728913918643257372591684' />";
defPackStr = defPackStr + "<level pattern='098700000002006403030090500000300005005000200800005000009070050406200300000009760' solved='598734621712586493634192578961327845345968217827415936289673154476251389153849762' />";
defPackStr = defPackStr + "<level pattern='000090070700800100105600080000003049300000006920500000040001507006004003030070000' solved='483192675762835194195647382658713249317429856924568731249381567876254913531976428' />";
defPackStr = defPackStr + "<level pattern='000060000050743006000900130000026071070000020160470000083004000900218050000090000' solved='397162548851743296624985137539826471478531629162479385783654912946218753215397864' />";
defPackStr = defPackStr + "<level pattern='050008340030700008000040607000030001010207090800050000402060000100005020083400070' solved='751698342634712958928543617245936781316287495897154263472861539169375824583429176' />";
defPackStr = defPackStr + "<level pattern='700915000309000004000000800000021560060000040051690000006000000400000207000437006' solved='784915623319862754625743819947321568263578941851694372176289435438156297592437186' />";
defPackStr = defPackStr + "<level pattern='602000010050060800000040006807004002020000040900300508500020000004070030030000201' solved='672835914459761823183249756817594362325687149946312578561923487294178635738456291' />";
defPackStr = defPackStr + "<level pattern='000700002010309000705010009602000000000403000000000607900020405000604020300008000' solved='893746152216359874745812369682971543579463281431285697968127435157634928324598716' />";
defPackStr = defPackStr + "<level pattern='080000000402800016000009703500008000006204900000300007301500000850002401000000020' solved='783615294492873516615429783539768142176254938248391657321546879857932461964187325' />";
defPackStr = defPackStr + "<level pattern='020780400040000006000100089009500000800406001000002300670003000300000070004017050' solved='126789435948325716753164289469531827832476591517892364671253948395648172284917653' />";
defPackStr = defPackStr + "<level pattern='090000060604903702000804000069000340400000005051000280000102000105408603020000090' solved='593217468684953712217864539869725341432681975751349286946132857175498623328576194' />";
defPackStr = defPackStr + "<level pattern='020080403080000000106009002000864010000000000070192000300500109000000050507020080' solved='725681493489273561136459872253864917691735248874192635368547129942318756517926384' />";
defPackStr = defPackStr + "<level pattern='206090005001820000000400081000000590420000063065000000310006000000079600600040807' solved='286197345541823976973465281738612594429758163165934728317286459854379612692541837' />";
defPackStr = defPackStr + "<level pattern='340000002000030007000100090400018900072090830001570004050004000800050000200000019' solved='345769182619832457728145396436218975572496831981573624153924768897651243264387519' />";
defPackStr = defPackStr + "<level pattern='803100000000607000004005060000070025105000809290010000040900300000702000000003206' solved='863194752951627438724835961486379125135246879297518643642951387318762594579483216' />";
defPackStr = defPackStr + "<level pattern='900002000060000059025004300002017000300000005000850900007300560180000090000200001' solved='938562174461738259725194386852917643379426815614853927297341568183675492546289731' />";
defPackStr = defPackStr + "<level pattern='007000400940000083000803000030589060000000000070124090000201000620000059005000700' solved='387915426941762583562843971134589267259376814876124395793251648628437159415698732' />";
defPackStr = defPackStr + "<level pattern='402000708090002060700800005080030900000701000001080030900007004020300070503000806' solved='432615798895472163716893245687234951349751682251986437968527314124368579573149826' />";
defPackStr = defPackStr + "<level pattern='800000503010605090200007000045070020000509000080030150000900001060203080503000004' solved='896124573317685492254397618645871329132569847789432156478956231961243785523718964' />";
defPackStr = defPackStr + "<level pattern='900005026200000100080120000300204700009000600008503009000081060006000003830600007' solved='971845326254936178683127594365294781429718635718563249547381962196472853832659417' />";
defPackStr = defPackStr + "<level pattern='300045000008000000050010097030000150540090062082000040190020080000000900000970005' solved='379245618218769534654813297736482159541397862982156743197524386425638971863971425' />";
defPackStr = defPackStr + "<level pattern='001009006005480090000000080030005401070000030106300050060000000050093200300500600' solved='841739526725486193693152784239875461574961832186324957968217345457693218312548679' />";
defPackStr = defPackStr + "<level pattern='030009007010080000000100090004905006020000010500607400050001000000040020700500030' solved='238469157915783642476152398384915276627834519591627483853271964169348725742596831' />";
defPackStr = defPackStr + "<level pattern='000802000000600108109000004052000000730000086000000510800000607405008000000705000' solved='364812795527649138189573264952186473731254986648397512893421657475968321216735849' />";
defPackStr = defPackStr + "<level pattern='500040009008105400030000050080307010200000003070602040010000090007209800800070004' solved='521746389968135427734928651489357216256481973173692548315864792647219835892573164' />";
defPackStr = defPackStr + "<level pattern='001007200000009080006008030800400760010000090043002001070200900020900000009300500' solved='581637249734129685296548137852491763617853492943762851375286914428915376169374528' />";
defPackStr = defPackStr + "<level pattern='000150072000002003000000140000500200043070690001006000085000000600800000970023000' solved='436158972157492863298367145869534217543271698721986354385719426612845739974623581' />";
defPackStr = defPackStr + "<level pattern='057600000409002000080000001000030480500407002046090000200000010000100304000009620' solved='157648293439712856682953741721536489593487162846291537275364918968125374314879625' />";
defPackStr = defPackStr + "<level pattern='800100000406002000003460007000010080120000039080020000500034200000500406000007003' solved='872159364416372895953468127764913582125846739389725641597634218238591476641287953' />";
defPackStr = defPackStr + "<level pattern='000090000060572009207300000500000100120000067008000003000003604900824070000010000' solved='385496712461572839297381456539267148124938567678145923812753694956824371743619285' />";
defPackStr = defPackStr + "<level pattern='010000530060090000045030009000100700800407002001009000300060920000070050094000080' solved='918742536263591478745638219529186743836457192471329865357864921182973654694215387' />";
defPackStr = defPackStr + "<level pattern='000000300000087010008000402500038020009000100020570008102000900060450000003000000' solved='615924387294387516738615492546138729879246153321579648152863974967452831483791265' />";
defPackStr = defPackStr + "<level pattern='060310072000000000405006000040000080806070305030000090000400901000000000270059060' solved='968315472317842659425796138542931786896274315731568294653487921189623547274159863' />";
defPackStr = defPackStr + "<level pattern='000700900304000280090001040000950000063000150000023000040200030035000608008009000' solved='586742913314695287792381546821956374963874152457123869149268735235417698678539421' />";
defPackStr = defPackStr + "<level pattern='050002100000000030100803009008200000600415003000009200800307006030000000007600040' solved='753962184289154637164873529918236475672415893345789261821347956436598712597621348' />";
defPackStr = defPackStr + "<level pattern='070100000005240300000008005040009750900000004051300090600900000004052800000006020' solved='879135462165247389432698175243869751986571234751324698628913547394752816517486923' />";
defPackStr = defPackStr + "<level pattern='070040090005000000008029600000006024007030100260800000003180400000000900050070080' solved='671348592925617348348529617139756824587234169264891735793182456812465973456973281' />";
defPackStr = defPackStr + "<level pattern='080401000205600000000080020600000005003509100400000007040090000000002708000703090' solved='389421576215637489764985321691274835873569142452318967547896213936142758128753694' />";
defPackStr = defPackStr + "<level pattern='970000058005608200000090000090000010100405006050000040000020000009804600720000083' solved='976231458315648279248597361497362815182475936653189742861723594539814627724956183' />";
defPackStr = defPackStr + "<level pattern='001095020032008000000003709000000600080604010005000000507200000000800560040350200' solved='871495326932768154456123789794581632283674915615932478567219843329847561148356297' />";
defPackStr = defPackStr + "<level pattern='000270100200004000900000760009003007010000080700100300075000006000400008002096000' solved='836279154257614893941538762529863417314927685768145329175382946693451278482796531' />";
defPackStr = defPackStr + "<level pattern='570003082000200000000080301004079000003000700000620800106090000000002000780500046' solved='571943682368215479249786351814379265623158794957624813136497528495862137782531946' />";
defPackStr = defPackStr + "<level pattern='700300450000007180804000000200005030000209000050600007000000508071800000082001006' solved='719368452625947183834152679267485931143279865958613247396724518571896324482531796' />";
defPackStr = defPackStr + "<level pattern='000530080001004000300060070040200036002000500830007010090050008000700900020091000' solved='274539681651874392389162475947215836162983547835647219793456128416728953528391764' />";
defPackStr = defPackStr + "<level pattern='005702003006100000000000100000090047604000901210030000008000000000005400900204700' solved='185742693326159874497863125853691247674528931219437568548976312762315489931284756' />";
defPackStr = defPackStr + "<level pattern='001000000600023090302700045000960000030000010000015000540002701070580003000000900' solved='791854362654123897382796145217968534935247618468315279549632781176589423823471956' />";
defPackStr = defPackStr + "<level pattern='001000600059002000400006002000870010200090007040053000800500006000100790004000500' solved='721935684659482371438716952396874215285691437147253869873529146562148793914367528' />";
defPackStr = defPackStr + "</defaultPack>";
function fstr(s, n) {
var _local1;
var _local4 = new String("");
var _local2;
var _local3;
_local4 = s;
_local2 = _local4.substr(0, n);
_local3 = n - _local4.length;
if (n > _local4.length) {
_local1 = 0;
while (_local1 <= int(_local3 / 2)) {
_local2 = " " + _local2;
_local1++;
}
}
_local3 = int(_local3 / 2);
if ((_local3 % 2) == 1) {
_local3++;
}
if (n > _local4.length) {
_local1 = 0;
while (_local1 <= _local3) {
_local2 = _local2 + " ";
_local1++;
}
}
return(_local2);
}
function delPrvPack() {
lastPlayedPack = "";
levelStr.splice(0);
solvedStr.splice(0);
levelTime.splice(0);
lastPlayedLevel = 0;
selectedLevel = -1;
}
function writeDefPack() {
var _local1;
var _local4 = new XML();
var _local3;
var _local2 = new SharedObject();
_local2 = SharedObject.getLocal("defaultPack");
if (_local2.data.inited != 1) {
_local2.clear();
_local4.parseXML(defPackStr);
_local3 = _local4.childNodes[0];
_local2.data.inited = 1;
_local2.data.timerEnabled = _local3.attributes.timerEnabled;
_local2.data.hintEnabled = _local3.attributes.hintEnabled;
_local2.data.levelCount = _local3.childNodes.length;
_local2.data.lastPlayedLevel = 0;
_local1 = 1;
while (_local1 <= _local3.childNodes.length) {
_local2.data["pattern" + String(_local1)] = _local3.childNodes[_local1 - 1].attributes.pattern;
_local2.data["solved" + String(_local1)] = _local3.childNodes[_local1 - 1].attributes.solved;
_local2.data["playTime" + String(_local1)] = -1;
_local1++;
}
_local2.flush();
}
}
function loadPackNames() {
var _local1;
var _local2;
packID.splice(0);
pack1.splice(0);
pack2.splice(0);
pack3.splice(0);
pack4.splice(0);
packID.push("-");
pack1.push("Default Pack");
pack2.push("1/1/2005");
pack3.push("2DPlay.com");
pack4.push("");
saves = SharedObject.getLocal("sudokuPacks");
if (saves.data.inited != 1) {
saves.data.inited = 1;
saves.data.lastPlayedPack = "-";
saves.data.packCount = 1;
}
lastPlayedPack = saves.data.lastPlayedPack;
_local2 = int(saves.data.packCount);
_local1 = 1;
while (_local1 <= (_local2 - 1)) {
packID.push(saves.data["id" + String(_local1)]);
pack1.push(saves.data["name" + String(_local1)]);
pack2.push(saves.data["date" + String(_local1)]);
pack3.push(saves.data["author" + String(_local1)]);
pack4.push(saves.data["tag" + String(_local1)]);
_local1++;
}
saves.flush();
}
function isExist(tid) {
var _local1;
_local1 = 0;
while (_local1 <= (packID.length - 1)) {
if (packID[_local1] == tid) {
return(true);
}
_local1++;
}
return(false);
}
function getExistNum(tid) {
var _local1;
_local1 = 1;
while (_local1 <= (packID.length - 1)) {
if (packID[_local1] == tid) {
return(_local1);
}
_local1++;
}
return(-1);
}
function savePackNames() {
var _local1;
saves = SharedObject.getLocal("sudokuPacks");
saves.clear();
saves.data.inited = 1;
saves.data.lastPlayedPack = lastPlayedPack;
saves.data.packCount = packID.length;
_local1 = 1;
while (_local1 <= (packID.length - 1)) {
saves.data["id" + String(_local1)] = packID[_local1];
saves.data["name" + String(_local1)] = pack1[_local1];
saves.data["date" + String(_local1)] = pack2[_local1];
saves.data["author" + String(_local1)] = pack3[_local1];
saves.data["tag" + String(_local1)] = pack4[_local1];
_local1++;
}
saves.flush();
}
function loadLastPlayedPack() {
var _local1;
_local1 = 0;
while (_local1 <= (packID.length - 1)) {
if (packID[_local1] == lastPlayedPack) {
loadPack(_local1);
return(undefined);
}
_local1++;
}
loadPack(0);
}
function reLoadCurrentPack() {
var _local1;
_local1 = getExistNum(lastPlayedPack);
if (_local1 == -1) {
return(undefined);
}
delPrvPack();
loadPack(_local1);
}
function loadPack(tn) {
var _local1;
var _local2;
delPrvPack();
lastPlayedPack = packID[tn];
saves = SharedObject.getLocal("sudokuPacks");
saves.data.lastPlayedPack = lastPlayedPack;
saves.flush();
if (tn == 0) {
saves = SharedObject.getLocal("defaultPack");
} else {
saves = SharedObject.getLocal("sudokuPack" + packID[tn]);
}
if (saves.data.inited == 1) {
timerEnabled = saves.data.timerEnabled;
hintEnabled = saves.data.hintEnabled;
lastPlayedLevel = saves.data.lastPlayedLevel;
_local2 = int(saves.data.levelCount);
_local1 = 1;
while (_local1 <= _local2) {
levelStr.push(saves.data["pattern" + String(_local1)]);
solvedStr.push(saves.data["solved" + String(_local1)]);
levelTime.push(saves.data["playTime" + String(_local1)]);
_local1++;
}
}
}
function delPack(tn) {
var _local1;
var _local8;
var _local2;
var _local3;
var _local5;
var _local6;
var _local7;
if (lastPlayedPack == packID[tn]) {
delPrvPack();
}
saves = SharedObject.getLocal(packID[tn]);
saves.clear();
saves.flush();
_local2 = packID.slice();
_local3 = pack1.slice();
_local5 = pack2.slice();
_local6 = pack3.slice();
_local7 = pack4.slice();
packID.splice(0);
pack1.splice(0);
pack2.splice(0);
pack3.splice(0);
pack4.splice(0);
_local1 = 0;
while (_local1 <= (_local2.length - 1)) {
if (_local1 != tn) {
packID.push(_local2[_local1]);
pack1.push(_local3[_local1]);
pack2.push(_local5[_local1]);
pack3.push(_local6[_local1]);
pack4.push(_local7[_local1]);
}
_local1++;
}
savePackNames();
}
function writeSaves(n) {
saves.data["playTime" + String(n)] = levelTime[n - 1];
saves.data.lastPlayedLevel = lastPlayedLevel;
saves.flush();
}
function setLastLevel(n, t) {
if (n > lastPlayedLevel) {
lastPlayedLevel = n;
}
if ((t < levelTime[n - 1]) || (levelTime[n - 1] < 0)) {
levelTime[n - 1] = t;
}
writeSaves(n);
}
var packID = new Array();
var pack1 = new Array();
var pack2 = new Array();
var pack3 = new Array();
var pack4 = new Array();
var defPackStr;
var thumbStart = -1;
var timerEnabled;
var hintEnabled;
var levelStr = new Array();
var solvedStr = new Array();
var levelTime = new Array();
var lastPlayedLevel = 5;
var lastPlayedPack;
var saves = new SharedObject();
var selectedLevel;
var currentPackReloaded = false;
var my_cm = new ContextMenu();
function createTmpDigits() {
var _local1;
tmpDigits.splice(0);
_local1 = 0;
while (_local1 <= 9) {
tmpDigits.push(false);
_local1++;
}
}
function resetTmpDigitd() {
var _local1;
_local1 = 0;
while (_local1 <= 9) {
tmpDigits[_local1] = false;
_local1++;
}
}
function isAllFilled() {
var _local1;
var _local2;
var _local3;
emptyFound = false;
_local2 = 1;
while (_local2 <= 9) {
_local1 = 1;
while (_local1 <= 9) {
_local3 = table[("cell" + String(_local2)) + String(_local1)];
if (_local3.val == 0) {
emptyFound = true;
return(false);
}
_local1++;
}
_local2++;
}
return(true);
}
function testIt() {
var _local2;
var _local3;
var _local4;
var _local5;
var _local1;
emptyFound = false;
_local3 = 1;
while (_local3 <= 9) {
_local2 = 1;
while (_local2 <= 9) {
_local1 = table[("cell" + String(_local3)) + String(_local2)];
_local1.err = false;
if (_local1.val == 0) {
emptyFound = true;
}
_local2++;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 9) {
resetTmpDigitd();
_local2 = 1;
while (_local2 <= 9) {
_local1 = table[("cell" + String(_local3)) + String(_local2)];
if (_local1.val > 0) {
if (tmpDigits[_local1.val]) {
_local1.err = true;
}
tmpDigits[_local1.val] = true;
}
_local2++;
}
_local3++;
}
_local2 = 1;
while (_local2 <= 9) {
resetTmpDigitd();
_local3 = 1;
while (_local3 <= 9) {
_local1 = table[("cell" + String(_local3)) + String(_local2)];
if (_local1.val > 0) {
if (tmpDigits[_local1.val]) {
_local1.err = true;
}
tmpDigits[_local1.val] = true;
}
_local3++;
}
_local2++;
}
_local5 = 0;
while (_local5 <= 2) {
_local4 = 0;
while (_local4 <= 2) {
resetTmpDigitd();
_local3 = (_local5 * 3) + 1;
while (_local3 <= ((_local5 * 3) + 3)) {
_local2 = (_local4 * 3) + 1;
while (_local2 <= ((_local4 * 3) + 3)) {
_local1 = table[("cell" + String(_local3)) + String(_local2)];
if (_local1.val > 0) {
if (tmpDigits[_local1.val]) {
_local1.err = true;
}
tmpDigits[_local1.val] = true;
}
_local2++;
}
_local3++;
}
_local4++;
}
_local5++;
}
errorFound = false;
_local3 = 1;
while (_local3 <= 9) {
_local2 = 1;
while (_local2 <= 9) {
_local1 = table[("cell" + String(_local3)) + String(_local2)];
if (_local1.err) {
errorFound = true;
}
_local2++;
}
_local3++;
}
}
function createCells() {
var _local4;
var _local6;
var _local2;
var _local3;
var _local1;
var _local5;
shadowObj = table.attachMovie("shadowSymbol", "shadowObj1", 100);
numberObj = table.attachMovie("numberChooserSymbol", "numberChooser", 101);
_local6 = 30;
_local3 = 1;
while (_local3 <= 9) {
_local4 = 30;
_local2 = 1;
while (_local2 <= 9) {
_local5 = (100 + (_local3 * 10)) + _local2;
_local1 = table.attachMovie("cellSymbol", ("cell" + String(_local3)) + String(_local2), _local5);
_local1.depth0 = _local5;
_local1.x = _local2;
_local1.y = _local3;
_local1._x = _local4;
_local1._y = _local6;
_local4 = _local4 + (_local1._width + 1);
if ((_local2 % 3) == 0) {
_local4 = _local4 + 1;
}
_local2++;
}
_local6 = _local6 + (_local1._height + 1);
if ((_local3 % 3) == 0) {
_local6 = _local6 + 1;
}
_local3++;
}
}
function initTable() {
var _local1;
var _local2;
var _local4;
var _local3;
_local2 = 1;
while (_local2 <= 9) {
_local1 = 1;
while (_local1 <= 9) {
_local3 = table[("cell" + String(_local2)) + String(_local1)];
_local3.reset((((_local2 - 1) * 9) + _local1) - 1);
_local1++;
}
_local2++;
}
}
function resetTable() {
var _local2;
var _local4;
var _local3;
var _local1;
_local4 = 1;
while (_local4 <= 9) {
_local2 = 1;
while (_local2 <= 9) {
_local1 = table[("cell" + String(_local4)) + String(_local2)];
if (_local1.rowNum <= (initString.length - 1)) {
_local3 = Number(initString.charAt(_local1.rowNum));
} else {
_local3 = 0;
}
_local1.setVal(_local3);
_local2++;
}
_local4++;
}
if (isSelected) {
isSelected = false;
doSelectOne(selectedMC, false);
}
}
function doCreate() {
if (isCreated) {
return(undefined);
}
isCreated = true;
createCells();
createTmpDigits();
shadowObj._alpha = 70;
shadowObj._visible = false;
shadowObj.swapDepths(9990);
numberObj._visible = false;
numberObj.swapDepths(20000);
}
function doSelect(r) {
var _local2;
var _local3;
var _local1;
var _local5;
var _local4;
_local5 = false;
_local3 = 1;
while (_local3 <= 9) {
_local2 = 1;
while (_local2 <= 9) {
_local1 = table[("cell" + String(_local3)) + String(_local2)];
if (_local1.rowNum == r) {
if (_local1.isSelected) {
doSelectOne(_local1, false);
isSelected = false;
} else {
_local5 = true;
_local4 = _local1;
}
} else {
doSelectOne(_local1, false);
}
_local2++;
}
_local3++;
}
if (_local5) {
isSelected = true;
selectedMC = _local4;
doSelectOne(_local4, true);
}
}
function doSelectOne(tc, s) {
tc.isSelected = s;
if (tc.isSelected) {
tc._xscale = 120;
tc._yscale = 120;
tc.swapDepths(10000);
tc.border._visible = true;
shadowObj._x = tc._x + 5;
shadowObj._y = tc._y + 5;
shadowObj._visible = true;
numberObj._x = (tc._x + (tc._width / 2)) + 5;
numberObj._y = tc._y - 20;
reSetNumbers();
if (selectedMC.firstVal == 0) {
numberObj._visible = true;
}
} else {
tc.swapDepths(tc.depth0);
tc._xscale = 100;
tc._yscale = 100;
tc.border._visible = false;
shadowObj._visible = false;
numberObj._visible = false;
}
resetHint();
}
function scrollSelection() {
var _local2;
var _local1;
var _local3;
if (!isSelected) {
_local1 = 1;
_local2 = 1;
_local3 = table[("cell" + String(_local1)) + String(_local2)];
selectedMC = _local3;
isSelected = true;
doSelectOne(selectedMC, true);
return(undefined);
}
_local1 = int(selectedMC.rowNum / 9) + 1;
_local2 = (selectedMC.rowNum % 9) + 1;
if (Key.isDown(39)) {
_local2 = (_local2 % 9) + 1;
}
if (Key.isDown(37)) {
_local2 = ((_local2 + 7) % 9) + 1;
}
if (Key.isDown(40)) {
_local1 = (_local1 % 9) + 1;
}
if (Key.isDown(38)) {
_local1 = ((_local1 + 7) % 9) + 1;
}
doSelectOne(selectedMC, false);
selectedMC = table[("cell" + String(_local1)) + String(_local2)];
doSelectOne(selectedMC, true);
}
function testForWin() {
if (isAllFilled()) {
testIt();
if (!errorFound) {
isSelected = false;
doSelectOne(selectedMC, false);
playerWinned();
} else {
trace("error found");
}
}
}
function reSetNumbers() {
var _local3;
var _local4;
var _local2;
var _local5;
var _local6;
var _local1;
if (!isSelected) {
return(undefined);
}
numberObj.resetNumbers();
if (selectedMC.val != 0) {
numberObj.setOwnNumber(selectedMC.val, true);
}
resetTmpDigitd();
if (!numberDisableActive) {
return(undefined);
}
_local2 = 1;
while (_local2 <= 9) {
_local1 = table[("cell" + String(selectedMC.y)) + String(_local2)];
if (_local1.val > 0) {
tmpDigits[_local1.val] = true;
}
_local1 = table[("cell" + String(_local2)) + String(selectedMC.x)];
if (_local1.val > 0) {
tmpDigits[_local1.val] = true;
}
_local2++;
}
if (selectedMC.y <= 3) {
_local6 = 1;
} else if (selectedMC.y <= 6) {
_local6 = 4;
} else {
_local6 = 7;
}
if (selectedMC.x <= 3) {
_local5 = 1;
} else if (selectedMC.x <= 6) {
_local5 = 4;
} else {
_local5 = 7;
}
_local4 = _local6;
while (_local4 <= (_local6 + 2)) {
_local3 = _local5;
while (_local3 <= (_local5 + 2)) {
_local1 = table[("cell" + String(_local4)) + String(_local3)];
if (_local1.val > 0) {
tmpDigits[_local1.val] = true;
}
_local3++;
}
_local4++;
}
_local2 = 1;
while (_local2 <= 9) {
if (tmpDigits[_local2] && (selectedMC.val != _local2)) {
numberObj.disableNumber(_local2);
}
_local2++;
}
}
function setNumber(n) {
if (!isSelected) {
return(undefined);
}
numberChangeSound.start();
if (selectedMC.val != n) {
selectedMC.setVal(n);
numberObj.setOwnNumber(n, true);
testForWin();
} else {
selectedMC.setVal(0);
numberObj.setOwnNumber(n, false);
}
isSelected = false;
doSelectOne(selectedMC, false);
}
function doFrame() {
var _local2;
var _local3;
var _local1;
var _local7;
var _local6;
var _local9;
var _local8;
var _local5;
var _local4;
if (playFinished) {
return(undefined);
}
if (playStarted) {
playTime = (getTimer() - playStartTime) / 1000;
if (Math.round(playTime) != rndPlayTime) {
rndPlayTime = int(playTime);
_local7 = int(rndPlayTime / 3600);
_local8 = String(_local7);
if (_local7 < 10) {
_local8 = "0" + _local8;
}
_local6 = int((rndPlayTime - (_local7 * 3600)) / 60);
if (_local6 == 60) {
_local6 = 0;
}
_local5 = String(_local6);
if (_local6 < 10) {
_local5 = "0" + _local5;
}
_local9 = rndPlayTime % 60;
_local4 = String(_local9);
if (_local9 < 10) {
_local4 = "0" + _local4;
}
if (_local7 == 0) {
strPlayTime = (_local5 + ":") + _local4;
} else {
strPlayTime = (((_local8 + ":") + _local5) + ":") + _local4;
}
txtTime.text = String(strPlayTime);
}
}
if (hintBlinks > 0) {
_local3 = 1;
while (_local3 <= 9) {
_local2 = 1;
while (_local2 <= 9) {
_local1 = table[("cell" + String(_local3)) + String(_local2)];
_local1.hint--;
if (_local1.hint > 0) {
_local1._visible = (_local1.hint % 7) > 2;
if (_local1.isSelected) {
shadowObj._visible = _local1._visible;
}
} else if (_local1.hint == 0) {
if (_local1.isSelected) {
shadowObj._visible = true;
}
_local1._visible = true;
hintBlinks--;
_local1.hint = -1;
}
_local2++;
}
_local3++;
}
}
}
function resetHint() {
var _local1;
if (hintEnabled == false) {
return(undefined);
}
_local1 = (isSelected && (hints > 0)) && (selectedMC.firstVal == 0);
if (!_local1) {
if (hints > 0) {
txtHintMsg.txt.text = "You need to select a square before using a hint";
}
txtHintMsg.val = true;
btnHint._alpha = 20;
btnHint.useHandCursor = false;
} else {
txtHintMsg.val = false;
txtHintMsg.txt.text = "";
btnHint._alpha = 100;
btnHint.useHandCursor = true;
}
}
function playerLoosed() {
msgPan.showForLoose();
playFinished = true;
}
function playerWinned() {
var _local2;
var _local3;
setLastLevel(selectedLevel, rndPlayTime);
_root.showPopUp(true);
completeSound.start("levelcomplete");
msgPan.showForWin(rndPlayTime);
playFinished = true;
}
function showPopUp(s) {
var _local1;
var _local2;
var _local3;
msgShowing = s;
if (s) {
if (isSelected) {
isSelected = false;
doSelectOne(selectedMC, false);
}
}
btnReset.useHandCursor = !msgShowing;
btnReturn.useHandCursor = !msgShowing;
txtHintMsg._visible = false;
if (msgShowing) {
btnHint.useHandCursor = false;
} else {
resetHint();
}
_local2 = 1;
while (_local2 <= 9) {
_local1 = 1;
while (_local1 <= 9) {
_local3 = table[("cell" + String(_local2)) + String(_local1)];
_local3.useHandCursor = !msgShowing;
_local1++;
}
_local2++;
}
if ((!s) && (playStarted == false)) {
playStartTime = playStartTime + (getTimer() - menuStartTime);
_local2 = 1;
while (_local2 <= 9) {
_local1 = 1;
while (_local1 <= 9) {
_local3 = table[("cell" + String(_local2)) + String(_local1)];
_local3._visible = true;
_local1++;
}
_local2++;
}
table._visible = true;
menuStartTime = -1;
playStarted = true;
}
}
function resetGame() {
resetTable();
if (!playStarted) {
playStarted = true;
playFinished = false;
playTime = 0;
rndPlayTime = -1;
playStartTime = getTimer();
}
btnHint._visible = hintEnabled;
txtHint._visible = hintEnabled;
txtHint.text = "You have 3 hints";
hints = 3;
hintBlinks = 0;
txtHintMsg._visible = false;
msgShowing = false;
resetHint();
}
var numberDisableActive;
var emptyFound;
var errorFound;
var initString = new String("");
var solvedString = new String("");
var tmpDigits = new Array();
var isCreated = false;
var isInitted = false;
var isSelected = false;
var selectedMC;
var shadowObj;
var numberObj;
var KEvents = new Object();
var playTime;
var maxPlayTime = 120;
var rndPlayTime;
var strPlayTime;
var playStartTime;
var playStarted;
var playFinished;
var hints;
var hintBlinks;
var msgShowing;
var retVal = -1;
KEvents.onKeyDown = function () {
var _local1;
if (Key.isDown(17)) {
if (isSelected) {
scrollSound.start();
isSelected = false;
doSelectOne(selectedMC, false);
}
return(undefined);
}
if (((Key.isDown(38) || (Key.isDown(40))) || (Key.isDown(39))) || (Key.isDown(37))) {
scrollSound.start();
scrollSelection();
return(undefined);
}
if (!isSelected) {
return(undefined);
}
if (selectedMC.firstVal == 0) {
_local1 = Key.getAscii();
if ((_local1 >= 49) && (_local1 <= 57)) {
if (numberObj["number" + String(_local1 - 48)].isEnabled) {
numberChangeSound.start();
selectedMC.setVal(_local1 - 48);
testForWin();
}
}
if ((_local1 == 48) || (Key.isDown(32))) {
numberChangeSound.start();
selectedMC.setVal(0);
}
}
};
doCreate();
delPrvPack();
setDefaultPack();
table._visible = false;
pan._visible = false;
msgYN._visible = false;
msgMenu._visible = false;
msgPack._visible = false;
msgRPack._visible = false;
navPrv._visible = false;
navNext._visible = false;
tutorial._visible = false;
Frame 5
writeDefPack();
loadPackNames();
loadLastPlayedPack();
introsound_mc.gotoAndPlay("playintro");
btnLink.onPress = function () {
clickSound.start();
getURL (address0, "_blank");
};
y = 1;
while (y <= 9) {
x = 1;
while (x <= 9) {
tc = table[("cell" + String(y)) + String(x)];
tc.onMouseDown = function () {
if (this.firstVal > 0) {
return(undefined);
}
this.col.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
};
tc.onRollOver = function () {
if (this.firstVal > 0) {
return(undefined);
}
if (_root.isSelected) {
return(undefined);
}
this.col.setTransform({ra:60, rb:100, ga:60, gb:100, ba:60, bb:100});
};
tc.onRollOut = function () {
if (this.firstVal > 0) {
return(undefined);
}
if (_root.isSelected) {
return(undefined);
}
this.col.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
};
x++;
}
y++;
}
n = 0;
y = 1;
while (y <= 3) {
x = 1;
while (x <= 3) {
n++;
tc = table.numberChooser["number" + String(n)];
tc.col = new Color(tc);
tc.onMouseDown = function () {
this.col.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
};
tc.onRollOver = function () {
this.col.setTransform({ra:60, rb:100, ga:60, gb:100, ba:60, bb:100});
};
tc.onRollOut = function () {
this.col.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
};
x++;
}
y++;
}
if (msgPack.centered == undefined) {
msgPack.centered = 1;
msgPack._x = 68;
msgPack._y = 3;
}
if (msgRPack.centered == undefined) {
msgRPack.centered = 1;
msgRPack._x = 68;
msgRPack._y = 3;
}
if (pan.centered == undefined) {
pan.centered = 1;
pan._x = (550 - pan._width) / 2;
pan._y = 5;
}
if (msgYN.centered == undefined) {
msgYN.centered = 1;
msgYN._x = 275;
msgYN._y = 200;
}
if (msgMenu.centered == undefined) {
msgMenu.centered = 1;
msgMenu._x = 275;
msgMenu._y = 200;
}
Frame 6
function showStartBtns(v) {
btnStart._visible = v;
btnTutorial._visible = v;
start_mc._visible = v;
btnMoreGames._visible = v;
btnCredits._visible = v;
}
Key.removeListener(KEvents);
table._visible = false;
pan._visible = false;
msgYN._visible = false;
msgMenu._visible = false;
msgPack._visible = false;
msgRPack._visible = false;
navPrv._visible = false;
navNext._visible = false;
tutorial._visible = false;
credits._visible = false;
if (isNaN(tutorial.centered)) {
tutorial.centered = 1;
tutorial._x = (550 - tutorial._width) / 2;
tutorial._y = (400 - tutorial._height) / 2;
}
if (isNaN(msgPack.centered)) {
msgPack.centered = 1;
msgPack._x = 68;
msgPack._y = 3;
}
if (isNaN(msgRPack.centered)) {
msgRPack.centered = 1;
msgRPack._x = 68;
msgRPack._y = 3;
}
btnPacks.onPress = function () {
clickSound.start();
showStartBtns(false);
msgPack.showMe();
};
btnStart.onPress = function () {
clickSound.start();
gotoAndStop ("levelsFrame");
};
btnTutorial.onPress = function () {
clickSound.start();
showStartBtns(false);
tutorial._visible = true;
};
btnMoreGames.onPress = function () {
clickSound.start();
getURL (address0, "website");
};
btnCredits.onPress = function () {
clickSound.start();
showStartBtns(false);
credits._visible = true;
};
if (retVal == 1) {
showStartBtns(false);
msgPack.showMe();
}
if (retVal == 2) {
showStartBtns(false);
tutorial._visible = true;
}
stop();
if (tutorial.centered == undefined) {
tutorial.centered = 1;
tutorial._x = (550 - tutorial._width) / 2;
tutorial._y = (400 - tutorial._height) / 2;
}
Frame 7
function resetThumbs() {
var _local1;
var _local2;
switch (thumbStart) {
case 1 :
_local2 = "Easy";
break;
case 26 :
_local2 = "Medium";
break;
case 51 :
_local2 = "Hard";
break;
case 76 :
_local2 = "Very Hard";
}
pan.txtLevels.text = ((((("Levels " + String(thumbStart)) + "-") + String(Math.min(thumbStart + 24, levelStr.length))) + " (") + _local2) + ")";
_local1 = thumbStart;
while (_local1 <= (thumbStart + 24)) {
if (_local1 <= levelStr.length) {
pan.resetTable((_local1 - thumbStart) + 1, levelStr[_local1 - 1], solvedStr[_local1 - 1], levelTime[_local1 - 1]);
} else {
pan.resetTable((_local1 - thumbStart) + 1, "", "", -1);
}
_local1++;
}
navPrv.setValsFor(thumbStart, -1);
navNext.setValsFor(thumbStart, 1);
}
Key.removeListener(KEvents);
table._visible = false;
pan._visible = true;
msgYN._visible = false;
msgMenu._visible = false;
msgPack._visible = false;
msgRPack._visible = false;
if (isNaN(pan.centered)) {
pan.centered = 1;
pan._x = (550 - pan._width) / 2;
pan._y = 2;
}
navPrv._visible = true;
navNext._visible = true;
if (thumbStart == -1) {
var k;
thumbStart = 1;
resetThumbs();
} else {
navPrv.setValsFor(thumbStart, -1);
navNext.setValsFor(thumbStart, 1);
}
navPrvPress = function () {
clickSound.start();
_root.thumbStart = Math.min(_root.levelStr.length, _root.thumbStart - 25);
resetThumbs();
pan.selectTableNum(selectedLevel);
};
navNextPress = function () {
clickSound.start();
_root.thumbStart = Math.min(_root.levelStr.length, _root.thumbStart + 25);
resetThumbs();
pan.selectTableNum(selectedLevel);
};
if ((selectedLevel <= 0) || (lastPlayedLevel == selectedLevel)) {
selectedLevel = Math.min(lastPlayedLevel + 1, levelStr.length);
thumbStart = (int((selectedLevel - 1) / 25) * 25) + 1;
resetThumbs();
pan.selectTableNum(selectedLevel);
}
resetThumbs();
retVal = -1;
stop();
Frame 8
Key.removeListener(KEvents);
Key.addListener(KEvents);
btnReturn.onEnterFrame = doFrame;
table._visible = true;
pan._visible = false;
txtLevel.text = _root.selectedLevel;
if (isNaN(table.centered)) {
table.centered = 1;
table._x = 10;
table._y = 30;
}
if (isNaN(panMsg.centered)) {
panMsg.centered = 1;
panMsg._x = 275;
panMsg._y = 200;
}
if (isNaN(msgYN.centered)) {
msgYN.centered = 1;
msgYN._x = 275;
msgYN._y = 200;
}
if (isNaN(msgMenu.centered)) {
msgMenu.centered = 1;
msgMenu._x = 275;
msgMenu._y = 200;
}
msgYN._visible = false;
msgMenu._visible = false;
msgPack._visible = false;
navPrv._visible = false;
navNext._visible = false;
if (!isInitted) {
isInitted = true;
initTable();
}
resetTable();
playStarted = false;
if (!playStarted) {
resetGame();
}
btnHint.onPress = function () {
var _local1;
if (msgShowing) {
return(undefined);
}
if (txtHintMsg.val) {
return(undefined);
}
hintSound.start();
_local1 = Number(solvedString.charAt(selectedMC.rowNum));
selectedMC.setVal(_local1);
numberObj.setOwnNumber(_local1, true);
isSelected = false;
doSelectOne(selectedMC, false);
testForWin();
selectedMC.hint = 20;
hintBlinks++;
hints--;
if (hints == 1) {
txtHint.text = ("You have " + String(hints)) + " hint";
} else if (hints > 1) {
txtHint.text = ("You have " + String(hints)) + " hints";
} else {
txtHint.text = "You have no hints";
}
resetHint();
};
btnHint.onRollOver = function () {
if (msgShowing) {
return(undefined);
}
if ((!txtHintMsg.val) || (hints <= 0)) {
return(undefined);
}
txtHintMsg._visible = true;
txtHintMsg._x = Math.min(550 - (txtHintMsg._width / 2), _xmouse);
txtHintMsg._y = _ymouse;
};
btnHint.onRollOut = function () {
if (msgShowing) {
return(undefined);
}
txtHintMsg._visible = false;
};
btnReset.onPress = function () {
clickSound.start();
if (_root.msgShowing) {
return(undefined);
}
_root.showPopUp(true);
_root.msgYN.showMsg();
};
btnMenu.onPress = function () {
clickSound.start();
if (_root.msgShowing) {
return(undefined);
}
y = 1;
while (y <= 9) {
x = 1;
while (x <= 9) {
tc = table[("cell" + String(y)) + String(x)];
tc._visible = false;
x++;
}
y++;
}
table._visible = false;
menuStartTime = getTimer();
playStarted = false;
_root.showPopUp(true);
_root.msgMenu.showMsg();
};
stop();
y = 1;
while (y <= 9) {
x = 1;
while (x <= 9) {
tc = table[("cell" + String(y)) + String(x)];
tc.hint = -1;
x++;
}
y++;
}
if (panMsg.centered == undefined) {
panMsg.centered = 1;
panMsg._x = 275;
panMsg._y = 200;
}
if (table.centered == undefined) {
table.centered = 1;
table._x = 10;
table._y = 30;
}
Symbol 14 MovieClip [cellSymbol] Frame 1
function reset(r) {
val = 0;
rowNum = r;
err = false;
isSelected = false;
hint = -1;
txt.text = "";
}
function setFirstVal(v) {
firstVal = v;
if (firstVal > 0) {
txt.textColor = 0;
} else {
txt.textColor = 10027008 /* 0x990000 */;
}
}
function setVal(v) {
if (!_root.playStarted) {
setFirstVal(v);
}
val = v;
if (val != 0) {
txt.text = String(val);
} else {
txt.text = "";
}
}
var val = 0;
var firstVal = 0;
var rowNum = -1;
var err = false;
var hint = -1;
var isSelected = false;
var col = new Color(this);
this.onPress = function () {
if (_root.msgShowing) {
return(undefined);
}
if (_root.playStarted && (!_root.playFinished)) {
scrollSound.start();
_root.doSelect(rowNum);
}
};
border._visible = false;
stop();
Symbol 19 MovieClip [smallCellSymbol] Frame 1
var col = new Color(this);
stop();
Symbol 21 MovieClip [numberChooserSymbol] Frame 1
function create() {
var _local5;
var _local6;
var _local3;
var _local4;
_local4 = 0;
attachMovie("eraserSymbol", "eraser", 200);
_local6 = 1;
while (_local6 <= 3) {
_local5 = 1;
while (_local5 <= 3) {
_local4++;
_local3 = attachMovie("numberSymbol", "number" + String(_local4), 100 + _local4);
_local3._x = ((_local5 - 1) * (_local3._width + 2)) + 2;
_local3._y = ((_local6 - 1) * (_local3._height + 2)) + 2;
_local3.txt.text = _local4;
_local3.val = _local4;
_local3.isEnabled = true;
_local3.onPress = function () {
if (this.isEnabled) {
_root.setNumber(this.val);
}
};
_local5++;
}
_local6++;
}
}
function resetNumbers() {
var _local2;
var _local3;
_local2 = 1;
while (_local2 <= 9) {
_local3 = this["number" + String(_local2)];
_local3.isEnabled = true;
_local3._alpha = 100;
_local2++;
}
eraser._visible = false;
}
function disableNumber(n) {
var _local2;
_local2 = this["number" + String(n)];
_local2.isEnabled = false;
_local2._alpha = 50;
}
function setOwnNumber(n, o) {
var _local2;
_local2 = this["number" + String(n)];
if (o) {
eraser._x = _local2._x;
eraser._y = _local2._y;
eraser._visible = true;
} else {
eraser._visible = false;
}
}
var isCreated = false;
if (!isCreated) {
isCreated = true;
create();
}
stop();
Symbol 38 MovieClip [listBoxSymbol] Frame 1
function createRows() {
var _local6;
var _local4;
var _local3;
var _local2;
var _local5;
_local6 = 0;
_local4 = 32;
_local3 = 0;
while (_local3 <= 9) {
_local5 = 100 + _local3;
_local2 = attachMovie("listItemSymbol", "row" + String(_local3), _local5);
_local2.border._visible = false;
_local2._x = _local6;
_local2._y = _local4;
_local2.num = _local3;
_local4 = _local4 + (_local2._height + 2);
_local2.onPress = function () {
if (!this.val) {
return(undefined);
}
doSelect(this.num);
};
_local3++;
}
}
function setRow(n, s1, s2, s3, s4, s5, e) {
var _local2;
_local2 = this["row" + String(n)];
_local2.txt1.text = s1;
_local2.txt2.text = s2;
_local2.txt3.text = s3;
_local2.txt4.text = s4;
_local2.txt5.text = s5;
_local2.val = e;
_local2.useHandCursor = e;
}
function doSelect(n) {
var _local3;
var _local4;
_local3 = 0;
while (_local3 <= 9) {
_local4 = this["row" + String(_local3)];
_local4.border._visible = n == _local3;
_local3++;
}
_parent.changeSel(n);
}
function getSel() {
var _local2;
var _local3;
_local2 = 0;
while (_local2 <= 9) {
_local3 = this["row" + String(_local2)];
if (_local3.border._visible) {
return(_local2);
}
_local2++;
}
return(-1);
}
var isCreated = false;
if (!isCreated) {
isCreated = true;
createRows();
}
rowTitle.border._visible = false;
stop();
Symbol 48 MovieClip [smallTableSymbol] Frame 1
function createCells() {
var _local4;
var _local5;
var _local2;
var _local3;
var _local1;
var _local6;
_local5 = 5;
_local3 = 1;
while (_local3 <= 9) {
_local4 = 5;
_local2 = 1;
while (_local2 <= 9) {
_local6 = (100 + (_local3 * 10)) + _local2;
_local1 = attachMovie("smallCellSymbol", ("cell" + String(_local3)) + String(_local2), _local6);
_local1._x = _local4 + _local1._width;
_local1._y = _local5 + _local1._height;
_local4 = _local4 + (_local1._width + 1);
if ((_local2 % 3) == 0) {
_local4 = _local4 + 1;
}
_local2++;
}
_local5 = _local5 + (_local1._height + 1);
if ((_local3 % 3) == 0) {
_local5 = _local5 + 1;
}
_local3++;
}
}
function resetTable(s1, s2, t) {
var _local3;
var _local5;
var _local4;
var _local2;
initString = s1;
solvedString = s2;
_local5 = 1;
while (_local5 <= 9) {
_local3 = 1;
while (_local3 <= 9) {
_local4 = this[("cell" + String(_local5)) + String(_local3)];
_local2 = (((_local5 - 1) * 9) + _local3) - 1;
if (_local2 <= (initString.length - 1)) {
_local2 = Number(initString.charAt((((_local5 - 1) * 9) + _local3) - 1));
} else {
_local2 = 0;
}
if (_local2 == 0) {
_local4.txt.text = "";
if (isThumb) {
_local4.col.setTransform({ra:100, ga:100, ba:100});
}
} else {
_local4.txt.text = String(_local2);
if (isThumb) {
_local4.col.setTransform({ra:60, ga:60, ba:60});
}
}
_local3++;
}
_local5++;
}
playTime = t;
if (t >= 0) {
if (isThumb) {
okSign._visible = true;
} else {
setStrPlayTime();
txt.text = "Best Time: " + String(strPlayTime);
}
} else if (isThumb) {
okSign._visible = false;
} else {
txt.text = "No Time";
}
}
function setStrPlayTime() {
var _local6;
var _local3;
var _local7;
var _local5;
var _local2;
var _local1;
var _local4;
_local4 = int(playTime);
_local6 = int(_local4 / 3600);
_local5 = String(_local6);
if (_local6 < 10) {
_local5 = "0" + _local5;
}
_local3 = int(_local4 / 60);
if (_local3 == 60) {
_local3 = 0;
}
_local2 = String(_local3);
if (_local3 < 10) {
_local2 = "0" + _local2;
}
_local7 = _local4 % 60;
_local1 = String(_local7);
if (_local7 < 10) {
_local1 = "0" + _local1;
}
if (_local6 == 0) {
strPlayTime = (_local2 + ":") + _local1;
} else {
strPlayTime = (((_local5 + ":") + _local2) + ":") + _local1;
}
}
var isCreated = false;
var initString = new String("");
var playTime;
var strPlayTime;
var isThumb = true;
if (!isCreated) {
isCreated = true;
createCells();
}
border._visible = false;
okSign._visible = false;
stop();
Symbol 52 Button
on (release) {
getURL ("http://www.2dplay.com/index.php?gameid=673&gamename=Sudoku%20Original", "_blank");
}
Symbol 122 MovieClip Frame 1
_root.loading._visible = false;
Symbol 122 MovieClip Frame 207
_root.loading._visible = true;
stop();
Symbol 128 MovieClip Frame 1
var gameBytesTotal = 0;
var gameBytesLoaded = 0;
var percent = 0;
Symbol 128 MovieClip Frame 3
gameBytesTotal = _root.getBytesTotal();
gameBytesLoaded = _root.getBytesLoaded();
percent = Math.round((gameBytesLoaded / gameBytesTotal) * 100);
bar.loadbar._xscale = percent;
if (((gameBytesLoaded >= gameBytesTotal) && (gameBytesTotal > 0)) && (_root.logo._currentframe >= _root.logo._totalframes)) {
_root.gotoAndPlay("startgame");
stop();
} else {
gotoAndPlay ("preload");
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 151
stop();
Symbol 161 MovieClip Frame 1
function createThumbs() {
var _local4;
var _local5;
var _local3;
_local5 = 1;
while (_local5 <= 5) {
_local4 = 1;
while (_local4 <= 5) {
_local3 = attachMovie("smallTableSymbol", ("table" + String(_local5)) + String(_local4), (_local5 * 6) + _local4);
_local3.val = -1;
_local3._xscale = 22;
_local3._yscale = 22;
_local3._x = 15 + ((_local4 - 1) * (_local3._width + 10));
_local3._y = 30 + ((_local5 - 1) * (_local3._height + 5));
_local3.onRollOver = function () {
if (isSelected && (selectedMC._name == this._name)) {
return(undefined);
}
hoverSound.start();
semSelectTable(this);
};
_local3.onRollOut = function () {
if ((!isSemSelected) || (semSelectedMC._name != this._name)) {
return(undefined);
}
isSemSelected = false;
if (isSelected) {
selectTable(selectedMC);
}
};
_local3.onPress = function () {
if (isSelected) {
if (selectedMC._name == this._name) {
playSound.start();
_root.gotoAndStop("playFrame");
} else {
levelSeleclSound.start();
selectedMC.border._visible = false;
selectTable(this);
}
}
};
_local4++;
}
_local5++;
}
}
function selectTableNum(n) {
var _local3;
var _local4;
var _local2;
_local4 = 1;
while (_local4 <= 5) {
_local3 = 1;
while (_local3 <= 5) {
_local2 = this[("table" + String(_local4)) + String(_local3)];
if (_local2.val == n) {
selectTable(_local2);
} else {
_local2.border._visible = false;
}
_local3++;
}
_local4++;
}
}
function semSelectTable(tt) {
isSemSelected = true;
btnPlay._visible = false;
semSelectedMC = tt;
previewTable.isThumb = false;
previewTable.resetTable(semSelectedMC.initString, semSelectedMC.solvedString, semSelectedMC.playTime);
txtLevel.text = "LEVEL " + String(tt.val);
txtTotal.text = "OF " + String(_root.levelStr.length);
}
function selectTable(tt) {
isSelected = true;
btnPlay._visible = true;
_root.selectedLevel = tt.val;
selectedMC = tt;
selectedMC.border._visible = true;
previewTable.isThumb = false;
previewTable.resetTable(selectedMC.initString, selectedMC.solvedString, selectedMC.playTime);
_root.initString = selectedMC.initString;
_root.solvedString = selectedMC.solvedString;
txtLevel.text = "LEVEL " + String(tt.val);
txtTotal.text = "OF " + String(_root.levelStr.length);
}
function resetTable(tnum, s1, s2, t) {
var _local6;
var _local5;
var _local3;
_local5 = int((tnum - 1) / 5) + 1;
_local6 = ((tnum - 1) % 5) + 1;
_local3 = this[("table" + String(_local5)) + String(_local6)];
_local3.val = (_root.thumbStart - 1) + tnum;
_local3.resetTable(s1, s2, t);
_local3._visible = s2 != "";
}
var isThumbsCreated = false;
var isSelected = false;
var selectedMC;
var isSemSelected = false;
var semSelectedMC;
if (!isThumbsCreated) {
isThumbsCreated = true;
createThumbs();
}
btnPlay.onPress = function () {
_root.playSound.start();
_root.gotoAndStop("playFrame");
};
btnMenu.onPress = function () {
clickSound2.start();
_root.gotoAndStop("startFrame");
};
btnPlay._visible = false;
stop();
Symbol 164 MovieClip Frame 1
function setValsFor(n, d) {
if (d == -1) {
v = n > 1;
}
if (d == 1) {
v = ((n + 25) - 1) < _root.levelStr.length;
}
if (v) {
_alpha = 100;
this.onPress = _root.navPrvPress;
} else {
_alpha = 20;
delete this.onPress;
}
}
var v;
stop();
Symbol 166 MovieClip Frame 1
function setValsFor(n, d) {
if (d == -1) {
v = n > 1;
}
if (d == 1) {
v = ((n + 25) - 1) < _root.levelStr.length;
}
if (v) {
_alpha = 100;
this.onPress = _root.navNextPress;
} else {
_alpha = 20;
delete this.onPress;
}
}
var v = false;
var fade = 0;
stop();
Symbol 185 MovieClip Frame 1
function showMsg() {
_xscale = 100;
_yscale = 100;
dscale = 10;
btnYes.txt.text = "Yes";
btnNo.txt.text = "No";
btnYes.onPress = function () {
clickSound.start();
_root.showPopUp(false);
_root.playStarted = false;
_root.resetGame();
hideMe();
};
btnNo.onPress = function () {
clickSound.start();
_root.showPopUp(false);
hideMe();
};
_visible = true;
started = true;
}
function hideMe() {
_visible = false;
}
function showEffect() {
var _local1;
if (!started) {
return(undefined);
}
if (dscale == 0) {
return(undefined);
}
_local1 = _xscale + dscale;
if ((_local1 > 100) || (_local1 < 0)) {
dscale = 0;
} else {
_xscale = _local1;
_yscale = _local1;
}
}
var started;
var dscale;
hideMe();
txtMsg.selectable = false;
_alpha = 100;
started = false;
dscale = 0;
stop();
Symbol 194 MovieClip Frame 1
function showMsg() {
_xscale = 100;
_yscale = 100;
dscale = 10;
_visible = true;
started = true;
}
function hideMe() {
_visible = false;
}
function showEffect() {
var _local1;
if (!started) {
return(undefined);
}
if (dscale == 0) {
return(undefined);
}
_local1 = _xscale + dscale;
if ((_local1 > 100) || (_local1 < 0)) {
dscale = 0;
} else {
_xscale = _local1;
_yscale = _local1;
}
}
var started;
var dscale;
menu0.txt.text = "Resume";
menu1.txt.text = "Quit level";
menu4.txt.text = "Download this game";
menu5.txt.text = "Get this game for your website";
menu6.txt.text = "Play more games";
menu0.onPress = function () {
clickSound.start();
_root.showPopUp(false);
hideMe();
};
menu1.onPress = function () {
clickSound.start();
_root.showPopUp(false);
hideMe();
_root.gotoAndStop("levelsFrame");
};
menu4.onPress = function () {
clickSound.start();
getURL (_root.address1, "_blank");
};
menu5.onPress = function () {
clickSound.start();
getURL (_root.address2, "_blank");
};
menu6.onPress = function () {
clickSound.start();
getURL (_root.address0, "_blank");
};
hideMe();
_alpha = 100;
started = false;
dscale = 0;
stop();
Symbol 202 MovieClip Frame 1
function setValsFor(n, d) {
if (d == -1) {
v = n > 0;
}
if (d == 1) {
v = (n + 10) < _parent.packID.length;
}
if (v) {
_alpha = 100;
this.onPress = _parent.pNavPrvPress;
} else {
_alpha = 20;
delete this.onPress;
}
}
var v;
stop();
Symbol 205 MovieClip Frame 1
function setValsFor(n, d) {
if (d == -1) {
v = n > 0;
}
if (d == 1) {
v = (n + 10) < _parent.packID.length;
}
if (v) {
_alpha = 100;
this.onPress = _parent.pNavNextPress;
} else {
_alpha = 20;
delete this.onPress;
}
}
var v = false;
var fade = 0;
this.onEnterFrame = function () {
var _local1;
if (v) {
fade++;
if (fade > 20) {
fade = 0;
}
_local1 = int(fade / 2) % 10;
if (_local1 > 5) {
_local1 = 10 - _local1;
}
_alpha = (40 + (_local1 * 10));
}
};
stop();
Symbol 208 MovieClip Frame 1
function showMe() {
var _local2;
_visible = true;
packID = _root.packID;
pack1 = _root.pack1;
pack2 = _root.pack2;
pack3 = _root.pack3;
pack4 = _root.pack4;
_local2 = _root.getExistNum(_root.lastPlayedPack);
listStart = int(_local2 / 10) * 10;
resetList();
lstPacks.doSelect(0);
}
function hideMe() {
if (_root.lastPlayedPack == "") {
txtMsg.text = "PLEASE LOAD ONE OF PACKS";
txtMsg._visible = true;
return(undefined);
}
if (_root.currentPackReloaded) {
_root.currentPackReloaded = false;
_root.reLoadCurrentPack();
}
_root.showStartBtns(true);
_visible = false;
}
function loadIt() {
var _local2;
_local2 = lstPacks.getSel();
if (_local2 == -1) {
txtMsg.text = "PLEASE SELECT ONE OF PACKS";
txtMsg._visible = true;
return(undefined);
}
txtMsg._visible = false;
_local2 = _local2 + listStart;
_root.loadPack(_local2);
resetList();
}
function changeSel(s) {
var _local2;
selNum = s;
txtMsg._visible = false;
_local2 = s + listStart;
}
function deleteIt() {
var _local2;
_local2 = lstPacks.getSel();
if (_local2 == -1) {
return(undefined);
}
_local2 = _local2 + listStart;
if (_local2 == 0) {
return(undefined);
}
_root.delPack(_local2);
if (listStart >= packID.length) {
listStart = listStart - 10;
}
resetList();
_local2 = lstPacks.getSel();
if ((listStart + _local2) >= packID.length) {
_local2--;
}
lstPacks.doSelect(_local2);
}
function resetList() {
var _local2;
var _local3;
txtPacks.text = (("Packs " + String(listStart + 1)) + "-") + String(Math.min(listStart + 10, packID.length));
_local2 = listStart;
while (_local2 <= (listStart + 9)) {
if (_local2 <= (packID.length - 1)) {
if (packID[_local2] == _root.lastPlayedPack) {
_local3 = "YES";
} else {
_local3 = "-";
}
lstPacks.setRow(_local2 - listStart, packID[_local2], pack1[_local2], pack2[_local2], pack3[_local2], _local3, true);
} else {
lstPacks.setRow(_local2 - listStart, "", "", "", "", "", false);
}
_local2++;
}
pNavPrv.setValsFor(listStart, -1);
pNavNext.setValsFor(listStart, 1);
lstPacks.doSelect(Math.min(selNum, (packID.length - listStart) - 1));
}
var selNum = 0;
var packID = new Array();
var pack1 = new Array();
var pack2 = new Array();
var pack3 = new Array();
var pack4 = new Array();
var listStart = 0;
pNavPrvPress = function () {
clickSound.start();
listStart = Math.min(packID.length, listStart - 10);
resetList();
};
pNavNextPress = function () {
clickSound.start();
listStart = Math.min(packID.length, listStart + 10);
resetList();
};
lstPacks.rowTitle.txt1.text = "ID";
lstPacks.rowTitle.txt2.text = "NAME";
lstPacks.rowTitle.txt3.text = "DATE";
lstPacks.rowTitle.txt4.text = "AUTHOR";
lstPacks.rowTitle.txt5.text = "CURRENT";
btnRemote.txt.text = "Get More Packs";
btnLoad.txt.text = "Select Level Pack";
btnReturn.txt.text = "Return To Menu";
btnRemote.onPress = function () {
clickSound.start();
_visible = false;
_root.msgRPack.showMe();
};
btnReturn.onPress = function () {
clickSound.start();
hideMe();
};
btnLoad.onPress = function () {
clickSound.start();
loadIt();
};
stop();
Symbol 214 MovieClip Frame 1
function showMe() {
_visible = true;
loadNum = -1;
loadID = "";
listStart = 0;
txtMsg.text = "Loading Data ...";
txtMsg._visible = true;
lstPacks._visible = false;
btnLoad._visible = false;
pNavPrv._visible = false;
pNavNext._visible = false;
my_xml.sendAndLoad(_root.address4, myLoginReply_xml);
}
function hideMe() {
_root.msgPack._visible = true;
_visible = false;
}
function loadList() {
var _local3;
var _local4;
var _local2;
packFile.splice(0);
packID.splice(0);
pack1.splice(0);
pack2.splice(0);
pack3.splice(0);
pack4.splice(0);
_local4 = myLoginReply_xml.childNodes[0];
if ((myLoginReply_xml.childNodes.length == 0) || (_local4.childNodes.length == 0)) {
return(false);
}
_local3 = 0;
while (_local3 <= (_local4.childNodes.length - 1)) {
_local2 = _local4.childNodes[_local3];
packFile.push(_local2.attributes.pFile);
packID.push(_local2.attributes.pID);
pack1.push(_local2.attributes.pName);
pack2.push(_local2.attributes.pDate);
pack3.push(_local2.attributes.pAuthor);
pack4.push(_root.isExist(_local2.attributes.pID));
_local3++;
}
return(true);
}
function loadIt() {
loadNum = lstPacks.getSel();
if (loadNum == -1) {
return(undefined);
}
loadNum = loadNum + listStart;
loadID = packID[loadNum];
txtMsg.text = "Loading Data ...";
txtMsg._visible = true;
lstPacks._visible = false;
btnLoad._visible = false;
pNavPrv._visible = false;
pNavNext._visible = false;
my_xml2.sendAndLoad(packFile[loadNum], myLoginReply_xml2);
}
function saveIt() {
var _local2;
var _local4;
var _local3 = new SharedObject();
var _local5;
_local4 = myLoginReply_xml2.childNodes[0];
if ((myLoginReply_xml2.childNodes.length == 0) || (_local4.attributes.id != loadID)) {
txtMsg2.text = "Error In XML File Format";
return(undefined);
}
_local3 = SharedObject.getLocal("sudokuPack" + packID[loadNum]);
_local3.clear();
_local3.data.inited = 1;
_local3.data.timerEnabled = _local4.attributes.timerEnabled;
_local3.data.hintEnabled = _local4.attributes.hintEnabled;
_local3.data.levelCount = _local4.childNodes.length;
_local3.data.lastPlayedLevel = 0;
_local2 = 1;
while (_local2 <= _local4.childNodes.length) {
_local3.data["pattern" + String(_local2)] = _local4.childNodes[_local2 - 1].attributes.pattern;
_local3.data["solved" + String(_local2)] = _local4.childNodes[_local2 - 1].attributes.solved;
_local3.data["playTime" + String(_local2)] = -1;
_local2++;
}
_local3.flush();
pack4[loadNum] = true;
_local5 = _root.getExistNum(loadID);
if (_local5 == -1) {
_root.packID.push(packID[loadNum]);
_root.pack1.push(pack1[loadNum]);
_root.pack2.push(pack2[loadNum]);
_root.pack3.push(pack3[loadNum]);
_root.pack4.push("");
} else {
_root.packID[_local5] = packID[loadNum];
_root.pack1[_local5] = pack1[loadNum];
_root.pack2[_local5] = pack2[loadNum];
_root.pack3[_local5] = pack3[loadNum];
_root.pack4[_local5] = "";
}
if (_root.lastPlayedPack == packID[loadNum]) {
_root.currentPackReloaded = true;
}
_root.savePackNames();
resetList();
}
function changeSel(s) {
var _local1;
selNum = s;
_local1 = s + listStart;
txtMsg2.text = "";
if (pack4[_local1]) {
btnLoad.txt.text = "ReLoad";
} else {
btnLoad.txt.text = "Load";
}
}
function resetList() {
var _local1;
var _local2;
txtPacks.text = (("Packs " + String(listStart + 1)) + "-") + String(Math.min(listStart + 10, packID.length));
_local1 = listStart;
while (_local1 <= (listStart + 9)) {
if (_local1 <= (packID.length - 1)) {
if (pack4[_local1]) {
_local2 = "YES";
} else {
_local2 = "-";
}
lstPacks.setRow(_local1 - listStart, packID[_local1], pack1[_local1], pack2[_local1], pack3[_local1], _local2, true);
} else {
lstPacks.setRow(_local1 - listStart, "", "", "", "", "", false);
}
_local1++;
}
pNavPrv.setValsFor(listStart, -1);
pNavNext.setValsFor(listStart, 1);
lstPacks.doSelect(Math.min(selNum, (packID.length - listStart) - 1));
}
var selNum = 0;
var loadNum = -1;
var loadID = "";
var packFile = new Array();
var packID = new Array();
var pack1 = new Array();
var pack2 = new Array();
var pack3 = new Array();
var pack4 = new Array();
var listStart = 0;
var my_xml = new XML();
var myLoginReply_xml = new XML();
var my_xml2 = new XML();
var myLoginReply_xml2 = new XML();
myLoginReply_xml.ignoreWhite = true;
myLoginReply_xml2.ignoreWhite = true;
myLoginReply_xml.onLoad = function (success) {
if (success) {
if (!loadList()) {
txtMsg.text = "BAD FILE FORMAT";
return(undefined);
}
resetList();
if (packID.length > 0) {
txtMsg._visible = false;
lstPacks._visible = true;
btnLoad._visible = true;
pNavPrv._visible = true;
pNavNext._visible = true;
} else {
txtMsg.text = "There Is No Any Pack";
}
} else {
txtMsg.text = "Error In Loading Data";
}
};
myLoginReply_xml2.onLoad = function (success) {
if (success) {
saveIt();
btnLoad.txt.text = "ReLoad";
} else {
txtMsg2.text = "Error In Loading Data";
}
txtMsg._visible = false;
lstPacks._visible = true;
btnLoad._visible = true;
pNavPrv._visible = true;
pNavNext._visible = true;
};
pNavPrvPress = function () {
clickSound.start();
listStart = Math.min(packID.length, listStart - 10);
resetList();
};
pNavNextPress = function () {
clickSound.start();
listStart = Math.min(packID.length, listStart + 10);
resetList();
};
lstPacks.rowTitle.txt1.text = "ID";
lstPacks.rowTitle.txt2.text = "NAME";
lstPacks.rowTitle.txt3.text = "DATE";
lstPacks.rowTitle.txt4.text = "AUTHOR";
lstPacks.rowTitle.txt5.text = "LOADED";
btnReturn.txt.text = "Close";
btnLoad.txt.text = "Load";
btnReturn.onPress = function () {
clickSound.start();
hideMe();
_root.msgPack.resetList();
};
btnLoad.onPress = function () {
clickSound.start();
loadIt();
};
stop();
Symbol 219 MovieClip Frame 20
stop();
Symbol 231 MovieClip Frame 1
btnClose.onPress = function () {
clickSound2.start();
_root.showStartBtns(true);
_root.tutorial._visible = false;
};
Symbol 261 Button
on (press) {
getURL (_root.address0, "_blank");
}
Symbol 262 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 1
btnClose.onRelease = function () {
clickSound2.start();
_root.showStartBtns(true);
_root.credits._visible = false;
};
Symbol 312 MovieClip Frame 1
function showForLoose() {
_xscale = 0;
_yscale = 0;
dscale = 10;
txtMsg.text = "GAME OVER";
txtScore._visible = false;
btn1.onPress = function () {
gotoLevels();
};
_visible = true;
started = true;
}
function showForWin(sc) {
_xscale = 100;
_yscale = 100;
dscale = 10;
txtMsg.text = "LEVEL COMPLETED";
txtScore.text = "Time Taken: " + _root.strPlayTime;
txtScore._visible = true;
btn1.onPress = function () {
gotoLevels();
};
_visible = true;
started = true;
}
function gotoLevels() {
hideMe();
_root.gotoAndStop("levelsFrame");
}
function hideMe() {
txtMsg.text = "";
_root.showPopUp(false);
_visible = false;
}
function showEffect() {
var _local1;
if (!started) {
return(undefined);
}
if (dscale == 0) {
return(undefined);
}
_local1 = _xscale + dscale;
if ((_local1 > 100) || (_local1 < 0)) {
dscale = 0;
} else {
_xscale = _local1;
_yscale = _local1;
}
}
var started;
var dscale;
hideMe();
txtMsg.selectable = false;
_alpha = 100;
started = false;
dscale = 0;
stop();