аЯрЁБс>ўџ ўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџRoot EntryџџџџџџџџpЊ|YЊrЯƒRASHрƒSeСРContentsџџџџџџџџ†Page 1џџџџџџџџџџџџ%r Symbol 2џџџџџџџџџџџџe§џџџџџџџџџџџџџџџџџџџўџџџ џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўџџџўџџџ !")џџџџџџџџџџџџџџџџџџџџџџџџ*+ўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџRoot EntryџџџџџџџџpЊ|YЊrЯƒRASH­Ћ‰eСРContentsџџџџџџџџ†Page 1џџџџџџџџџџџџ%r Symbol 2џџџџџџџџџџџџeџџџџџџџџ§џџџўџџџўџџџџџџџ ўџџџ#џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ$%&'(,џџџџџџџџџџџџ-ўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџSymbol 1џџџџНџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ ўџџџ !"#$ўџџџ&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџSymbol 1џџџџНџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџCPicPageџџ CPicLayerџџ CPicFrame€€џџџ?џџ€€Layer 3џџџџOџOџ€€џџ CPicShape€€™џџџf33џs€€ќќвћ0ј0.0X$0Ј§д€€џџџ?џџ€€Layer 1џџџџO€џџ€€ €€€џf33џW€€ /џзоpм€Я€Ђp№Ц€ћ€– Ѕа*€ШШї@h!а#1^ŽМ9€iщє™/ж8їр.€П€фš‡і/;йb—тю&У"sрћ€аЭ№йб€љ€–8 бФ€&žЉй€=оŒљ€/3ю'.€€i €€€ ™џџџf33џгРХќ€к€'№P§o§€%й0Аб€Зi€ќ€6№IќСџ€Щ0И?б$Р€ш€1№žќtў€Ю0cŒ €€€ ™џџџf33џѓjЋŒќ\ь€Э0tЃўа3ё€&;@§л€з0Р§а%€(ёФ‘Lќ)€§Ъ0Дзџа€6€€џџџ?џџ€€Layer 2џџџџџOOџ€€ootџџCPicPageџџ CPicLayerџџ CPicFrame€€_™f3џЬ™џћdе<§ašЎџџМ\џ8UУКЃ0Зї00 0˜0Jљ0 0Ю0h0rўx0Ž0h0jї0И0Рў(0@0 0–d0Тў<0>0X0ђё0Р0x 00~00 ћ0@0rў0ш0Ž0а0`d0шўP0d0Ј§0@0X<0ђі0X0юd0Тљ0X0^ 00тї(0Иџ|њ0№§Фў0 мў0Nєќ<0dф0Ьд0Lў0L20 0 і0ш0~0@0Ј§00њј0x0Ў0X0Аd0pў0р0@0(<№№№Њ№Tьг6,МФ0Ј§<0X№X3ј@џџџ?џџ€€shapeџџџџO€џџ€€џџ CPicSpritebMњџџbMњџџџџџџ[onClipEvent (enterFrame) { _root.rotateTowards(this, _root._xmouse, _root._ymouse); } €€џџџ?џџ€€clipџџџџOџOџ€€€€scriptsџџџџџOOџџCPicPageџџ CPicLayerџџ CPicFrameџџCPicText€€?$Wџџџ…лџџЄф@РArialЬЬ™џ"„ўprogrammatic motionРArial™xџ"„ў РArial™xџ"„ўrotate towards a point€€€~“ю(И@bArialfџџџ"(each of the clips below calls a reusable function from its enterframe handler that rotates the clip towards a point (the mouse pointer). the function could be used to orient a spaceship towards a target or an animated bee towards a flower. clips can be rotated no matter how deeply nested they are (all coordinates are transformed to global coordinates).€€Њ†џё U00>0`Њ8 jњџЈщ8 іџ(иџџџ?џџ€€bgџџџџOџOџ€€џџ CPicSpriteNЫNЫџџџџ €в в џџџџ[onClipEvent (enterFrame) { _root.rotateTowards(this, _root._xmouse, _root._ymouse); }  €FЖFЖџџџџ[onClipEvent (enterFrame) { _root.rotateTowards(this, _root._xmouse, _root._ymouse); } €€џџџ?џџ€€clipsџџџџO€џџ€€€€џџџ?џџџp/* ******************************** *** FUNCTION rotateTowards() *** ******************************** > DESCRIPTION: Rotates clip towards the point x, y. > PARAMETERS: clip The clip to rotate. targetX The (global!) x-coord towards which to rotate. targetY The (global!) y-coord towards which to rotate. */ function rotateTowards (clip, targetX, targetY) { // Create a point object that stores the x and y coordinates of // the clip relative to its parent's registration point var clipPoint = {x:clip._x, y:clip._y}; // Convert local clip coordinates to global (Stage) coordinates clip._parent.localToGlobal(clipPoint); // Measure the distance between the registration // point of the clip and the target point var deltaX = targetX - clipPoint.x; var deltaY = targetY - clipPoint.y; // Calculate the angle of the line from the registration point // of this clip to the mouse var rotationRadian = Math.atan2(deltaY, deltaX); // Convert the radian version of the angle to degrees var rotationAngle = radiansToDegrees(rotationRadian); // Update the rotation of this clip to point to the mouse clip._rotation = rotationAngle; } // Converts radians to degrees. There are 2pi radians per 360 degrees. function radiansToDegrees(radians) { return (radians/Math.PI) * 180; }€€scripts: rotateTowards()џџџџџOOџ€€neratorџџџџќџџ CColorDefџ€џ€џ џџ CDocumentPage Page 1Scene 1j\M:0п„D;€ Symbol 2 nested clipCD; €„D;€ Symbol 1pointer6D; зƒD;ј*@h…hhhh™™џРРРџ ДVector::Template"PublishFormatProperties::generatorџџџџќџџ CColorDefџ€џ€џ€3џPя€fџPя0€™џPяH€ЬџPя`€џџPяx€3џя€33џ(я€3fџ<я0€3™џCяH€3ЬџFя`€3џџHяx€fџя0€f3џя0€ffџ(я0€f™џ5яH€fЬџ<я`€fџџ@яx€џ€333џ0€џ€3џ я€33џxя€f3џdя0€™3џ]яH€Ь3џZя`€џ3џXяx€33џШя€333џ0€3f3џPPH€3™3џPx`€3Ь3џPx€3џ3џPя€f3џмя0€f33џ ўџџџ !"#$ўџџџ&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ[onClipEvent (enterFrame) { _root.rotateTowards(this, _root._xmouse, _root._ymouse); } €€џџџ?џџ€€clipџџџџOџOџ€€€€scriptsџџџџџOOџџCPicPageџџ CPicLayerџџ CPicFrameџџCPicText€€?$Wџџџ…лџџЄф@РArialЬЬ™џ"„ўprogrammatic motionРArial™xџ"„ў РArial™xџ"„ўrotate towards a point€€€~“ю(И@bArialfџџџ"(each of the clips below calls a reusable function from its enterframe handler that rotates the clip towards a point (the mouse pointer). the function could be used to orient a spaceship towards a target or an animated bee towards a flower. clips can be rotated no matter how deeply nested they are (all coordinates are transformed to global coordinates).€€Њ†џё U00>0`Њ8 jњџЈщ8 іџ(иџџџ?џџ€€bgџџџџOџOџ€€џџ CPicSpriteNЫNЫџџџџ €в в џџџџ[onClipEvent (enterFrame) { _root.rotateTowards(this, _root._xmouse, _root._ymouse); }  €FЖFЖџџџџ[onClipEvent (enterFrame) { _root.rotateTowards(this, _root._xmouse, _root._ymouse); } €€џџџ?џџ€€clipsџџџџO€џџ€€€€џџџ?џџџp/* ******************************** *** FUNCTION rotateTowards() *** ******************************** > DESCRIPTION: Rotates clip towards the point x, y. > PARAMETERS: clip The clip to rotate. targetX The (global!) x-coord towards which to rotate. targetY The (global!) y-coord towards which to rotate. */ function rotateTowards (clip, targetX, targetY) { // Create a point object that stores the x and y coordinates of // the clip relative to its parent's registration point var clipPoint = {x:clip._x, y:clip._y}; // Convert local clip coordinates to global (Stage) coordinates clip._parent.localToGlobal(clipPoint); // Measure the distance between the registration // point of the clip and the target point var deltaX = targetX - clipPoint.x; var deltaY = targetY - clipPoint.y; // Calculate the angle of the line from the registration point // of this clip to the mouse var rotationRadian = Math.atan2(deltaY, deltaX); // Convert the radian version of the angle to degrees var rotationAngle = radiansToDegrees(rotationRadian); // Update the rotation of this clip to point to the mouse clip._rotation = rotationAngle; } // Converts radians to degrees. There are 2pi radians per 360 degrees. function radiansToDegrees(radians) { return (radians/Math.PI) * 180; }€€scripts: rotateTowards()џџџџџOOџ€€neratorџџџџќџџ CColorDefџ€џ€џ џџ CDocumentPage Page 1Scene 1j\M:0в„D;€ Symbol 2 nested clipCD; €„D;€ Symbol 1pointer6D; зƒD;ј*@h…hhhh™™џРРРџ ДVector::Template"PublishFormatProperties::generatorџџџџќџџ CColorDefџ€џ€џ€3џPя€fџPя0€™џPяH€ЬџPя`€џџPяx€3џя€33џ(я€3fџ<я0€3™џCяH€3ЬџFя`€3џџHяx€fџя0€f3џя0€ffџ(я0€f™џ5яH€fЬџ<я`€fџџ@яx€џ€333џ0€џ€3џ я€33џxя€f3џdя0€™3џ]яH€Ь3џZя`€џ3џXяx€33џШя€333џ0€3f3џPPH€3™3џPx`€3Ь3џPx€3џ3џPя€f3џмя0€f33џPH€ff3џ(PH€f™3џ<x`€fЬ3џCx€fџ3џFя€џ€fffџ`€џ€fџ я0€3fџŒя0€ffџxя0€™fџkяH€Ьfџdя`€џfџ`яx€3fџДя0€33fџ PH€3ffџxPH€3™fџdx`€3Ьfџ]x€3џfџZя€ffџШя0€f3fџШPH€fffџ`€f™fџP0x€fЬfџPx€fџfџPяЈ€џ€™™™џ€џ€™џ яH€3™џ“яH€f™џ…яH€™™џxяH€Ь™џnя`€џ™џhяx€3™џ­яH€33™џ x`€3f™џŒx`€3™™џxx`€3Ь™џkx€3џ™џdя€f™џЛяH€f3™џДx`€ff™џ 0x€f™™џx0x€fЬ™џdx€fџ™џ]яЈ€џ€ЬЬЬџР€џ€Ьџ я`€3Ьџ–я`€fЬџŒя`€™Ьџ‚я`€ЬЬџxя`€џЬџpяx€3ЬџЊя`€33Ьџ x€3fЬџ“x€3™Ьџ…x€3ЬЬџxx€3џЬџnя€fЬџДя`€f3Ьџ­x€ffЬџ x€f™ЬџŒx€fЬЬџxx€fџЬџkяЈ€џ€џџџџ№€џ€џџ яx€3џџ˜яx€fџџяx€™џџˆяx€Ьџџ€яx€џџџxяx€3џџЈяx€33џџ я€3fџџ–я€3™џџŒя€3Ьџџ‚я€3џџџxя€fџџАяx€f3џџЊя€ffџџ яЈ€f™џџ“яЈ€fЬџџ…яЈ€fџџџxяЈ€џ€џџяx€џ€™џяH€™3џ яH€™fџяH€™™џ(яH€™Ьџ2я`€™џџ8яx€Ьџя`€Ь3џ я`€Ьfџя`€Ь™џя`€ЬЬџ(я`€Ьџџ0яx€џџяx€џ3џяx€џfџяx€џ™џяx€џЬџ яx€џџџ(яx€џ€џџPяx€џ€™3џуяH€™33џx`€™f3џx`€™™3џ(x`€™Ь3џ5x€™џ3џ<я€Ь3џця`€Ь33џx€Ьf3џ x€Ь™3џx€ЬЬ3џ(x€Ьџ3џ2я€џ3џшяx€џ33џя€џf3џ я€џ™3џя€џЬ3џя€џџ3џ(я€џ€џџ яx€џ€™fџеяH€™3fџмx`€™ffџ0x€™™fџ(0x€™Ьfџ<x€™џfџCяЈ€Ьfџмя`€Ь3fџуx€Ьffџx€Ь™fџx€ЬЬfџ(x€Ьџfџ5яЈ€џfџряx€џ3fџця€џffџяЈ€џ™fџ яЈ€џЬfџяЈ€џџfџ(яЈ€џ€џџџ(яx€џ€™™џШяH€™3™џШx`€™f™џШ0x€™™™џ€™Ь™џPPЈ€™џ™џPяР€Ь™џвя`€Ь3™џеx€Ьf™џмx€Ь™™џPЈ€ЬЬ™џ(PЈ€Ьџ™џ<яР€џ™џияx€џ3™џмя€џf™џуяЈ€џ™™џяР€PH€ff3џ(PH€f™3џ<x`€fЬ3џCx€fџ3џFя€џ€fffџ`€џ€fџ я0€3fџŒя0€ffџxя0€™fџkяH€Ьfџdя`€џfџ`яx€3fџДя0€33fџ PH€3ffџxPH€3™fџdx`€3Ьfџ]x€3џfџZя€ffџШя0€f3fџШPH€fffџ`€f™fџP0x€fЬfџPx€fџfџPяЈ€џ€™™™џ€џ€™џ яH€3™џ“яH€f™џ…яH€™™џxяH€Ь™џnя`€џ™џhяx€3™џ­яH€33™џ x`€3f™џŒx`€3™™џxx`€3Ь™џkx€3џ™џdя€f™џЛяH€f3™џДx`€ff™џ 0x€f™™џx0x€fЬ™џdx€fџ™џ]яЈ€џ€ЬЬЬџР€џ€Ьџ я`€3Ьџ–я`€fЬџŒя`€™Ьџ‚я`€ЬЬџxя`€џЬџpяx€3ЬџЊя`€33Ьџ x€3fЬџ“x€3™Ьџ…x€3ЬЬџxx€3џЬџnя€fЬџДя`€f3Ьџ­x€ffЬџ x€f™ЬџŒx€fЬЬџxx€fџЬџkяЈ€џ€џџџџ№€џ€џџ яx€3џџ˜яx€fџџяx€™џџˆяx€Ьџџ€яx€џџџxяx€3џџЈяx€33џџ я€3fџџ–я€3™џџŒя€3Ьџџ‚я€3џџџxя€fџџАяx€f3џџЊя€ffџџ яЈ€f™џџ“яЈ€fЬџџ…яЈ€fџџџxяЈ€џ€џџяx€џ€™џяH€™3џ яH€™fџяH€™™џ(яH€™Ьџ2я`€™џџ8яx€Ьџя`€Ь3џ я`€Ьfџя`€Ь™џя`€ЬЬџ(я`€Ьџџ0яx€џџяx€џ3џяx€џfџяx€џ™џяx€џЬџ яx€џџџ(яx€џ€џџPяx€џ€™3џуяH€™33џx`€™f3џx`€™™3џ(x`€™Ь3џ5x€™џ3џ<я€Ь3џця`€Ь33џx€Ьf3џ x€Ь™3џx€ЬЬ3џ(x€Ьџ3џ2я€џ3џшяx€џ33џя€џf3џ я€џ™3џя€џЬ3џя€џџ3џ(я€џ€џџ яx€џ€™fџеяH€™3fџмx`€™ffџ0x€™™fџ(0x€™Ьfџ<x€™џfџCяЈ€Ьfџмя`€Ь3fџуx€Ьffџx€Ь™fџx€ЬЬfџ(x€Ьџfџ5яЈ€џfџряx€џ3fџця€џffџяЈ€џ™fџ яЈ€џЬfџяЈ€џџfџ(яЈ€џ€џџџ(яx€џ€™™џШяH€™3™џШx`€™f™џШ0x€™™™џ€™Ь™џPPЈ€™џ™џPяР€Ь™џвя`€Ь3™џеx€Ьf™џмx€Ь™™џPЈ€ЬЬ™џ(PЈ€Ьџ™џ<яР€џ™џияx€џ3™џмя€џf™џуяЈ€џ™™џяР€џЬ™џяР€џџ™џ(яР€џ€џџџxяx€џ€™ЬџОя`€™3ЬџЛx€™fЬџДx€™™Ьџ PЈ€™ЬЬџxPЈ€™џЬџdяР€ЬЬџШя`€Ь3ЬџШx€ЬfЬџШx€Ь™ЬџШPЈ€ЬЬЬџР€ЬџЬџPяи€џЬџаяx€џ3Ьџвя€џfЬџеяЈ€џ™ЬџмяР€џЬЬџяи€џџЬџ(яи€џ€џџџШяx€џ€™џџИяx€™3џџДя€™fџџ­яЈ€™™џџ яР€™ЬџџŒяР€™џџџxяР€ЬџџРяx€Ь3џџОя€ЬџЬ™џяР€џџ™џ(яР€џ€џџџxяx€џ€™ЬџОя`€™3ЬџЛx€™fЬџДx€™™Ьџ PЈ€™ЬЬџxPЈ€™џЬџdяР€ЬЬџШя`€Ь3ЬџШx€ЬfЬџШx€Ь™ЬџШPЈ€ЬЬЬџР€ЬџЬџPяи€џЬџаяx€џ3Ьџвя€џfЬџеяЈ€џ™ЬџмяР€џЬЬџяи€џџЬџ(яи€џ€џџџШяx€џ€™џџИяx€™3џџДя€™fџџ­яЈ€™™џџ яР€™ЬџџŒяР€™џџџxяР€ЬџџРяx€Ь3џџОя€ЬfџџЛяЈ€Ь™џџДяР€ЬЬџџ яи€Ьџџџxяи€џџџШяx€џ3џџШя€џfџџШяЈ€џ™џџШяР€џЬџџШяи€џџџџ№€џ€џџџџџџџ€џџџџџџџ€џџџџџ€џџџџџ€џџџџџ€џf§џ`џџџџzџџџџ€™fџЊџЬџџџџџџ€џџџ*џџџ]џџџџџЊџџдџџџџџџЉЕеUџџh33џџ я€3fџџ–я€3™џџŒя€3Ьџџ‚я€3џџџxя€fџџАяx€f3џџЊя€ffџџ яЈ€f™џџ“яЈ€fЬџџ…яЈ€fџџџxяЈ€џ€џџяx€џ€™џяH€™3џ яH€™fџяH€™™џ(яH€™Ьџ2я`€™џџ8яx€Ьџя`€Ь3џ я`€Ьfџя`€Ь™џя`€ЬЬџ(я`€ЬџfџџЛяЈ€Ь™џџДяР€ЬЬџџ яи€Ьџџџxяи€џџџШяx€џ3џџШя€џfџџШяЈ€џ™џџШяР€џЬџџШяи€џџџџ№€џ€џџџџџџџ€џџџџџџџ€џџџџџ€џџџџџ€џџџџџ€џf§џ`џџџџzџџџџ€™fџЊџЬџџџџџџ€џџџ*џџџ]џџџџџЊџџдџџџџџџЉЕеUџџh