ࡱ> Root Entryp|YrRASH M7 @Contents.'Page 1Symbol 5=$ !"#*%&'(+,-/012345FGHIJKLMNPQSRoot Entryp|YrRASH@^ @Contents)'Page 1Symbol 5=  !"#*6789:;<=>?@ABCDEORTSymbol 1Symbol 2Symbol 3 'Symbol 4USymbol 1Symbol 2Symbol 3 'Symbol 4UCPicPage CPicLayer CPicFrame?5?loadLoopM?mainlc labelsOO ? ?. h// ============================================= // Sizable Starfield Demo // Version 1.0.2 // Written by Colin Moock, www.moock.org // ============================================= // Start the application running. mainInit(); function mainInit() { // Set alignment and scale to allow onResize to work. Stage.align = "LT"; Stage.scaleMode = "noScale"; // Create the title clip. this.attachMovie("titleClip", "titleClip", 1000000); // Keeps the title clip in place when the movie is resized. titleClip.onResize = function () { this._x = Stage.width - (this._width + 10); this._y = -1; } // Register titleClip to be notified when movie is resized. Stage.addListener(titleClip); // Set initial position of title clip. this.titleClip.onResize(); // Create the StarField object. this.theStars = new StarField(this, 50); }  scripts: movieInit()O ? ?Pj /* * StarField Class * Desc: Creates a group of movie clips to * produce a zooming star field effect. * Parameters: None. */ function StarField (targetClip, starsPerSecond) { // The clip to which the stars will be attached. this.clip = targetClip; // Set how many stars are generated per second. this.starsPerSecond = starsPerSecond; // Initialize the object. this.init(); } /* * Method: init() * Desc: Performs first-time set up tasks for the StarField object. * Parameters: None. */ StarField.prototype.init = function () { // Keep a unique id/depth for each star. this.starCount = -1; // Set the vanishing point for star animation. this.vanishingX = Stage.width/2; // Set how often to make stars. var tickTime = 50; var ticksPerSecond = 1000/tickTime; // Calculate stars per tick, based on starsPerSecond. Minimum is 1. var starsPerTick = Math.ceil(this.starsPerSecond/ticksPerSecond); // Create new stars every tickTime ms. this.starInterval = setInterval(this, "makeStars", tickTime, starsPerTick); // Create a mouseMove callback. this.onMouseMove = function () { // Set the vanishing point to the mouse location. this.vanishingX = _root._xmouse; } // Register this object to receive mouse event notifications. Mouse.addListener(this); } /* * Method: makeStars() * Desc: Generates star movie clips. * Parameters: None. */ StarField.prototype.makeStars = function (numStars) { // Pick a random number of stars to make. Makes 1 - numStars (inclusive). var finalNumStars = Math.floor(Math.random() * numStars) + 1; // Make the stars. for (var i = 1; i <= finalNumStars; i++) { // Update the unique id/depth. this.starCount++; // Make a new empty movie clip. this.clip.createEmptyMovieClip("star" + this.starCount, this.starCount); // Store a reference to the new clip. var thisStar = this.clip["star" + this.starCount]; // Give the star a reference back to the StarField object. thisStar.starField = this; // Draw a circle in the clip. Probably not too efficient, but // it's fun to use the Flash 6 drawing api. thisStar.lineStyle(); thisStCPicPage CPicLayer CPicFrame?5?loadLoopM?mainlc labelsOOar.beginFill(0xD3D392); thisStar.circle(-1, -1, 2, 2); thisStar.endFill(); // Pick a random position for the clip somewhere on stage. thisStar._x = Math.floor(Math.random() * Stage.width); thisStar._y = Math.floor(Math.random() * Stage.height); // Set expansion speed for the star (in pixels). thisStar.growAmount = .05; // Determine which direction to drift, based on the vanishing point. thisStar.driftX = (thisStar._x < this.vanishingX) ? "left" : "right"; // AssigCPicPage CPicLayer CPicFrame CPicShapefffq00q} 000 ?fff@0000 0 ?8* Layer 1CPicPage CPicLayer CPicFrame CPicShapeGfffsR00q} 000 ? CPicSprite n the star a callback to do animation. thisStar.onEnterFrame = function () { // Speed up and grow exponentially. this.growAmount *= 1.3; this.driftAmount = this.growAmount * 1.5; // Increase the star's size. this._width += this.growAmount; this._height += this.growAmount; // Drift either right or left. this._x += (this._x > this.starField.vanishingX) ? this.driftAmount : -this.driftAmount; // If the star is 300px wide, delete it. if (this._width > 300) { this.removeMovieClip(); } } } }  scripts: StarField classOO ?2?\Y/* * Method: MovieClip.circle() * Desc: Makes a circle outline. * Credit: Written Ric Ewing. */ MovieClip.prototype.circle = function(x, y, w, h) { // init variables var theta, angle, angleMid, px, py, cx, cy; // covert 60 degrees to radians for our calculations theta = (60/180)*Math.PI; // start on the right side of the circle var angle = 0; this.moveTo(x+w, y+(h/2)); // this loop draws the circle in 6 segments for (var i = 0; i<6; i++) { // increment our angles angle += theta; angleMid = angle-(theta/2); // calculate our control point cx = x+(w/2)+Math.cos(angleMid)*(w*.57); cy = y+(h/2)+Math.sin(angleMid)*(h*.57); // calculate our end point px = x+(w/2)+Math.cos(angle)*(w*.5); py = y+(h/2)+Math.sin(angle)*(h*.5); // draw the circle segment this.curveTo(cx, cy, px, py); } }; scripts: MovieClip.circle()O?//?Bfif (this._framesloaded > 0 && this._framesloaded == this._totalframes) { this.gotoAndStop("main"); } ?+{this.gotoAndPlay("loadLoop"); scripts: preloader33 scripts: preloader3 ? ?. h// ============================================= // Sizable Starfield Demo // Version 1.0.2 // Written by Colin Moock, www.moock.org // ============================================= // Start the application running. mainInit(); function mainInit() { // Set alignment and scale to allow onResize to work. Stage.align = "LT"; Stage.scaleMode = "noScale"; // Create the title clip. this.attachMovie("titleClip", "titleClip", 1000000); // Keeps the title clip in place when the movie is resized. titleClip.onResize = function () { this._x = Stage.width - (this._width + 10); this._y = -1; } // Register titleClip to be notified when movie is resized. Stage.addListener(titleClip); // Set initial position of title clip. this.titleClip.onResize(); // Create the StarField object. this.theStars = new StarField(this, 50); }  scripts: movieInit()O ? ?Pj /* * StarField Class * Desc: Creates a group of movie clips to * produce a zooming star field effect. * Parameters: None. */ fdy?#_fff@0000 0 ?(fffq@00sunction StarField (targetClip, starsPerSecond) { // The clip to which the stars will be attached. this.clip = targetClip; // Set how many stars are generated per second. this.starsPerSecond = starsPerSecond; // Initialize the object. this.init(); } /* * Method: init() * Desc: Performs first-time set up tasks for the StarField object. * Parameters: None. */ StarField.prototype.init = function () { // Keep a unique id/depth for each star. this.starCount = -1; // Set the vanishing point for star animation. this.vanishingX = Stage.width/2; // Set how often to make stars. var tickTime = 50; var ticksPerSecond = 1000/tickTime; // Calculate stars per tick, based on starsPerSecond. Minimum is 1. var starsPerTick = Math.ceil(this.starsPerSecond/ticksPerSecond); // Create new stars every tickTime ms. this.starInterval = setInterval(this, "makeStars", tickTime, starsPerTick); // Create a mouseMove callback. this.onMouseMove = function () { // Set the vanishing point   !"#$%&'()*+,-./0123456789:;<C>?@ABD00 0 ?Q Layer 1eight += this.growSpeed; CPicPage CPicLayer CPicFrame CPicButton8 8dT?N8 8d63on (release) { getURL("../index.html", "_top"); } ?S8v 8vdNM3on (release) { getURL("../index.html", "_top"); } ?,z8 8d 5Eon (release) { getURL("http://www.moock.org/webdesign/", "_top"); } ? buttonO CPicSprite O?+8 8?yg |2?y  textOO ?p#?(stop()CPicPage CPicLayer CPicFrameCPicText ((UVerdana"(MOOCK.ORG >> WEBDESIGNto the mouse location. this.vanishingX = _root._xmouse; } // Register this object to receive mouse event notifications. Mouse.addListener(this); } /* * Method: makeStars() * Desc: Generates star movie clips. * Parameters: None. */ StarField.prototype.makeStars = function (numStars) { // Pick a random number of stars to make. Makes 1 - numStars (inclusive). var finalNumStars = Math.floor(Math.random() * numStars) + 1; // Make the stars. for (var i = 1; i <= finalNumStars; i++) { // Update the unique id/depth. this.starCount++; // Make a new empty movie clip. this.clip.createEmptyMovieClip("star" + this.starCount, this.starCount); // Store a reference to the new clip. var thisStar = this.clip["star" + this.starCount]; // Give the star a reference back to the StarField object. thisStar.starField = this; // Draw a circle in the clip. Probably not too efficient, but // it's fun to use the Flash 6 drawing api. thisStar.lineStyle(); thisStar.beginFill(0xD3D392); thisStar.circle(-1, -1, 2, 2); thisStar.endFill(); // Pick a random position for the clip somewhere on stage. thisStar._x = Math.floor(Math.random() * Stage.width); thisStar._y = Math.floor(Math.random() * Stage.height); // Set expansion speed for the star (in pixels). thisStar.growAmount = .05; // Determine which direction to drift, based on the vanishing point. thisStar.driftX = (thisStar._x < this.vanishingX) ? "left" : "right"; // Assign the star a callback to do animation. thisStar.onEnterFrame = function () { // Speed up and grow exponentially. this.growAmount *= 1.13; this.driftAmount = this.growAmount * 1.5; // Increase the star's size. this._width += this.growAmount; this._height += this.growAmount; // Drift either right or left. this._x += (this._x > this.starField.vanishingX) ? this.driftAmount : -this.driftAmount; // If the star is 300px wide, delete it. if (this._width > 300) { this.removeMovieClip(); } } } }  scripts: StarField classOO ?2?\Y/* * Method: MovieClip.circle() * Desc: Makes a circle outline. * Credit: Written Ric Ewing. */ MovieClip.proto) CDocumentPagePage 1Scene 1<5R<Symbol 5text: moock.org >> webdesignU <Symbol 5U <Symbol 1 titleClip < titleClip?Nm Layer 1O; scriptsOOCPicPage CPicLayer CPicFrame?type.circle = function(x, y, w, h) { // init variables var theta, angle, angleMid, px, py, cx, cy; // covert 60 degrees to radians for our calculations theta = (60/180)*Math.PI; // start on the right side of the circle var angle = 0; this.moveTo(x+w, y+(h/2)); // this loop draws the circle in 6 segments for (var i = 0; i<6; i++) { // increment our angles angle += theta; angleMid = angle-(theta/2); // calculate our control point cx = x+(w/2)+Math.cos(angleMid)*(w*.57); cy = y+(h/2)+Math.sin(angleMid)*(h*.57); // calculate our end point px = x+(w/2)+Math.cos(angle)*(w*.5); py = y+(h/2)+Math.sin(angle)*(h*.5); // draw the circle segment this.curveTo(cx, cy, px, py); } }; scripts: MovieClip.circle()O?//?Bfif (this._framesloaded > 0 && this._framesloaded == this._totalframes) { this.gotoAndStop("main"); } ?+{this.gotoAndPlay("loadLoop"); scripts: preloader3cripts: preloader3) CDocumentPagePage 1Scene 1<R<Symbol 5text: moock.org >> webdesignU <Symbol 5U <Symbol 1 titleClip < titleClipSymbol 1%2<Symbol 3uparrowy8C..\..\..\..\..\actionscript book\first edition\reviewsite-title.flauparrow <y8 <Symbol 4uparrow (animated))y8C..\..\..\..\..\actionscript book\first edition\reviewsite-title.flauparrow (animated)iy8)y8iy8]hhhhhDz PublishRNWKProperties::speed256K0!PublishGifProperties::PaletteName"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileNameresizableMovie.html PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1PublishHtmlProperties::Loop1Vector::Debugging Permitted0PublishFormatProperties::jpeg0&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0PublishQTProperties::Width1200$PublishPNGProperties::OptimizeColors1PublishHtmlProperties::Units2%PublishRNWKProperties::mediaCopyright(c) 2000#PublishRNWKProperties::flashBitRate1200PublishGifProperties::Smooth1Vector::Compress Movie1&PublishFormatProperties::flashFileNameresizableMovie.swf%PublishFormatProperties::projectorMac0!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1"PublishGifProperties::DitherOptionPublishHtmlProperties::Quality4(PublishHtmlProperties::VerticalAlignment1$PublishFormatProperties::pngFileNameresizableMovie.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::Protect0Vector::Template0*PublishFormatProperties::generatorFileNameresizableMovie.swtPublishFormatProperties::gif0$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1PublishGifProperties::Loop1PublishGifProperties::Width1200#PublishFormatProperties::qtFileNameresizableMovie.mov$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1PublishFormatProperties::flash1$PublishJpegProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileNameresizableMovie.exe#PublishQTProperties::PlayEveryFrame0"PublishJpegProperties::Progressive0"PublishPNGProperties::DitherSolids0PublishHtmlProperties::Height100PublishHtmlProperties::Width100Vector::Debugging PasswordVector::Omit Trace Actions0%PublishFormatProperties::jpegFileNameresizableMovie.jpgPublishJpegProperties::Size0PublishPNGProperties::Interlace0PublishGifProperties::Height25'PublishHtmlProperties::TemplateFileNamedE:\Documents and Settings\fritz\Symbol 1%2<Symbol 3uparrowy8C..\..\..\..\..\actionscript book\first edition\reviewsite-title.flauparrow <y8 <Symbol 4uparrow (animated))y8C..\..\..\..\..\actionscript book\first edition\reviewsite-title.flauparrow (animated)iy8)y8iy8]hhhhhDz PublishRNWKProperties::speed256K0!PublishGifProperties::PaletteName"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileNameresizableMovie.html PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1PublishHtmlProperties::Loop1Vector::Debugging Permitted0PublishFormatProperties::jpeg0&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0PublishQTProperties::Width1200$PublishPNGProperties::OptimizeColors1PublishHtmlProperties::Units2%PublishRNWKProperties::mediaCopyright(c) 2000#PublishRNWKProperties::flashBitRate1200PublishGifProperties::Smooth1Vector::Compress Movie1&PublishFormatProperties::flashFileNameresizableMovie.swf%PublishFormatProperties::projectorMac0!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1"PublishGifProperties::DitherOptionPublishHtmlProperties::Quality4(PublishHtmlProperties::VerticalAlignment1$PublishFormatProperties::pngFileNameresizableMovie.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::Protect0Vector::Template0*PublishFormatProperties::generatorFileNameresizableMovie.swtPublishFormatProperties::gif0$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1PublishGifProperties::Loop1PublishGifProperties::Width1200#PublishFormatProperties::qtFileNameresizableMovie.mov$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1PublishFormatProperties::flash1$PublishJpegProperties::MatchMovieDim1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileNameresizableMovie.exe#PublishQTProperties::PlayEveryFrame0"PublishJpegProperties::Progressive0"PublishPNGProperties::DitherSolids0PublishHtmlProperties::Height100PublishHtmlProperties::Width100Vector::Debugging PasswordVector::Omit Trace Actions0%PublishFormatProperties::jpegFileNameresizableMovie.jpgPublishJpegProperties::Size0PublishPNGProperties::Interlace0PublishGifProperties::Height25'PublishHtmlProperties::TemplateFileNamedE:\Documents and Settings\fritz\Application Data\Macromedia\Flash MX\Configuration\Html\Default.html!PublishHtmlProperties::WindowMode0Vector::TopDown0-PublishFormatProperties::projectorMacFileNameresizableMovie.hqxPublishFormatProperties::rnwk0PublishFormatProperties::png0PublishRNWKProperties::speed56K1PublishQTProperties::Height25%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCountVector::Report0"PublishFormatProperties::generator0"PublishRNWKProperties::audioFormat0$PublishGifProperties::OptimizeColors1Vector::Version6Vector::Event Format0Vector::Stream Compress7PublishFormatProperties::qt0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height25PublishPNGProperties::Height25PublishPNGProperties::Width1200%PublishGifProperties::RemoveGradients0PublishHtmlProperties::Scale0Vector::Event Compress7"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0PublishJpegProperties::Width1200!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifProperties::Animated0Vector::Stream Format0$PublishFormatProperties::gifFileNameresizableMovie.gifPropSheet::ActiveTab1620"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255%PublishFormatProperties::rnwkFileNameresizableMovie.smil%PublishFormatProperties::projectorWin0%PublishFormatProperties::defaultNames1 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((xH3Application Data\Macromedia\Flash MX\Configuration\Html\Default.html!PublishHtmlProperties::WindowMode0Vector::TopDown0-PublishFormatProperties::projectorMacFileNameresizableMovie.hqxPublishFormatProperties::rnwk0PublishFormatProperties::png0PublishRNWKProperties::speed56K1PublishQTProperties::Height25%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCountVector::Report0"PublishFormatProperties::generator0"PublishRNWKProperties::audioFormat0$PublishGifProperties::OptimizeColors1Vector::Version6Vector::Event Format0Vector::Stream Compress7PublishFormatProperties::qt0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height25PublishPNGProperties::Height25PublishPNGProperties::Width1200%PublishGifProperties::RemoveGradients0PublishHtmlProperties::Scale0Vector::Event Compress7"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0PublishJpegProperties::Width1200!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifProperties::Animated0Vector::Stream Format0$PublishFormatProperties::gifFileNameresizableMovie.gifPropSheet::ActiveTab1620"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255%PublishFormatProperties::rnwkFileNameresizableMovie.smil%PublishFormatProperties::projectorWin0%PublishFormatProperties::defaultNames1 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̙PPx3fx`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3fD(gp(xx3fxx3f̙xx3fD(gpf`zf*]d"PublishQTProperties::QTSndSettingsCQTAudioSettingsh