ࡱ> Root Entryp|YrRASH 3=@Contents"Page 1Symbol 2  !#$%&'()*Root Entryp|YrRASHI3=@ContentsPage 1"Symbol 2  +,-./012CPicPage CPicLayer CPicFrameCPicText{$WX@8Arial3̙"_xscale_yscale-100+increment_xscale_yscale-100+increment(@Arial"(here's a fairly kludgy way to spin a clip using actionscript. when the _xscale or _yscale of a clip is negative, the clip is flipped either horizontally or vertically. by oscillating the scale vae = currentValue; } else { clip._yscale = currentValue; } if(currentValue < 0) { clip.gotoAndStop("back"); } else if(currentValue > 0) { clip.gotoAndStop("front"); } } scriptsO scriptsOCPicPage CPicLayer CPicFrameCPicText{$WX@8Arial3̙"_xscale_yscale-100+increment_xscale_yscale-100+increment(@Arial"(here's a fairly kludgy way to spin a clip using actionscript. when the _xscale or _yscale of a clip is negative, the clip is flipped either horizontally or vertically. by oscillating between the scale values between -100 and 100, we can make the clip appear to spin. negative scales are also handy for producing the mirror image of a clip. notice how our cosine oscillation function comes in handy here...(O0@Arial"spinning a clip PU00>0`8v8h8b8@88d?contentOO CPicSprite s sonClipEvent (load) { rpm = 18; // number of full cycles per minute (a full cycle travels the range twice) } onClipEvent(enterFrame) { _root.oscillateUsingCos(rpm); _root.spin(this, "horizontal"); } Ps(1W72̀<|< 360) { degree -= 360; } else if (degree < 0) { degree += 360; } // determine the new value var degreeRad = radian(degree); currentValue = midPoint + Math.cos(degreeRad) * delta; } // *** degree to radian converter (used by oscillateUsingCos) function radian(degree) { return (Math.PI/180) * degree; } // this function is called from a clip's enterframe event, // and relies on values set in the clip via onload function spin(clip, axis) { if(axis == "horizontal") { clip._xscallues between -100 and 100, we can make the clip appear to spin. negative scales are also handy for producing the mirror image of a clip. notice how our cosine oscillation function comes in handy here for that "real" spinny look...(O0@Arial"spinning a clipPI:)@@^0 00`8p8Zh88r0W72̀<|< 360) { degree -= 360; } else if (degree < 0) { degree += 360; } // determine the new value var degreeRad = radian(degree); currentValue = midPoint + Math.cos(degreeRad) * delta; } // ### set the vertical or horizontal size of the clip // this function is called from a clip's enterframe event, // and relies on values set in the clip via onload function spin(clip, axis) { if(axis == "horizontal") { clip._xscale = currentValue; } else { clip._yscale = currentValue; } if(currentValue < 0) { clip.gotoAndStop("back"); } else if(currentValue > 0) { clip.gotoAndStop("front"); } } // ### degree to radian converter (used by oscillateUsingCos) function radian(degree) { return (Math.PI/180) * degree; } scriptsOx3f̙xx3f  CDocumentPage Page 1Scene 199 Symbol 2spinletXH9l9*@hhhhhZVector::Template"PublishFormatProperties::generator CColorDef3330fff`xPx CPicPage CPicLayer CPicFrameCPicText{$WX@8Arial3̙"_xscale_yscale-100+increment_xscale_yscale-100+increment(@Arial"(here's a fairly kludgy way to spin a clip using actionscript. when the _xscale or _yscale of a clip is negative, the clip is flipped either horizontally or vertically. by oscillating the scale values between -100 and 100, we can make the clip appear to spin. negative scales are also handy for producing the mirror image of a clip. notice how our cosine oscillation function comes in handy here...(O0@Arial"spinning a clipPI:)@@^0 00`8p8Zh88r0W72̀<|< 360) { degree -= 360; } else if (degree < 0) { degree += 360; } // determine the new value var degreeRad = radian(degree); currentValue = midPoint + Math.cos(degreeRad) * delta; } // ### set the vertical or horizontal size of the clip // this function is called from a clip's enterframe event, // and relies on values set in the clip via onload function spin(clip, axis) { if(axis == "horizontal") { clip._xscale = currentValue; } else { clip._yscale = currentValue; } if(currentValue < 0) { clip.gotoAndStop("back"); } else if(currentValue > 0) { clip.gotoAndStop("front"); } } // ### degree to radian converter (used by oscillateUsingCos) function radian(degree) { return (Math.PI/180) * degree; } scriptsO  CDocumentPage Page 1Scene 19ߤ9 Symbol 2spinletXH9l9*@hhhhhZVector::Template"PublishFormatProperties::generator CColorDef3330fff`xPxx(xxxx3PfP0PHP`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̙xx3f*]PW|hx(xxxx3PfP0PHP`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̙xx3f*]PW|h