ࡱ> Root Entryp|YrRASHˉCXContents&"Page 11Symbol 1 %'(*+,-./0BCDEFGHIRoot Entryp|YrRASHpCXContents1"Page 11Symbol 1 !"#$)23456789:;<=>?@AJCPicPage CPicLayer CPicFrameCPicText {$W|@ TextField2 Arialpa flash quiz  TS$X@Arial(welcome to the flash quiz. in this version of the quiz, the questions are hard-wired into the movie using traditional static text. the number of questions and answers can not be altered programmatically. see chapter 1 of Arial(actionscript: the definitiveArial( Arial(guideArial( for a walkthrough of the code. w @Arialpversion 1 (for flash mx) 8+)@_sans(? CPicShapeL hh'&h'&0ـhـ0ހ%Y4X$%%%Y4X%%$  0ـhـ0hh'&h'&V$%Y4X$%%%Y4X%% $%Y4X$%%%Y4X%%Vh'&h'&0ـhـ0h@ 000308@ 3Dھ0v0@0@303? housingOO CPicButton dEN choice1_btn d  choice2_btnR Rd0 choice3_btn? ?  choice buttons H @Arialq.1  !@ Arialpversion 1  !@ Arialpversion 2  \!@ Arialpversion 3 # @Arial:: ,hArialwhen were movie clips introduced into flash? ?V?2 question 1O ?  H @Arialq.2 A @Arial:: *hArialwhen was mp3 audio support added to flash?  !@ Arialpversion 3  !@ Arialpversion 4  \!@ Arialpversion 5 ?u ?P# question 2OO?"  q y@Arialpthank you for taking the quiz ?@K quiz endOO ?initxX ?q26k ?quizEnd\ labelsO ?>//--------------------------------------------------- // Multiple Choice Quiz, By Colin Moock // Basic Version for Flash MX // For the accompanying tutorial, see Chapter 1 of // 'ActionScript for Flash MX: The Definitive Guide' //--------------------------------------------------- // Init main timeline variables. var q1answer; // User's answer for question 1 var q2answer; // User's answer for question 2 var totalCorrect = 0; // Counts number of correct answers // Stop the movie at the first question. stop(); // Code executed when button 1 is pressed. choice1_btn.onRelease = function () { this._parent.q1answer = 1; this._parent.gotoAndStop("q2"); }; // Code executed when button 2 is pressed. choice2_btn.onRelease = function () { this._parent.q1answer = 2; this._parent.gotoAndStop("q2"); }; // Code executed when button 3 is pressed. choice3_btn.onRelease = function () { this._parent.q1answer = 3; this._parent.gotoAndStop("q2"); };  ?I// Code executed when button 1 is pressed. choice1_btn.onRelease = function () { this._parent.q2answer = 1; this._parent.gotoAndStop("quizEnd"); }; // Code executed when button 2 is pressed. choice2_btn.onRelease = function () { this._parent.q2answer = 2; this._parent.gotoAndStop("quizEnd"); }; // Code executed when button 3 is pressed. choice3_btn.onRelease = function () { this._parent.q2answer = 3; this._parent.gotoAndStop("quizEnd"); };  ?2_// Tally up user's correct answers if (q1answer == 3) { totalCorrect = totalCorrect + 1; } if (q2answer == 2) { totalCorrect++; } // Create an onscreen text field do  CPicPage CPicLayer CPicFrameH0*0*0?g 38R00*0*ssss4sx?J CPicShape3sH0*0*0?l= 333sH0*0*0?, Layer 1OCPicPage CPicLayer CPicFrameCPicText {$W|@ TextField2 Arialpa flash quiz  TS$X@Arial(welcome to the flash quiz. in this version of the quiz, the questions are hard-wired into the movie using traditional static text. the number of questions and answers can not be altered programmatically. see chapter 1 of Arial(actionscript: the definitiveArial( Arial(guideArial( for a walkthrough of the code. w @Arialpversion 1 (for flash mx) 8+)@_sans(? CPicShapeL hh'&h'&0ـhـ0ހ%Y4X$%%%Y4X%%$  0ـhـ0hh'&h'&V$%Y4X$%%%Y4X%% $%Y4X$%%%Y4X%%Vh'&h'&0ـhـ0h@ 000308@ 3Dھ0v0@0@303? housingOO CPicButton dEN choice1_btn d  choice2_btnR Rd0 choice3_btn? ?  choice buttons H @Arialq.1  !@ Arialpversion 1  !@ Arialpversion 2  \!@ Arialpversion 3 # @Arial:: ,hArialwhen were movie clips introduced into flash? ?V?2 question 1O ?  H @Arialq.2 A @Arial:: *hArialwhen was mp3 audio support added to flash?  !@ Arialpversion 3  !@ Arialpversion 4  \!@ Arialpversion 5 ?u ?P# question 2OO?"  q y@Arialpthank you for taking the quiz ?@K quiz endOO ?initxX ?q26k ?quizEnd\ labelsO ?>//--------------------------------------------------- // Multiple Choice Quiz, By Colin Moock // Basic Version for Flash MX // For the accompanying tutorial, see Chapter 1 of // 'ActionScript for Flash MX: The Definitive Guide' //--------------------------------------------------- // Init main timeline variables. var q1answer; // User's answer for question 1 var q2answer; // User's answer for question 2 var totalCorrect = 0; // Counts number of correct answers // Stop the movie at the first question. stop(); // Code executed when button 1 is pressed. choice1_btn.onRelease = function () { this._parent.q1answer = 1; this._parent.gotoAndStop("q2"); }; // Code executed when button 2 is pressed. choice2_btn.onRelease = function () { this._parent.q1answer = 2; this._parent.gotoAndStop("q2"); }; // Code executed when button 3 is pressed. choice3_btn.onRelease = function () { this._parent.q1answer = 3; this._parent.gotoAndStop("q2"); };  ?I// Code executed when button 1 is pressed. choice1_btn.onRelease = function () { this._parent.q2answer = 1; this._parent.gotoAndStop("quizEnd"); }; // Code executed when button 2 is pressed. choice2_btn.onRelease = function () { this._parent.q2answer = 2; this._parent.gotoAndStop("quizEnd"); }; // Code executed when button 3 is pressed. choice3_btn.onRelease = function () { this._parent.q2answer = 3; this._parent.gotoAndStop("quizEnd"); };  ?2_// Tally up user's correct answers if (q1answer == 3) { totalCorrect = totalCorrect + 1; } if (q2answer == 2) { totalCorrect++; } // Create an onscreen text field do display the user's score. this.createTextField("totalOutput_txt", 1, 150, 200, 200, 20); // Show the user's score in an onscreen text field totalOutput_txt.text = "Your final score is: " + totalCorrect + "/2.";  scriptsO Q9*@hhhhhf z PublishRNWKProperties::) CDocumentPagePage 1Scene 1et9 }=Symbol 1button9Q9*@hhhhhf z PublishRNWKProperties::speed256K0!PublishGifProperties::PaletteName"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileName quiz-mx.html PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1PublishHtmlProperties::Loop1Vector::Debugging Permitted0PublishFormatProperties::jpeg0&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0PublishQTProperties::Width550$PublishPNGProperties::OptimizeColors1PublishHtmlProperties::Units0%PublishRNWKProperties::mediaCopyright(c) 2000#PublishRNWKProperties::flashBitRate1200PublishGifProperties::Smooth1Vector::Compress Movie1&PublishFormatProperties::flashFileName quiz-mx.swf%PublishFormatProperties::projectorMac0!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1"PublishGifProperties::DitherOptionPublishHtmlProperties::Quality4(PublishHtmlProperties::VerticalAlignment1$PublishFormatProperties::pngFileName quiz-mx.pngPublidisplay the user's score. this.createTextField("totalOutput_txt", 1, 150, 200, 200, 20); // Show the user's score in an onscreen text field totalOutput_txt.text = "Your final score is: " + totalCorrect + "/2.";  scriptsO Q9*@hhhhhf z PublishRNWKProperties::shFormatProperties::html1'PublishRNWKProperties::mediaDescription"PublishPNGProperties::FilterOption!PublishHtmlProperties::DeviceFont0Vector::Override Sounds0PublishQTProperties::Flatten1PublishJpegProperties::DPI4718592PublishPNGProperties::BitDepth24-bit with AlphaPublishPNGProperties::Smooth1"PublishGifProperties::DitherSolids0PublishGifProperties::Interlace0"PublishHtmlProperties::DisplayMenu1*PublishHtmlProperties::HorizontalAlignment1Vector::Quality80Vector::Protect0*PublishFormatProperties::generatorFileName quiz-mx.swtPublishFormatProperties::gif0Vector::Template0$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1PublishGifProperties::Loop1PublishGifProperties::Width550#PublishFormatProperties::qtFileName quiz-mx.mov$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1PublishFormatProperties::flash1$PublishJpegProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileName quiz-mx.exe#PublishQTProperties::PlayEveryFrame0"PublishJpegProperties::Progressive0"PublishPNGProperties::DitherSolids0PublishHtmlProperties::Height400PublishHtmlProperties::Width550Vector::Debugging PasswordVector::Omit Trace Actions0%PublishFormatProperties::jpegFileName quiz-mx.jpgPublishJpegProperties::Size0PublishPNGProperties::Interlace0PublishGifProperties::Height400'PublishHtmlProperties::TemplateFileNamedE:\Documents and Settings\fritz\Application Data\Macromedia\Flash MX\Configuration\Html\Default.html!PublishHtmlProperties::WindowMode0Vector::TopDown0-PublishFormatProperties::projectorMacFileName quiz-mx.hqxPublishFormatProperties::rnwk0PublishFormatProperties::png0PublishRNWKProperties::speed56K1PublishQTProperties::Height400%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCountVector::Report0"PublishFormatProperties::generator0"PublishRNWKProperties::audioFormat0$PublishGifProperties::OptimizeColors1Vector::Version6Vector::Event Format0Vector::Stream Compress7PublishFormatProperties::qt0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height400PublishPNGProperties::Height400PublishPNGProperties::Width550%PublishGifProperties::RemoveGradients0PublishHtmlProperties::Scale0Vector::Event Compress7"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0PublishJpegProperties::Width550!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifProperties::Animated0Vector::Stream Format0$PublishFormatProperties::gifFileName quiz-mx.gif"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255%PublishFormatProperties::rnwkFileName quiz-mx.smil%PublishFormatProperties::projectorWin0%PublishFormatProperties::defaultNames1PropSheet::ActiveTab1621 CColorDef3PfP0PHP`Px333(3f<03) CDocumentPagePage 1Scene 1et9 }=Symbol 1button9Q9*@hhhhhf z PublishRNWKProperties::speed256K0!PublishGifProperties::PaletteName"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileName quiz-mx.html PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1PublishHtmlProperties::Loop1Vector::Debugging Permitted0PublishFormatProperties::jpeg0&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0PublishQTProperties::Width550$PublishPNGProperties::OptimizeColors1PublishHtmlProperties::Units0%PublishRNWKProperties::mediaCopyright(c) 2000#PublishRNWKProperties::flashBitRate1200PublishGifProperties::Smooth1Vector::Compress Movie1&PublishFormatProperties::flashFileName quiz-mx.swf%PublishFormatProperties::projectorMac0!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1"PublishGifProperties::DitherOptionPublishHtmlProperties::Quality4(PublishHtmlProperties::VerticalAlignment1$PublishFormatProperties::pngFileName quiz-mx.pngPublishFormatProperties::html1'PublishRNWKProperties::mediaDescription"PublishPNGProperties::FilterOption!PublishHtmlProperties::DeviceFont0Vector::Override Sounds0PublishQTProperties::Flatten1PublishJpegProperties::DPI4718592PublishPNGProperties::BitDepth24-bit with AlphaPublishPNGProperties::Smooth1"PublishGifProperties::DitherSolids0PublishGifProperties::Interlace0"PublishHtmlProperties::DisplayMenu1*PublishHtmlProperties::HorizontalAlignment1Vector::Quality80Vector::Protect0*PublishFormatProperties::generatorFileName quiz-mx.swtPublishFormatProperties::gif0Vector::Template0$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1PublishGifProperties::Loop1PublishGifProperties::Width550#PublishFormatProperties::qtFileName quiz-mx.mov$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1PublishFormatProperties::flash1$PublishJpegProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileName quiz-mx.exe#PublishQTProperties::PlayEveryFrame0"PublishJpegProperties::Progressive0"PublishPNGProperties::DitherSolids0PublishHtmlProperties::Height400PublishHtmlProperties::Width550Vector::Debugging PasswordVector::Omit Trace Actions0%PublishFormatProperties::jpegFileName quiz-mx.jpgPublishJpegProperties::Size0PublishPNGProperties::Interlace0PublishGifProperties::Height400'PublishHtmlProperties::TemplateFileNamedE:\Documents and Settings\fritz\Application Data\Macromedia\Flash MX\Configuration\Html\Default.html!PublishHtmlProperties::WindowMode0Vector::TopDown0-PublishFormatProperties::projectorMacFileName quiz-mx.hqxPublishFormatProperties::rnwk0PublishFormatProperties::png0PublishRNWKProperties::speed56K1PublishQTProperties::Height400%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCountVector::Report0"PublishFormatProperties::generator0"PublishRNWKProperties::audioFormat0$PublishGifProperties::OptimizeColors1Vector::Version6Vector::Event Format0Vector::Stream Compress7PublishFormatProperties::qt0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height400PublishPNGProperties::Height400PublishPNGProperties::Width550%PublishGifProperties::RemoveGradients0PublishHtmlProperties::Scale0Vector::Event Compress7"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0PublishJpegProperties::Width550!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifProperties::Animated0Vector::Stream Format0$PublishFormatProperties::gifFileName quiz-mx.gif"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255%PublishFormatProperties::rnwkFileName quiz-mx.smil%PublishFormatProperties::projectorWin0%PublishFormatProperties::defaultNames1PropSheet::ActiveTab1621 CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hx333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3d`3`f``x`px3`33x3fx3x3xx3nx3xfxxxxx3x333f333xf0f30ff(0f5Hf<`f@xH3 HfH(H2`8xf30f33PHff3(PHf3<x`f3Cxf3F3H33x`f3x`3(x`35x3<ff0f3fPHfff`ffP0xffPxffPfH3fx`ff0xf(0xf<xfCfHf3x`ff0xfx0xf̙dxf]H3x`f0x̙PPPf`f3xffxfxfxxfk`3xfxPxPdfxf3fffffxx3fx`3 `f`̙`(`0xx3xfxx x(x3`33xf3 x̙3x3(x323x33f3 333(f`3fxffx̙fxf(xf5fx3ffff ff(`3xfx̙P̙(P<x3f̙(`3xfx̙PPx3f(x3f̙xx3f3330fff`xPxx(xxxx0]1CH3F`3Hx333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3d`3`f``x`px3`33x3fx3x3xx3nx3xfxxxxx3x333f333xf0f30ff(0f5Hf<`f@xH3 HfH(H2`8xf30f33PHff3(PHf3<x`f3Cxf3F3H33x`f3x`3(x`35x3<ff0f3fPHfff`ffP0xffPxffPfH3fx`ff0xf(0xf<xfCfHf3x`ff0xfx0xf̙dxf]H3x`f0x̙PPPf`f3xffxfxfxxfk`3xfxPxPdfxf3fffffxx3fx`3 `f`̙`(`0xx3xfxx x(x3`33xf3 x̙3x3(x323x33f3 333(f`3fxffx̙fxf(xf5fx3ffff ff(`3xfx̙P̙(P<x3f̙(`3xfx̙PPx3f(x3f̙xx3f3330fff`xPxx(xxxx0]1*]"PublishQTProperties::QTSndSettingsCQTAudioSettingsh*]"PublishQTProperties::QTSndSettingsCQTAudioSettingsh