Frame 1
function Grab_decode(toDecode) {
if ((toDecode == undefined) || (toDecode == "")) {
return("");
}
_root.Grab_equalSign = false;
var _local1 = new Array();
_local1 = Base64toBinary(toDecode);
var _local2 = "decode";
var _local3 = XOR_decode(_local2, _local1, _root.secWord);
return(_local3);
}
function Grab_encode(toEncode) {
var _local2 = toEncode;
if ((_local2 == undefined) || (_local2 == "")) {
return("");
}
var _local3 = "encode";
var _local1 = new Array();
_local1 = XOR_encode(_local3, _local2, _root.secWord);
var out = intToBin_enc(_local1);
return(out);
}
function encodeBase64(n) {
var _local1 = base64.charAt(n);
return(_local1);
}
function XOR_encode(code, myString, secWord) {
var len = (myString.length - 1);
var secLen = (secWord.length - 1);
var _local2 = -1;
var _local3;
var charString;
var foo;
var xor_enc_array = new Array();
var _local1 = 0;
while (_local1 <= len) {
_local2++;
if (_local2 > secLen) {
_local2 = 0;
}
_local3 = secWord.charCodeAt(_local2);
charString = myString.charCodeAt(_local1);
foo = _local3 ^ charString;
xor_enc_array[_local1] = foo;
_local1++;
}
return(xor_enc_array);
}
function XOR_decode(code, myArray, secWord) {
var len = (myArray.length - 1);
var secLen = (secWord.length - 1);
var _local2 = -1;
var _local3;
var charString;
var foo;
var encoded = "";
var xor_enc_array = new Array();
var _local1 = 0;
while (_local1 <= len) {
_local2++;
if (_local2 > secLen) {
_local2 = 0;
}
_local3 = secWord.charCodeAt(_local2);
charString = myArray[_local1];
foo = _local3 ^ charString;
encoded = encoded + String.fromCharCode(foo);
_local1++;
}
if (_root.Grab_equalSign) {
encoded = encoded.substring(0, len);
}
return(encoded);
}
function toBinary(val) {
var _local1 = val;
var _local3 = "";
var _local2;
var p;
var bit = 0;
while (bit < 8) {
_local2 = _local1 % 2;
_local2 = _local2.toString();
p = _local2.indexOf(".");
if (p != -1) {
_local2 = _local2.substring(0, p);
}
_local2 = Number(_local2);
if (_local2 == 0) {
_local3 = _local3 + "0";
} else {
_local3 = _local3 + "1";
}
_local1 = _local1 / 2;
_local1 = _local1.toString();
p = _local1.indexOf(".");
if (p != -1) {
_local1 = _local1.substring(0, p);
}
_local1 = Number(_local1);
bit++;
}
var tmp = _local3;
_local3 = "";
var i = 7;
while (i >= 0) {
_local3 = _local3 + tmp.slice(i, i + 1);
i--;
}
return(_local3);
}
function intToBin_enc(codedArray) {
var len = (codedArray.length - 1);
var _local2;
var _local3;
var binString = "";
var _local1 = 0;
while (_local1 <= len) {
_local2 = codedArray[_local1];
_local3 = toBinary(_local2);
binString = binString + _local3;
_local1++;
}
var out = binToBase64(binString);
return(out);
}
function binToBase64(bin) {
var len = bin.length;
var j = 0;
var _local2 = new Array();
var z = 0;
var Base64OutString;
var i = 0;
while (i <= (len - 1)) {
if (j < 6) {
j++;
} else {
j = 1;
z++;
}
if (_local2[z] == undefined) {
_local2[z] = "";
}
_local2[z] = _local2[z] + bin.charAt(i);
i++;
}
if (j == 2) {
needed = 2;
}
if (j == 6) {
needed = 0;
}
if (j == 4) {
needed = 1;
}
var binLen = _local2.length;
var _local1 = 0;
while (_local1 <= (binLen - 1)) {
var elemLen = (_local2[_local1].length - 1);
if (elemLen < 5) {
var addN = (4 - elemLen);
var _local3 = 0;
while (_local3 <= addN) {
if (_local2[_local1] == undefined) {
_local2[_local1] = "";
}
_local2[_local1] = _local2[_local1] + "0";
_local3++;
}
}
_local1++;
}
var out = bin6ToInt(_local2, needed);
return(out);
}
function bin6ToInt(myArray, needed) {
var len = myArray.length;
var n;
var _local2;
var outArray = new Array();
var t = 0;
var digit;
var binLen;
var Base64OutString = "";
var _local1 = 0;
while (_local1 <= (len - 1)) {
n = myArray[_local1];
outArray[_local1] = 0;
digitVal = 1;
binLen = n.length;
var _local3 = binLen - 1;
while (_local3 >= 0) {
_local2 = n.charAt(_local3);
_local2 = Number(_local2);
_local2 = _local2 * digitVal;
if (outArray[_local1] == undefined) {
outArray[_local1] = "";
}
outArray[_local1] = outArray[_local1] + _local2;
digitVal = digitVal * 2;
_local3--;
}
Base64OutString = Base64OutString + encodeBase64(outArray[_local1]);
_local1++;
}
var kk = needed;
while (kk >= 1) {
Base64OutString = Base64OutString + "-";
kk--;
}
return(Base64OutString);
}
function Base64toBinary(sentText) {
var _local3;
var _local2 = new Array();
var binString = "";
var _local1 = 0;
while (_local1 <= (sentText.length - 1)) {
_local3 = sentText.charAt(_local1);
if (_local3 != "-") {
_local2[_local1] = decodeBase64(_local3);
_local2[_local1] = toBinary(_local2[_local1]);
_local2[_local1] = _local2[_local1].substring(2);
binString = binString + _local2[_local1];
} else {
_root.Grab_equalSign = true;
}
_local1++;
}
var decodedArray = new Array();
decodedArray = sixToEightBit(binString);
return(decodedArray);
}
function sixToEightBit(binString) {
var j = 0;
var _local2 = 0;
var _local3 = new Array();
var len = (binString.length - 1);
var _local1 = 0;
while (_local1 <= len) {
if (j < 8) {
j++;
} else {
j = 1;
_local2++;
}
var char = binString.charAt(_local1);
if (_local3[_local2] == undefined) {
_local3[_local2] = "";
}
_local3[_local2] = _local3[_local2] + char;
_local1++;
}
var decodedArray = new Array();
decodedArray = binToInt8(_local3, 0);
return(decodedArray);
}
function binToInt8(myArray, needed) {
var len = myArray.length;
var n;
var _local1;
var outArray = new Array();
var k;
var digit;
var binLen;
var decoded;
var digitVal;
var _local2 = 0;
while (_local2 <= (len - 1)) {
n = myArray[_local2];
digitVal = 1;
binLen = n.length;
var _local3 = binLen - 1;
while (_local3 >= 0) {
_local1 = n.charAt(_local3);
_local1 = Number(_local1);
_local1 = _local1 * digitVal;
if (outArray[_local2] == undefined) {
outArray[_local2] = 0;
}
outArray[_local2] = outArray[_local2] + _local1;
digitVal = digitVal * 2;
_local3--;
}
_local2++;
}
return(outArray);
}
function intToText(decodedArray) {
var len = (decodedArray.length - 1);
var _local3 = "";
var _local2;
var _local1 = 0;
while (_local1 <= len) {
_local2 = decodedArray[_local1];
_local3 = _local3 + String.fromCharCode(_local2);
_local1++;
}
return(_local3);
}
function decodeBase64(c) {
var _local1 = base64.indexOf(c);
return(_local1);
}
function mix_chk(v, shimUrl) {
var _local2 = v;
var u = shimUrl;
if (u == undefined) {
} else if (u.indexOf("http://") != 0) {
} else {
u = u.substring(7);
var n = u.indexOf("/");
u = u.substring(0, n);
_local2 = Grab_decode(_local2);
if ((_local2 == undefined) || (_local2 == "")) {
} else {
_local2 = _local2.split(",");
var len = (_local2.length - 1);
var _local1 = 0;
while (_local1 <= len) {
if (((_local2[_local1] == undefined) || (_local2[_local1] == "")) || (_local2[_local1] == null)) {
return;
}
var _local3 = u.indexOf(_local2[_local1]);
if ((_local3 != -1) && (_local3 != undefined)) {
gotoAndPlay (2);
return;
}
_local1++;
}
}
}
}
function grab_shm_int() {
if ((grab_sec_mc.getBytesTotal() > 0) && (grab_sec_mc.getBytesLoaded() == grab_sec_mc.getBytesTotal())) {
var _local2 = grab_sec_mc._url;
var _local1 = grab_sec_mc.v;
if (((_local1 != undefined) && (_local1 != null)) && (_local1 != "")) {
_root.mix_chk(grab_sec_mc.v, _local2);
clearInterval(grab_int);
}
}
}
function grab_security() {
grab_sec_mc._visible = false;
var _local1 = Math.ceil(Math.random() * 1000);
grab_sec_mc.loadMovie("./mix_license.swf?cacheKiller=" + _local1);
grab_int = setInterval(grab_shm_int, 200);
}
base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._";
secWord = "Gh6789FFgddg87dfj7";
gameID = "32F37484";
if (grab_ccode == undefined) {
grab_ccode = "";
}
Stage.showMenu = false;
grab_security();
stop();
fscommand ("fullscreen", "true");
fscommand ("allowscale", "true");
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "true");
total = 50;
totalLists = 8;
List1 = new Array("Classic Movie Titles", "The Godfather", "The Shawshank Redemption", "Schindler's List", "Citizen Kane", "One Flew Over The Cuckoo's Nest", "Rear Window", "The Empire Strikes Back", "Raiders Of The Lost Ark", "The Usual Suspects", "Pulp Fiction", "North By Northwest", "12 Angry Men", "Lawrence of Arabia", "The Silence of the Lambs", "American Beauty", "Apocalypse Now", "To Kill A Mockingbird", "The Maltese Falcon", "The Bridge on the River Kwai", "Saving Private Ryan", "Monty Python and the Holy Grail", "The Wizard of Oz", "The Great Escape", "A Clockwork Orange", "Reservoir Dogs", "On The Waterfront", "The Sixth Sense", "The Princess Bride", "Full Metal Jacket", "Butch Cassidy and the Sundance Kid", "The Deer Hunter", "The Green Mile", "Cool Hand Luke", "Return Of The Jedi", "Forest Gump", "A Christmas Story", "All Quiet on the Western Front", "Being John Malkovich", "Once Upon A Time in America", "Indiana Jones and the Last Crusade", "Back To The Future", "A Streetcar Named Desire", "Dog Day Afternoon", "This Is Spinal Tap", "Groundhog Day", "A Beautiful Mind", "Good Will Hunting", "Planet Of The Apes", "Snow White and the Seven Dwarfs", "O Brother Where Art Thou?");
List2 = new Array("Classic TV", "Who's The Boss", "Family Ties", "I Love Lucy", "Father Knows Best", "Leave It To Beaver", "My Three Sons", "Gilligan's Island", "Three's Company", "I Dream Of Jeannie", "The Dick Van Dyke Show", "The Mary Tyler Moore Show", "Happy Days", "The Brady Bunch", "Sanford and Son", "Laverne and Shirley", "WKRP In Cincinnati", "The Facts Of Life", "Designing Women", "Saved By The Bell", "The Fresh Prince Of Bel-Air", "Little House on the Prairie", "The Wonder Years", "Touched By An Angel", "Sesame Street", "Falcon Crest", "Knots Landing", "The Love Boat", "Love, American Style", "Fantasy Island", "The Dukes of Hazzard", "Perry Mason", "Law and Order", "The Rockford Files", "Magnum, PI", "Simon and Simon", "Murder, She Wrote", "Six Million Dollar Man", "Mission: Impossible", "Battlestar Galactica", "Quantum Leap", "Saturday Night Live", "The Bob Newhart Show", "The Jeffersons", "All In The Family", "The Simpsons", "Hill Street Blues", "The Twilight Zone", "The Larry Sanders Show", "Star Trek: The Next Generation", "The Tonight Show Starring Johnny Carson");
List3 = new Array("80's Music", "Dirty Diana - Michael Jackson", "The Flame - Cheap Trick", "Nothin' But A Good Time - Poison", "Pour Some Sugar On Me - Def Leppard", "New Sensation - INXS", "Tall Cool One - Robert Plant", "Jump - Van Halen", "La Isla Bonita - Madonna", "With or Without You - U2", "Wanted Dead or Alive - Bon Jovi", "(You Gotta) Fight For Your Right (To Party) - Beastie Boys", "Mountain Music - Alabama", "Cruel Summer - Banarama", "Manic Monday - The Bangles", "Drive - The Cars", "The Reflex - Duran Duran", "She Blinded Me With Science - Thomas Dolby", "Sweet Dreams - Eurythmics", "Relax - Frankie Goes To Hollywood", "We Got The Beat - The Go-Go's", "Shake Your Love - Debbie Gibson", "Maneater - Hall and Oates", "Rebel Yell - Billy Idol", "Faithfully - Journey", "Lick It Up - Kiss", "Girls Just Wanna Have Fun - Cyndi Lauper", "Our House - Madness", "West End Girls - Pet Shop Boys", "Every Breath You Take - The Police", "Round and Round - Ratt", "I Can't Fight This Feeling - REO Speedwagon", "Dancin' On The Ceiling - Lionel Richie", "Tom Sawyer - Rush", "We Will Rock You - Queen", "Electric Avenue - Eddy Grant", "Some Like It Hot - Power Station", "Let's Go Crazy - Prince", "Brass In Pocket - The Pretenders", "Rock You Like A Hurricane - Scorpions", "The Glamourous Life - Sheila E", "Don't You (Forget About Me) - Simple Minds", "True - Spaundau Ballet", "Don't Talk To Strangers - Rick Springfield", "Dancing In The Dark - Bruce Springsteen", "The Stroke - Bill Squier", "Mr Roboto - Styx", "Puttin' On The Ritz - Taco", "Burning Down The House - Talking Heads", "Hold Me Now - Thompson Twins", "We're Not Gonna Take It - Twisted Sister");
List4 = new Array("80's Music", "Total Eclipse Of The Heart - Bonnie Tyler", "Cherry Pie - Warrant", "Faith - George Michael", "Higher Love - Steve Winwood", "In Your Eyes - Peter Gabriel", "Owner Of A Lonely Heart - Yes", "Legs - ZZ Top", "Sweet Child O' Mine - Guns 'N Roses", "These Dreams - Heart", "Dance Hall Days - Wang Chung", "Centerfold - J. Geils Band", "Celebration - Kool & The Gang", "Lovin' Every Minute Of It - Loverboy", "Home Sweet Home - Motley Crue", "Bark At The Moon - Ozzy Osbourne", "Betty Davis Eyes - Kim Carnes", "Shout - Tears for Fears", "Sister Christian - Night Ranger", "Video Killed the Radio Star - The Buggles", "Power Of Love - Huey Lewis & The News", "Beat It - Michael Jackson", "Footloose - Kenny Loggins", "Separate Ways - Journey", "Broken Wings - Mr. Mister", "Rock Of Ages - Def Leppard", "Why Can't This Be Love - Van Halen", "Safety Dance - Men Without Hats", "Every Little Thing She Does Is Magic - The Police", "Eye Of The Tiger - Survivor", "Ghostbusters - Ray Parker, Jr", "One I Love - R.E.M", "And We Danced - The Hooters", "Take Me Home Tonight - Eddie Money", "Voice Carry - Til Tuesday", "The Warrior - Scandal", "Physical - Olivia Newton-John", "Jack and Diane - John Cougar", "Abracadabra - Steve Miller Band", "Waiting For A Girl Like You - Foreigner", "Hold Me - Fleetwood Mac", "Down Under - Men At Work", "Come On Eileen - Dexy's Midnight Runners", "Modern Love - David Bowie", "Sexual Healing - Marvin Gaye", "Mickey - Toni Basil", "Stray Cat Strut - The Stray Cats", "Allentown - Billy Joel", "The End Of The Innocence - Don Henley", "You're the Inspiration - Chicago", "Don't Stop Believin' - Journey");
List5 = new Array("80's Movies", "Stir Crazy", "Coal Miner's Daughter", "Private Benjamin", "Ordinary People", "The Blues Brothers", "On Golden Pond", "For Your Eyes Only", "The Cannonball Run", "Chariots of Fire", "Absence of Malice", "E.T. The Extra-Terrestrial", "An Officer and a Gentleman", "Star Trek II: The Wrath of Khan", "The Best Little Whorehouse in Texas", "Terms of Endearment ", "Trading Places", "Some Kind Of Wonderful", "St. Elmo's Fire", "The Breakfast Club", "Risky Business", "Beverly Hills Cop", "The Karate Kid", "Police Academy", "Romancing The Stone", "Star Trek III: The Search for Spock", "Rambo: First Blood Part II", "The Color Purple", "Spies Like Us", "Crocodile Dundee", "Star Trek IV: The Voyage Home", "Back to School", "Ruthless People", "Ferris Bueller's Day Off", "Three Men and a Baby", "Fatal Attraction", "Good Morning, Vietnam", "The Secret of My Success", "Lethal Weapon", "Dirty Dancing", "The Witches of Eastwick", "The Naked Gun", "Indiana Jones and the Last Crusade", "Look Who's Talking", "Pretty In Pink", "Driving Miss Daisy", "The Little Mermaid", "Honey, I Shrunk The Kids", "Coming to America", "Indiana Jones and the Temple of Doom", "Sixteen Candles");
List6 = new Array("80's Music", "Simply Irresistible - Robert Palmer", "Magic - The Cars", "Hit Me With Your Best Shot - Pat Benatar", "Missing You - John Waite", "Freeze Frame - J. Geils Band", "Heart and Soul - Huey Lewis & the News", "Heaven Is a Place on Earth - Belinda Carlisle", "Out of Touch - Hall & Oates", "Voices Carry - Til Tuesday", "Come on Eileen - Dexy's Midnight Runners", "Abracadabra - Steve Miller Band", "She's a Beauty - The Tubes", "Something So Strong - Crowded House", "Should've Known Better - Richard Marx", "Suddenly Last Summer - The Motels", "Rock This Town - Stray Cats", "Girl Like You - The Smithereens", "Hardest Part - Blondie", "Your Mama Don't Dance - Poison", "I Think We're Alone Now - Tiffany", "Safety Dance - Men Without Hats", "You Keep Me Hangin' On - Kim Wilde", "Right on Track - Breakfast Club", "I Can Dream About You - Dan Hartman", "Everybody Have Fun Tonight - Wang Chung", "You Spin Me 'Round - Dead or Alive", "Safety Dance - Men Without Hats", "Warrior - Patty Smyth", "Missing You - John Waite", "Once Bitten Twice Shy - Great White", "You've Got Another Thing Comin' - Judas Priest", "Nothin' But a Good Time - Poison", "Yankee Rose - David Lee Roth", "We're Not Gonna Take It - Twisted Sister", "Here I Go Again - Whitesnake", "Seventeen - Winger", "Wait - White Lion", "Kiss Me Deadly - Lita Ford", "Lay It Down - Ratt", "Big Bottom - Spinal Tap", "Still Of The Night - Whitensake", "Cherry Pie - Warrant", "Up All Night - Slaughter", "Armageddon It - Def Leppard", "Hot For Teacher - Van Halen", "When You Close Your Eyes - Night Ranger", "I Want To Know What Love Is - Foreigner", "Cuts Like A Knife - Bryan Adams", "Back In Black - AC/DC");
List7 = new Array("70's Music", "My Sharona - Knack", "Bad Girls - Donna Summer", "Le Freak - Chic", "Da Ya Think I'm Sexy - Rod Stewart", "Reunited - Peaches & Herb", "I Will Survive - Gloria Gaynor", "Y.M.C.A. - Village People", "Ring My Bell - Anita Ward", "Too Much Heaven - Bee Gees", "Fire - Pointer Sisters", "Tragedy - Bee Gees", "Heart Of Glass - Blondie", "Shadow Dancing - Andy Gibb", "Night Fever - Bee Gees", "You Light Up My Life - Debby Boone", "Stayin' Alive - Bee Gees", "Kiss You All Over - Exile", "How Deep Is Your Love - Bee Gees", "(Love Is) Thicker Than Water - Andy Gibb", "Three Times A Lady - Commodores", "Grease - Frankie Valli", "Three Times A Lady - Commodores", "Lay Down Sally - Eric Clapton", "Just The Way You Are - Billy Joel", "Tonight's The Night (Gonna Be Alright) - Rod Stewart", "I Just Want To Be Your Everything - Andy Gibb", "Higher And Higher - Rita Coolidge", "I'm Your Boogie Man - K.C. & The Sunshine Band", "Dancing Queen - Abba", "You Make Me Feel Like Dancing - Leo Sayer", "Margaritaville - Jimmy Buffet", "Hotel California - Eagles", "Silly Love Songs - Wings", "Don't Go Breaking My Heart - Elton John & Kiki Dee", "Play That Funky Music - Wild Cherry", "Fifty Ways To Leave Your Lover - Paul Simon", "Play That Funky Music - Wild Cherry", "Sara Smile - Daryl Hall & John Oates", "Afternoon Delight - Starland Vocal Band", "I Write The Songs - Barry Manilow", "Get Close - Seals & Crofts", "Bohemian Rhapsody - Queen", "Love Will Keep Us Together - Captain & Tennille", "Rhinestone Cowboy - Glen Campbell", "Philadelphia Freedom - Elton John", "Before The Next Teardrop Falls - Freddy Fender", "Fame - David Bowie", "Laughter In The Rain - Neil Sedaka", "One Of These Nights - Eagles", "Thank God I'm A Country Boy - John Denver");
List8 = new Array("70's Music", "Jive Talkin' - Bee Gees", "Best Of My Love - Eagles", "Kung Fu Fighting - Carl Douglas", "Ballroom Blitz - Sweet", "Another Somebody Done Somebody Wrong Song - B.J. Thomas", "He Don't Love You - Tony Orlando & Dawn", "The Way We Were - Barbra Streisand", "Seasons In The Sun - Terry Jacks", "The Streak - Ray Stevens", "Bennie And The Jets - Elton John", "Jungle Boogie - Kool & The Gang", "Sunshine On My Shoulder - John Denver", "Hooked On A Feeling - Blue Swede", "The Streak - Ray Stevens", "Bad Bad Leroy Brown - Jim Croce", "Killing Me Softly With His Song - Roberta Flack", "Let's Get It On - Marvin Gaye", "Why Me - Kris Kristofferson", "Crocodile Rock - Elton John", "You're So Vain - Carly Simon", "Touch Me In The Morning - Diana Ross", "Touch Me In The Morning - Diana Ross", "Delta Dawn - Helen Reddy", "You Are The Sunshine Of My Life - Stevie Wonder", "The First Time Ever I Saw Your Face - Roberta Flack", "American Pie - Don McLean", "Candy Man - Sammy Davis Jr.", "Baby Don't Get Hooked On Me - Mac Davis", "Let's Stay Together - Al Green", "My Ding-A-Ling - Chuck Berry 81", "Joy To The World - Three Dog Night", "One Bad Apple - Osmonds", "How Can You Mend A Broken Heart - Bee Gees", "Go Away Little Girl - Donny Osmond", "Take Me Home Country Roads - John Denver", "Me And Bobby Mcgee - Janis Joplin", "You've Got A Friend - James Taylor", "Brown Sugar - Rolling Stones", "The Night They Drove Old Dixie Down - Joan Baez", "Bridge Over Troubled Water - Simon & Garfunkel", "(They Long To Be) Close To You - Carpenters", "American Woman - Guess Who", "No Sugar Tonight - Guess Who", "Raindrops Keep Fallin' On My Head - B.J. Thomas", "War - Edwin Starr", "Ain't No Mountain High Enough - Diana Ross", "I'll Be There - Jackson 5", "Let It Be - Beatles", "Everything Is Beautiful - Ray Stevens", "ABC - Jackson 5");
Frame 2
function loadWords() {
}
function tryLetter(L) {
found = 0;
x = 1;
while (x <= 4) {
y = 1;
while (y <= 17) {
if (eval (((("_root.line" + x) + ".b") + y) + ".letter").toLowerCase() eq L) {
found = 1;
Set("/:score", /:score + 1);
puzzleCount = puzzleCount + 1;
eval ((("_root.line" + x) + ".b") + y).gotoAndStop("on");
}
y++;
}
x++;
}
if (puzzleCount >= puzzleLength) {
_root.pig.gotoAndPlay("escape");
_root.gotoAndPlay("solved");
} else if (found == 1) {
_root.farmer.gotoAndPlay("g1");
_root.pig.gotoAndPlay("g" + (random(3) + 1));
} else {
_root.checks.nextFrame();
wrongCount = wrongCount + 1;
if (wrongCount >= 4) {
gotoAndPlay ("notsolved");
_root.farmer.gotoAndPlay("kill");
} else {
_root.farmer.gotoAndPlay("b" + (random(3) + 1));
_root.pig.gotoAndPlay("b1");
}
}
}
function setPuzzle() {
levelDis = levelDis + 1;
puzzleCount = 0;
wrongCount = 0;
if ((count == 0) or (count >= (total - 1))) {
a = new Array(total);
i = 1;
while (i <= total) {
R = random(total);
if (a[R] != null) {
R = random(total);
if (a[R] != null) {
R = 0;
while (R <= total) {
if (a[R] == null) {
break;
}
R++;
}
}
}
a[R] = i;
i++;
}
x = 0;
while (x <= (total - 1)) {
x = x + 1;
Set("/:puzzle" add x, a[x]);
}
}
if (count >= total) {
count = 1;
} else {
count = count + 1;
}
currentPuzzle = "";
x = 1;
while (x <= 10) {
Set("word" + x, "");
x++;
}
listToUse = random(totalLists) + 1;
subject = eval ("List" + listToUse)[0];
currentPuzzle = eval ("List" + listToUse)[eval ("/:puzzle" add count)];
wordN = 1;
x = 1;
while (x <= length(currentPuzzle)) {
if ((substring(currentPuzzle, x, 1)) eq " ") {
wordN = wordN + 1;
} else if ((substring(currentPuzzle, x, 1)) eq "") {
x = 100;
} else {
Set("word" + wordN, eval ("word" + wordN) + (substring(currentPuzzle, x, 1)));
}
x++;
}
totalWords = wordN;
puzzleLength = length(currentPuzzle) - (wordN - 1);
line = 1;
letterCount = 1;
letterCount2 = 0;
w = 0;
x = 1;
while (x <= totalWords) {
if ((length(eval ("word" + x)) + letterCount) <= 17) {
} else {
letterCount = 1;
line = line + 1;
}
w = w + 1;
y = 0;
letterCount2 = length(eval ("word" + x)) + letterCount;
n = letterCount;
while (n <= letterCount2) {
y = y + 1;
Set(((("_root.line" + line) + ".b") + n) + ".letter", substring(eval ("word" + w), y, 1));
if (n >= letterCount2) {
y = y + 1;
Set(((("_root.line" + line) + ".b") + n) + ".letter", "");
}
n++;
}
letterCount = letterCount2 + 1;
x++;
}
var goodKeys = " qwertyuiopasdfghjklzxcvbnmQWERTYUIOPLKJHGFDSAZXCVBNM";
x = 1;
while (x <= 4) {
y = 1;
while (y <= 17) {
temp = eval (((("_root.line" + x) + ".b") + y) + ".letter");
if (temp eq "") {
eval ((("_root.line" + x) + ".b") + y).gotoAndStop(2);
}
y++;
}
x++;
}
}
play();
Frame 3
loadWords();
Frame 11
if (_framesloaded <= 70) {
gotoAndPlay(_currentframe - 2);
}
Frame 13
stop();
Frame 15
stop();
Frame 50
_root.createEmptyMovieClip("sender", 24210);
sender.gcode = _root.gcode;
sender.gameID = _root.gameID;
if (score < 5) {
score = 5;
}
sender.score = score;
sender.getURL("game.cfm", "_self", "POST");
stop();
Frame 54
subject = "";
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "A";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "B";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "C";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "D";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "E";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "F";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "G";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "H";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "I";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "J";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "K";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "L";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "M";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "N";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "O";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "P";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "Q";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "R";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "S";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "T";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "U";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "V";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "W";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "X";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "Y";
}
Instance of Symbol 108 MovieClip in Frame 54
onClipEvent (load) {
letter = "Z";
}
Frame 55
stop();
setPuzzle();
Frame 99
gotoAndPlay ("dead");
Frame 128
loadWords();
Frame 132
bScore = puzzleLength * (5 - wrongCount);
score = score + bScore;
Frame 195
gotoAndPlay ("start");
Frame 275
_root.createEmptyMovieClip("sender", 24210);
sender.gcode = _root.gcode;
sender.gameID = _root.gameID;
if (score < 5) {
score = 5;
}
sender.score = score;
sender.getURL("game.cfm", "_self", "POST");
stop();
Frame 276
_root.createEmptyMovieClip("sender", 24210);
sender.gcode = _root.gcode;
sender.gameID = _root.gameID;
if (score < 5) {
score = 5;
}
sender.score = score;
sender.getURL("game.cfm", "_self", "POST");
stop();
Symbol 24 Button
on (release) {
Set("/:min", 7);
Set("/:sec", 59);
Set("/:sec2", 59);
count = 0;
countB = 0;
score = 0;
levelDis = 0;
gotoAndPlay ("upsell");
}
Symbol 40 Button
on (press) {
getURL ("http://www.flowgo.com/page.cfm?lk=40258", "_blank");
}
Symbol 70 MovieClip Frame 1
ml.onRelease = function () {
_root.gotoAndPlay("start");
};
dl.onRelease = function () {
var _local1 = _root;
trace(_local1.gameID);
getURL ("/download/go.cfm?game=" + _local1.gameID, "_self");
txt = "Start Game!";
dl.onPress = function () {
_root.gotoAndPlay("start");
};
};
Symbol 103 MovieClip Frame 17
Set("/:sec2", /:sec2 - 1);
if ((/:sec2 < 10) and (/:sec2 >= 0)) {
Set("/:sec", "0" + /:sec2);
} else {
Set("/:sec", /:sec2);
}
if (((/:sec2 <= 10) and (/:min == 0)) and (/:sec2 > 0)) {
gotoAndPlay (18);
} else if ((/:sec2 == -1) and (/:min > 0)) {
Set("/:sec2", 60);
Set("/:sec", /:sec2);
Set("/:min", /:min - 1);
gotoAndPlay (2);
} else if ((/:sec2 <= -1) and (/:min == 0)) {
gotoAndPlay (2);
Set("/:min", 0);
Set("/:sec", "00");
_root.gotoAndPlay("time");
} else {
gotoAndPlay (2);
}
Symbol 103 MovieClip Frame 19
gotoAndPlay (2);
Symbol 105 Button
on (release) {
_root.tryLetter(letter.toLowerCase());
nextFrame();
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 5
stop();
Symbol 114 MovieClip Frame 5
var goodKeys = " qwertyuiopasdfghjklzxcvbnmQWERTYUIOPLKJHGFDSAZXCVBNM";
if (goodKeys.indexOf(letter) < 0) {
gotoAndStop ("on");
Set("/:puzzleCount", /:puzzleCount + 1);
} else {
stop();
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 5
stop();
Symbol 122 MovieClip Frame 5
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 8
stop();
Symbol 153 MovieClip Frame 28
stop();
Symbol 153 MovieClip Frame 46
stop();
Symbol 153 MovieClip Frame 57
stop();
Symbol 153 MovieClip Frame 75
stop();
Symbol 153 MovieClip Frame 94
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 31
stop();
Symbol 189 MovieClip Frame 75
stop();
Symbol 189 MovieClip Frame 85
stop();
Symbol 189 MovieClip Frame 101
_root.pig.gotoAndPlay("kill");
Symbol 189 MovieClip Frame 105
stop();
Symbol 194 Button
on (release) {
gotoAndStop (2);
}
Symbol 195 Button
on (release) {
gotoAndStop (1);
}
Symbol 201 Button
on (release) {
gotoAndStop (1);
}
Symbol 202 MovieClip Frame 1
stop();