╨╧рб▒с>■  ■                                                                                                                                                                                                                                                                                                                                                                                                                                                   ¤   ■                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           Root Entry            ■                                       Root Entry        pк|Yкr╧ГRASHpХ#mЫ¤┐АContents    ДPage 1             . Symbol 2        ▀        ¤   ■   ■    ■   ■                                                                                                                                                                                                                                                                                                                                                                                                                                   Symbol 1                                                 ■   ■     !"#$%&'()*+,-./0123456789■                                                                                                                                                                                                                                                                                             CPicPage   CPicLayer   CPicFrameААЩ╠ Щf є╕╕Р№0Р№0p0p   ?  ААLayer 1    OА  АА  CPicPage   CPicLayer   CPicFrameАА   ?  ААLayer 1    OА  АА  CPicPage   CPicLayer   CPicFrame  CPicTextААГ!s╠╦Г numClipsАArialЩ╠ "(20ААА?$W   Е█  0@└ArialЩx "t programmatic motionААА!kr'Ш@ИArial ╠Щ "(move your mouse, the clips will follow. click to generate new clips. use up arrow and down arrow to set the number of clips to generate.АААr'KЕ█  !∙  0@└Arial ─@ "t follow the leaderАААC рА TextField1рArialЩ╠ "(xААкЖ ёаU00>0`к8 j· ищ8 Ў (╪   ?  ААcontent    O O АА   CPicSpriteg)├g)├    TonClipEvent(enterframe) { _root.follow(this, _root._xmouse, _root._ymouse); } seedClipАА   ?  ААobject     OO АААкв■  кв■      шonClipEvent(mouseDown) { _root.generate(); _root.randomize(); } onClipEvent(keyDown) { if(Key.isDown(38)) { _root.numClips++; } else if (Key.isDown(40)) { if (_root.numClips > 1) { _root.numClips--; } } }АА   ?  АА logic clip    Щ3╠ АААА   ?   Ivar numClips = 20; function follow (clip, leaderX, leaderY) { if (clip._x != leaderX || clip._y != leaderY) { deltaX = clip._x - leaderX; deltaY = clip._y - leaderY; dist = math.sqrt((deltaX * deltaX) + (deltaY * deltaY)); moveX = clip.moveVectorMagnitude * (deltaX / dist); moveY = clip.moveVectorMagnitude * (deltaY / dist); if (clip.moveVectorMagnitude >= dist) { clip._x = leaderX; clip._y = leaderY; } else { clip._x -= moveX; clip._y -= moveY; } } } function randomize () { for(var i in _root) { if(typeof _root[i] == "movieclip") { _root[i]._x = Math.floor(Math.random() * 550); _root[i]._y = Math.floor(Math.random() * 400); _root[i].moveVectorMagnitude = Math.floor(Math.random() * 18) + 2; } } } function generate () { // clear the stage for(var i in _root) { if(typeof _root[i] == "movieclip") { if(_root[i]._name != "seedClip") { _root[i].removeMovieClip(); } } } // generate new clips for(var i = 1; i < numClips; i++) { seedClip.duplicateMovieClip("clip" + i, i); } }ААscripts    OА  АА    CDocumentPage Page 1Scene 1<цИ9({єЙ9А Symbol 2 logic clipЁЙ9 ЁЙ9А Symbol 1squareRцИ9*║яЙ9°*@hЕhhhhfЩ╠ └└└ ┤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Щ уяиА ЩЩ я└А ╠Щ я└А  Щ (я└А А   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 к ╠      А   *   ]     к  ╘      P|┤  h