ࡱ> Root Entryp|YrRASH=Contents=WPage 1Symbol 4/' 8*(%)7&9:;<>?@ABCDEFRoot Entryp|YrRASHA=Contents,WPage 1Symbol 4 !/'"#$+*(%)-.07123456&Symbol 2#Symbol 3{Symbol 78Symbol 6HCPicPage CPicLayer CPicFrameCPicText{$WX@8Arial3̙"dragdragdragdragdragdragdragdragdropdropdropdropdropdropF+h0@ Arial"dragndropiat @ Arial"draglet isolation chamber>>>>>>>U00>0`8 j8 (? backgroundOO CPicSprite!! holdingPen(L&?@ABCDEFGIJKLMNOPQRSTUVWCPicPage CPicLayer CPicFramePtT0o:0>000338 0d3033b903H:0.? PtT0o:0>000320.3903X  0d30?Layer 1O?front?backLayer 3OO? stop(); Layer 2OOCPicPage CPicLayer CPicFrameCPicText{$WX@8Arial3̙"dragdragdragdragdragdragdragdragdropdropdropdropdropdropF+h0@ Arial"dragndropiat @ Arial"draglet isolation chamber>>>>>>>U00>0`8 j8 (? backgroundOO CPicSprite!! holdingPen(L& 360) { clip.degree -= 360; } else if (clip.degree < 0) { clip.degree += 360; } // determine the new rotation of the clip var degreeRad = radian(clip.degree); clip.currentRotation = midPoint + Math.cos(degreeRad) * delta; } // ### degree to radian converter (used by oscillateUsingCos) function radian(degree) { return (Math.PI/180) * degree; } // ### spin the specified clip // this function is called from a clip's // enterframe event, and relies on valu? stop(); Layer 2OOlabelsOO? stop(); scriptsOO?front?backCPicPage CPicLayer CPicFrameP40X<8 0\l0300x0034@3E. 3h@3Vp? O?front?backLayer 3OO? stop(); Layer 2OOP40X<8 0\l0300x003\ 3@hp?contentO?front?backLayer 3OO?front?backLayer 3OO? stop(); Layer 2OOCPicPage CPicLayer CPicFrame PP0G08 J600>030z63X x? P0G08 J600>030z?Layer 1Oes set in the clip via onload function spin(clip, axis) { if(axis == "horizontal") { clip._xscale = clip.currentRotation; } else { clip._yscale = clip.currentRotation; } if(clip.currentRotation < 0) { clip.gotoAndStop("back"); } else if(clip.currentRotation > 0) { clip.gotoAndStop("front"); } } scriptsOl", 30); } onClipEvent(enterFrame) { if (spinning) { _root.oscillateUsingCo  CDocumentPage Page 1Scene 19Z9 Symbol 7draglet5T9 x9 Symbol 6draglet4T9 W9 Symbol 5draglet3~T9W9 Symbol 4draglet2S9}W9 Symbol 3 holdingPen<9<9 Symbol 2draglet1R29 RW9*@hhhhh<Vector::Template"PublishFormatProperties::generator CColorDef 3330 fff`    x Px x (x xx x  3P fP0 PH P` Px 3 33( 3f<0 3CH 3F` 3Hx 3 33x f3d0 3]H 3Z` 3Xx 33 3330 3f3PPH 33Px` 33Px 33P f0 3f0 ffx0 fkH fd` f`x 3f0 33fPH 3ffxPH 3fdx` Layer 2OOCPicPage CPicLayer CPicFrame Pp3ht0000D80D00`0D3?CPicPage CPicLayer CPicFrame CPicShapeA1 3̙P3f]x 3fZ H 3H fH xH ̙n` hx 3H 33x` 3fx` 3xx` 3̙kx 3d ` 3` f` ` x` px 3` 33x 3fx 3x 3xx 3n x 3x fx x x xx 3x 33 3f 3 3 3x f0 f30 ff(0 f5H f<` f@x H 3 H fH (H 2` 8x f30 f33PH ff3(PH f3<x` f3Cx f3F 3H 33x` f3x` 3(x` 35x 3< ff0 f3fPH fff` ffP0x ffPx ffP fH 3fx` ff0x f(0x f<x fC fH f3x` ff0x fx0x f̙dx f] H 3x` f0x  ̙PP P f` f3x ffx fx fxx fk ` 3x fx P xP d fx f3 ff f f fx x 3 f   x ` 3 ` f` ̙` (` 0x x 3x fx x  x (x 3` 33x f3 x ̙3x 3(x 32 3x 33 f3 3 3 3( f` 3fx ffx ̙fx f(x f5 fx 3f ff f f f( ` 3x fx ̙P ̙(P < x 3 f  ̙ ( ` 3x fx ̙P  P x 3 f   ( x 3 f ̙  x x 3 f          *]PWh!_root.holdingPen.hitTest(clip._x, clip._y, true)) { clip._x = clip.startX; clip._y = clip.startY; clip.rpm = clip.rpmDefault; } else { // otherwise, it's in the pen, so stop it spinning clip.spinning = false; } } // *** define system globals var minValue = -100; // min and max set range of oscillation var maxValue = 100; var delta = (maxValue - minValue) / 2; // radius of a cycle var mis6T F00000 00 0gsn6,3wjp,?Layer 1O Pp3ht0000D80D00`0D3?Layer 1Oalue and ascends clip.lastTimer = getTimer(); // time stamp used to measure how much to move clip.startX = clip._x; clip.startY = clip._y; } // ### handle draglet dragging. called by each draglet's mouseDown handler function checkDrag(clip) { // if the mouse is over the clip, pick it up if(clip.hitTest(_root._xmouse, _root._ymouse, false)) { clip.startDrag(true); // start spinning clip.spinning = true; // spin faster (draglets don't like being picked up) clip.rpm = clip.rpmDefault * 10; } } // ### handl draglet dropping. called by each draglet's mouseUp handler function drop(clip) { // mouse button was released, time to drop everything stopDrag(); // if the clip wasn't dropped in the holding pen, // put it back where it started if(!_root.holdingPen.hitTest(clip._x, clip._y, true)) { clip._x = clip.startX; clip._y = clip.startY; clip.rpm = clip.rpmDefault; } else { // otherwise, it's in the pen, so stop it spinning clip.spinning = false; } } // ### moves between two values using a cosine-wave pattern function oscillateUsingCos(clip, rpm) { // measure how much time has passed, and set the appropriate // amount to rotate var now = getTimer(); var elapsed = (now - clip.lastTimer) / 1000; var degIncrement = (360 * clip.rpm) * (elapsed / 60); // remember the current time for the next move clip.lastTimer = now; // increment the degree clip.degree += degIncrement; // keep the degree looping between -360 and 360 if (clip.degree > 360) { clip.degree -= 360; } else if (clip.degree < 0) { clip.degree += 360; } // determine the new rotation of the clip var degreeRad = radian(clip.degree); clip.currentRotation = midPoint + Math.cos(degreeRad) * delta; } // ### degree to radian converter (used by oscillateUsingCos) function radian(degree) { return (Math.PI/180) * degree; } // ### spin the specified 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 = clip.currentRotation; } else { clip._yscale = clip.currentRotation; } if(clip.currentRotation < 0) { clip.gotoAndStop("back"); } else if(clip.currentRotation > 0) { clip.gotoAndStop("front"); } } scriptsO  CDocumentPage Page 1Scene 19Z9 Symbol 7draglet5T9 x9 Symbol 6draglet4T9 W9 Symbol 5draglet3~T9W9 Symbol 4draglet2S9}W9 Symbol 3 holdingPen<9<9 Symbol 2draglet1R29 RW9*@hhhhh<Vector::Template"PublishFormatProperties::generator CColorDef 3330 fff`    x Px x (x xx x  3P fP0 PH P` Px 3 33( 3f<0 3CH 3F` 3Hx 3 33x f3d0 3]H 3Z` 3Xx 33 3330 3f3PPH 33Px` 33Px 33P f0 3f0 ffx0 fkH fd` f`x 3f0 33fPH 3ffxPH 3fdx` 3f]x 3fZ H 3H fH xH ̙n` hx 3H 33x` 3fx` 3xx` 3̙kx 3d ` 3` f` ` x` px 3` 33x 3fx 3x 3xx 3n x 3x fx x x xx 3x 33 3f 3 3 3x f0 f30 ff(0 f5H f<` f@x H 3 H fH (H 2` 8x f30 f33PH ff3(PH f3<x` f3Cx f3F 3H 33x` f3x` 3(x` 35x 3< ff0 f3fPH fff` ffP0x ffPx ffP fH 3fx` ff0x f(0x f<x fC fH f3x` ff0x fx0x f̙dx f] H 3x` f0x  ̙PP P f` f3x ffx fx fxx fk ` 3x fx P xP d fx f3 ff f f fx x 3 f   x ` 3 ` f` ̙` (` 0x x 3x fx x  x (x 3` 33x f3 x ̙3x 3(x 32 3x 33 f3 3 3 3( f` 3fx ffx ̙fx f(x f5 fx 3f ff f f f( ` 3x fx ̙P ̙(P < x 3 f  ̙ ( ` 3x fx ̙P  P x 3 f   ( x 3 f ̙  x x 3 f          *]PWh