ࡱ> Root EntryRoot Entryp|YrRASHx/#ContentsE JPage 1!GSymbol 4@  "#$%&'()*+,-./0123456789:;<=>?@ABCDFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijSymbol 3 Symbol 21Symbol 1W!CPicPage CPicLayer CPicFrameFf3ffs0000P1. 2PP1Mp&00%P PP,003+14%?J04Y0??44HX600hрp00x&(ЄA81a 0B8tY}8i1csK3p3p1JW<44E(D34}I|SD%ڀ%spkt00c?l=stop();Kf3ff00001. 21M&00% ,0N%4@:~4B\;4A=A;4B\~;.<V0 00hр00&(ЄA81a 0B8tY}8i1cK3p07Àc=h.*/*r4BՀq/0 /Հ 6+*Nhp1Jڀ%%%kt00c?,Qf3ff00001. 21M&00% ,0N%4@:~4B\;4A=A;4B\~;.<Vh00# 00hр00&(ЄA81a 0B8tY}8i1cK3p07Àc=h.*/*r4BՀq/0 /Հ 6+*NhpDp `ڀ%%%kt00c?rXf3ff00001. 21M&00% ,0N%4@:~4B\;4A=A;4B\~;.<V0Ѐ00W00# 00hр00&(ЄA81a 0B8tY}8i1cK3p07À^*Nhc=h.*/*r4BՀq/0 /Հ 6+\apDp `ڀ%%%kt00c?Ri]f3ff00001. 21M&00% ,0N%4@:~4B\;4A=A;4B\~;.<V0Ѐ00W00,0~0pz# 00hр00&(ЄA81a 0B8tY}8i1cK3p07Àc=h.*/*r4BՀq/0 /Հ 6+*NhpDp _%ڀ%p t00c?_af3ff00001. 21M&00% ,0N%4@:~4B\;4A=A;4B\~;.<V0Ѐ00W0/ɀ0@0,0~0pz# 00hр00&(ЄA81a 0B8tY}8i1cK3p07Àc=h.*/*r4BՀq/0 /Հ 6+*NhpDp %ڀ%pkt00c?If3ff00001. 21M&00% ,0N%4@:~4B\;4A=A; s,RZ+.<V0Ѐ00W00ɀ0R0/ɀ0@0,0~0pz# 00hр00&(ЄA81a 0B8tY}8i1c>p0'X7 0z`N`(/,("'X7 `0 04o(/,( 0n=:=.^%9%%('oY@%U\K3pM ) ,2*Nhc=h.b! $ F$-R S  07ÀW  |y  ^ F##݀#t 8+t   %C(O  kpmm Y  "J wQ0DpDp;a J^!!bW)#C`ڀ%%Mn0L000*p078.M{2%(%`9a11%t00c@ m3*0.$@ (/,(H7 0z`0p0'X3x0.$nta0ZLd 0`04 & $ $ 0h))1-?m Layer 1OO  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMCPicPage CPicLayer CPicFrame0d0ddd0dd02200202220? Layer 1OOCPicText Ad@f_ displayletter @Arial"(1|2|3|4?  Layer 23CPicPage CPicLayer CPicFrameCPicText |@ displayletter @Aharoni(letterP00(?< Layer 1OOCPicPage CPicLayer CPicFramej0000x ?Z Layer 2370+44\4~4AG02_ 4'0N&H,NL -L4\ 1)0N0m<c;m4<~z4nz?0v 9:Y=&444CHH{2_ 4'0O00+44\4~4AG0iE&E%Q&-L%B'BC&B7-6.l0X00$I000S0N:B5'cL|( C:/w4Oa202{O|!" + 3,300S0NT+*+*+%E&E%Q&-L+4A0+a4X8w4RI~4xX48r0300|0NfM,LL2Q3>00 0N*1_ 4'0N00+44\4~4AG0iE&E%Q&-L%300~0 00@080?Afff87N00+44\4~4AG02_ 4'CH,NL -L& 1)0N0m<c;m4<~z4nz?0v 9:Y=&444CHH{4\F2_ 4'0O00+44\4~4AG0iE&E%Q&-L%KB'BC&B300S0N:B5'cL|(46.l0X00$I\T C:/w4Oa202{O|!" + 3,3r00S0NxK*+*+%E&E%Q&-LA0+a4X8w4RI~4xX48r0300|0N4jM,LL2Q3{00 0N*1_ 4'0N00+44\4~4AG0iE&E%Q&-L%300~0 00@080?& Layer 1OOCPicPage CPicLayer CPicFrame?ge#//Hangman Game by John Bezanis for swfspot.com //Array containing all of the answers gameanswers = ['Frosted Flakes', 'Cheerios', 'Honey Combs', 'Lucky Charms', 'Honey Bunches of Oats', 'Apple Jacks', 'Rice Krispies', 'Fruit Loops', 'Count Chocula', 'Boo Berry']; //Attach the missgraphic this.attachMovie('missgraphic','missgraphic',this.getNextHighestDepth(), {_x:175,_y:10}); //Function that begins a new game function newGame() { //select a random answer from the array answer = gameanswers[Math.floor(Math.random()*gameanswers.length)]; //Add all 26 letter buttons to the stage for (curindex=0; curindex<26; curindex++) { //Use the character code for each letter to attach the letter attachMovie('guessletter', 'guess'+String.fromCharCode(curindex+65), this.getNextHighestDepth()); //set the x position according to its position in the alphabet eval('guess'+String.fromCharCode(curindex+65))._x = (curindex%13-6.5)*(eval('guess'+String.fromCharCode(curindex+65))._width+3)+Stage.width/2; //set the y position according to its position in the alphabet eval('guess'+String.fromCharCode(curindex+65))._y = Stage.height-(2-Math.floor(curindex/13))*(eval('guess'+String.fromCharCode(curindex+65))._height+3); //set the character display to the current letter in the loop eval('guess'+String.fromCharCode(curindex+65)).displayletter = String.fromCharCode(curindex+65); //When the player clicks the button, call the pressLetter function with the letter set eval('guess'+String.fromCharCode(curindex+65)).onPress = function() { //process the letter pressLetter(this.displayletter); //remove the button from the stage removeMovieClip(this); }; } //Determine how many characters are going to be printed on each line. //Keep the letters of words from being split onto different lines //start the row count at 0 curline = 0; //the start position in the answer is 0 linestart = 0; //store the length of each line into an array var linelengths:Array = new Array(); //traverse all of the characters in the answer for (linepos=0; linepos<length(answer); linepos++) { //Maximum length of each formatted line blanklinelength = 25; //check if the linelength is smaller than the max line length or the first word on the line is longer than the max if ((linepos-linestart)<blanklinelength || linelengths[curline] == undefined) { //if the current character is a space, set a marker so we know how long the line should be //it may be updated if another word fits within the current line if (answer.charAt(linepos) == ' ') { //update the length of the current line linelengths[curline] = linepos-linestart+1; } //else the line has reached its limit, so move to the next line and start at the end of the last word } else { //store where to start the next line linestart = linestart+linelengths[curline]; //move to that position linepos = linestart; //move to the next line curline++; } } //set the length of the last line linelengths[curline] = length(answer)-linestart; //Now we are going to add the blank holders to the stage //start at the first row currow = 0; //set the position to 0 curpos = 0; //Loop through the answer and add the blank holders to the stage for (curindex=0; curindex<length(answer); curindex++) { //If the current position is a space, do not create a blank holder if (answer.charAt(curindex) != ' ') { //add the letter holder attachMovie('letterholder', 'holder'+curindex, this.getNextHighestDepth()); //set the x position relative to its position on the line and the number of characters on the line eval('holder'+curindex)._x = Stage.width/2+((curpos-(linelengths[currow]/2))*20); //set the y position according to the currow eval('holder'+curindex)._y = 280+(currow-(linelengths.length/2))*20; //if the current character is not A-Z, display it if (!hiddenCharacter(answer.charAt(curindex))) { //display the character, since it is a special character eval('holder'+curindex).displayletter = answer.charAt(curindex); } } //If we are at the end of a row, go to the next row if (++curpos>=linelengths[currow]) { //move to the next row currow++; //reset the position to the left curpos = 0; } } } //This function checks if the input character is an A-Z character function hiddenCharacter(curchar) { //Set of characters that aren't revealed hiddenchars = 'abcdefghijklmnopqrstuvwxyz'; //Loop through the character set for (charindex=0; charindex<length(hiddenchars); charindex++) { //If the input character is in the list, hide it if (curchar.toLowerCase() == hiddenchars.charAt(charindex)) { return true; } } //character is not A-Z, so display it return false; } //function called each time a letter button is pressed function pressLetter(pressedletter) { //check if the pressed letter is in the answer if (!inAnswer(pressedletter)) { //update the graphic to the next image missgraphic.gotoAndStop(missgraphic._currentframe+1); //check if the last frame has been reached if (missgraphic._currentframe == missgraphic._totalframes) { //game lost. remove all of the remaining buttons for (curindex=0; curindex<26; curindex++) { //if the letter button exists, remove it if (eval('guess'+String.fromCharCode(curindex+65))) { //delete the button. 65 is the ascii character A removeMovieClip('guess'+String.fromCharCode(curindex+65)); } } //the game has been lost, so fill in all of the blank spaces with the answers in red for (curindex=0; curindex<length(answer); curindex++) { //if there is a space or the letter has been guessed already do nothing if (answer.charAt(curindex) != ' ' && eval('holder'+curindex).displayletter == undefined) { //the letter has not been guesed, so reveal it and make it red eval('holder'+curindex).displayletter = answer.charAt(curindex); eval('holder'+curindex).letter.textColor = '0xFF0000'; } } //Display the button to start a new game showPlayAgainButton(); } } } //This function checks to see if a guessed letter is in the answer function inAnswer(pressedletter) { //initialize goodletter to false. //we are going to loop through the answer to see if the guessed letter is in the answer goodletter = false; //check if there are any letters in the answer that haven't been guessed yet blankspace = 0; //loop through the answer for (curindex=0; curindex<length(answer); curindex++) { //check if the guessed letter is the character in the current position of the answer if (answer.charAt(curindex).toLowerCase() == pressedletter.toLowerCase()) { //display the character eval('holder'+curindex).displayletter = answer.charAt(curindex); //setting goodletter to true prevents the image from going to the next frame goodletter = true; //if the character at the current position hasn't been guessed, reveal it } else if (answer.charAt(curindex) != ' ' && eval('holder'+curindex).displayletter == undefined) { //there is at least one letter that hasn't been guessed blankspace = 1; } } //if every letter has been guessed, the player wins if (!blankspace) { //remove all of the guess buttons for (curindex=0; curindex<26; curindex++) { //if the button at the current position exists, remove it if (eval('guess'+String.fromCharCode(curindex+65))) { removeMovieClip('guess'+String.fromCharCode(curindex+65)); } } //loop through all of the characters and set their color to green for (curindex=0; curindex<length(answer); curindex++) { //if the current character isn't a space, set its color to green if (answer.charAt(curindex) != ' ') { eval('holder'+curindex).letter.textColor = '0x00FF00'; } } //show the play again button showPlayAgainButton(); } //return whether or not the guessed letter exists in the answer return (goodletter); } //Show the button to play again function showPlayAgainButton() { //attach the button attachMovie('playagain', 'playagain', this.getNextHighestDepth()); //move it to the middle of the screen playagain._x = Stage.width/2; //move it towards the bottom playagain._y = 370; //Add a listener for when the button is pressed. When pressed, start a new game playagain.onPress = function() { //Reset the hangman graphic to the first frame missgraphic.gotoAndStop(1); //loop through all of the letter holders of the answer on the screen and delete them for (curindex=0; curindex<length(answer); curindex++) { //if the current position in the answer isn't a blank, remove it if (answer.charAt(curindex) != ' ') { removeMovieClip('holder'+curindex); } } //start a new game newGame(); //delete this button removeMovieClip('playagain'); }; } //Start a new game when the applet loads newGame(); Layer 1OO? CDocumentPagePage 1Scene 1BH p5HFSymbol 4 playagain=H playagainSymbol 1HSymbol 3 letterholderH letterholderSymbol 1HSymbol 2 guesslettermH guessletterSymbol 1KHSymbol 1 missgraphicFH  missgraphicSymbol 1bH*@hhhhhlegacyLineSpacing0%PublishFormatProperties::htmlFileName Untitled-1"PublishHtmlProperties::StartPaused0Vector::AS3 Package Paths PublishRNWKProperties::speed256K0!PublishGifProperties::PaletteNamePublishFormatProperties::jpeg0PublishHtmlProperties::Loop1PublishProfileProperties::nameDefaultVector::Debugging Permitted0Vector::UseNetwork0"PublishQTProperties::MatchMovieDim1 PublishQTProperties::AlphaOption PublishQTProperties::LayerOption4PublishHtmlProperties::UsingDefaultAlternateFilename1PublishHtmlProperties::Units0%PublishHtmlProperties::showTagWarnMsg1Vector::External Player&PublishRNWKProperties::singleRateAudio0&PublishRNWKProperties::speedSingleISDN0$PublishPNGProperties::OptimizeColors1PublishQTProperties::Width550%PublishFormatProperties::projectorMac0'PublishFormatProperties::gifDefaultName1&PublishFormatProperties::flashFileNameUntitled-1.swfVector::Package PathsVector::Compress Movie1#PublishRNWKProperties::flashBitRate1200%PublishRNWKProperties::mediaCopyright(c) 2000PublishGifProperties::Smooth1PublishFormatProperties::html1$PublishFormatProperties::pngFileNameUntitled-1.png(PublishHtmlProperties::VerticalAlignment1PublishHtmlProperties::Quality4Vector::FireFox0"PublishRNWKProperties::exportAudio1 PublishRNWKProperties::speed384K0!PublishRNWKProperties::exportSMIL1"PublishGifProperties::DitherOption-PublishFormatProperties::generatorDefaultName1!PublishHtmlProperties::DeviceFont0Vector::Override Sounds0'PublishRNWKProperties::mediaDescription"PublishPNGProperties::FilterOptionPublishFormatProperties::gif0(PublishFormatProperties::jpegDefaultName1(PublishFormatProperties::rnwkDefaultName1*PublishFormatProperties::generatorFileNameUntitled-1.swtVector::Template02PublishHtmlProperties::VersionDetectionIfAvailable0*PublishHtmlProperties::HorizontalAlignment1"PublishHtmlProperties::DisplayMenu1Vector::Protect0Vector::Quality80PublishJpegProperties::DPI4718592PublishGifProperties::Interlace0"PublishGifProperties::DitherSolids0PublishPNGProperties::Smooth1PublishPNGProperties::BitDepth24-bit with AlphaPublishQTProperties::Flatten1#PublishFormatProperties::qtFileNameUntitled-1.movPublishRNWKProperties::speed28K1!PublishRNWKProperties::mediaTitle$PublishRNWKProperties::mediaKeywordsPublishGifProperties::Width550PublishGifProperties::Loop1PublishFormatProperties::flash1PublishJpegProperties::Quality80$PublishRNWKProperties::realVideoRate100000$PublishRNWKProperties::speedDualISDN0#PublishGifProperties::MatchMovieDim1#PublishGifProperties::PaletteOption"PublishPNGProperties::DitherOption0PublishFormatProperties::projectorMacDefaultName1'PublishFormatProperties::pngDefaultName1-PublishFormatProperties::projectorWinFileNameUntitled-1.exePublishHtmlProperties::Align0!PublishProfileProperties::version1Vector::Package Export Frame1$PublishJpegProperties::MatchMovieDim1#PublishPNGProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption)PublishFormatProperties::flashDefaultName1%PublishFormatProperties::jpegFileNameUntitled-1.jpgPublishHtmlProperties::Width550PublishHtmlProperties::Height400Vector::Omit Trace Actions0Vector::Debugging Password"PublishJpegProperties::Progressive0"PublishPNGProperties::DitherSolids0#PublishQTProperties::PlayEveryFrame0PublishFormatProperties::png0PublishFormatProperties::rnwk0(PublishFormatProperties::htmlDefaultName1-PublishFormatProperties::projectorMacFileNameUntitled-1.hqx2PublishHtmlProperties::UsingDefaultContentFilename1!PublishHtmlProperties::WindowMode0'PublishHtmlProperties::TemplateFileName Default.htmlVector::TopDown0Vector::DeviceSound0PublishJpegProperties::Size0PublishGifProperties::Height400PublishPNGProperties::Interlace0"PublishFormatProperties::generator0&PublishHtmlProperties::ContentFilenamephotoreel_content.html(PublishHtmlProperties::AlternateFilenamephotoreel_alternate.html+PublishHtmlProperties::OwnAlternateFilenameVector::Report0PublishRNWKProperties::speed56K1PublishGifProperties::LoopCount'PublishGifProperties::TransparentOptionPublishGifProperties::MaxColors255%PublishPNGProperties::RemoveGradients0PublishQTProperties::Height400PublishFormatProperties::qt0Vector::Stream Compress7Vector::Event Format0Vector::Version8"PublishRNWKProperties::audioFormat0$PublishGifProperties::OptimizeColors10PublishFormatProperties::projectorWinDefaultName1PublishHtmlProperties::Scale0Vector::Event Compress7Vector::ActionScriptVersion2Vector::StreamUse8kSampleRate0Vector::EventUse8kSampleRate0PublishJpegProperties::Height400 PublishRNWKProperties::speed512K0%PublishGifProperties::RemoveGradients0PublishPNGProperties::Width550PublishPNGProperties::Height400&PublishFormatProperties::qtDefaultName1$PublishFormatProperties::gifFileNameUntitled-1.gif"PublishHtmlProperties::VersionInfo@8,0,0,0;7,0,0,0;6,0,0,0;5,0,0,0;4,0,0,0;3,0,0,0;2,0,0,0;1,0,0,0;Vector::Stream Format0PublishJpegProperties::Width550"PublishRNWKProperties::exportFlash1&PublishRNWKProperties::showBitrateDlog1(PublishRNWKProperties::speedCorporateLAN0"PublishRNWKProperties::mediaAuthorPublishGifProperties::Animated0&PublishGifProperties::TransparentAlpha128!PublishPNGProperties::Transparent0!PublishPNGProperties::PaletteName*PublishQTProperties::UseQTSoundCompression0PublishQTProperties::Looping0%PublishFormatProperties::defaultNames1%PublishFormatProperties::projectorWin0%PublishFormatProperties::rnwkFileNameUntitled-1.smil,PublishHtmlProperties::UsingOwnAlternateFile0PublishPNGProperties::MaxColors255%PublishQTProperties::ControllerOption0"PublishQTProperties::PausedAtStart0 CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]0"PublishQTProperties::QTSndSettingsCQTAudioSettingsh<?xml version="1.0" encoding="UTF-16" standalone="no" ?> <mobileSettings> <contentType id="standalonePlayer" name="Standalone Player"/> <testDevices/> </mobileSettings> X