ࡱ> (Root Entry p|YrRASH yW+*%Contents3Page 1?Symbol 7- '7) !"#$%&Ki+,-./012j45689:;<=>?@LMNOPQRSklRoot Entry p|YrRASHN+*%Contents\Page 1?Symbol 7-i 7T !"#$%&KLMNOPQRSUVWXYZ[j]^_`abcdefghkl * !"#$%&'()+,./012346789:<=>@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}Symbol 1 Symbol 10C,Symbol 12~Symbol 11 Symbol 5Symbol 4 Symbol 3uSymbol 2Symbol 9 ;Symbol 85jCPicPage CPicLayer CPicFrameT ^! 0 !0! 0 !0! 0 0!0 0!0 0!0000000!0 0!0 0!0 0 !0 0 !0!3A!0  0 03 !! 0 00!3A!3! 0 3!0  0 3 0 0!!3~  0!3 !0  0!03A!!3!0  3A~!0  3  3!3A 3=~!!3 !!0 03A  0!03! 3A 0 !0!03A!00 3a b !00 33A 3 ~3D 00 03  ?Y4 gridO CPicSprite0 J0d;v1_1 !Q J!Qdv1_3  JdY)v1_4 Aq JAqdv^v1_5  Jd-(v1_2  Jdiv1_6 p Jpdzv2_1  Jdov2_3 !q J!qd\v2_4  Jdh&v2_5 P JPdxv2_2 A JAdIv2_6 P JPdjv3_1 q Jqdydv3_3  Jd%Cv3_4  JdNv3_5 o Jodazv3_2 " J"d@ v3_6 N JNdpv4_1 o JodSv4_3  Jd;)v4_4 ! J!dj v4_5 q Jqd@v4_2   J dv4_6 o Jod(%v5_1  Jduv5_3 p  Jp dFv5_4  JdTv5_5 P JPdv5_2 A JAd ?v5_6 . J.d0v6_1 O! JO!d?v6_3  Jdev6_4 oA JoAd/Av6_5  Jd0v6_2  JdXv6_6?=& vertexOO?g gridRotatorOCPicPage CPicLayer CPicFrame&??~.4X,4?~44„4|4?.4X,|?W? Layer 2OOSymbol 5Symbol 4 Symbol 3uSymbol 2'%ـ[xZK0 08aP?4fff'%ـ[xZK0 08aP?6'%ـ[xZK0 08aP?^'%ـ[xZK0CPicPage CPicLayer CPicFramej5jJ45j<i4j<*i? & Layer 2k Layer 1O 08aP?V Layer 1OCPicPage CPicLayer CPicFrame}}9/j]= % 22 /,pր= 0*;H4 ;P:4 TP ;0;L#j 2 2̀xF y2 2 22xC[!>?~n Layer 1OtCPicPage CPicLayer CPicFrame CPicSprite md Vclip?2 Layer 3OO 0 0 p0pCPicPage CPicLayer CPicFrame?X Layer 1O 0 p3p p3@CPicPage CPicLayer CPicFrame CPicSprCPicPage CPicLayer CPicFrame CPicShape aX, KD0.$0 @@ F0,0:?4) aF# M0= 50h>z<*v>l02>z^0? > a4N.D>/<.lj0 0Z0XH0,D0@?, 4aM8,00DBx&0@D. 0"?M8 4aK9x,00d,dB000,,d?A h4aG9.00^8.60`0l>J?M w;aBC,0 v0b"J0<040&?a aBw;r8>/0D$0, 0D,$?V3 ah4G&8.^0v z<L6h02?, aX, KD0.$0 0:F0,@ ?k aF# M0= 50h>z<*v>l02>z^0?x a4N.D>/<.lj0 0Z0XH0,D0@?O 4aM8,00DBx&06J2 0"? 4aK9x,00d06dB0b,dB? h4aG9.00^8.60`0l>J? H w;aBC,0 v0b"J0<040&?n aBw;r8>/0D$0, 0D,$?1 aGh4&8.^0v 0|00:2zN ?8' aX, KD0.$0 0:F0,@ ?a$ aF# M0= 50h>z<*v>l02>z^0?k a4N.D>/<.lj0 0Z0XH0,D0@?hN 4aM8,00DBx&06J2 0"?2 4aK9`,00d,d<000,,d?b h4aG9.00^8.60`0l>J? w;aSymbol 1 Symbol 10C,Symbol 12~Symbol 11  * !"#$%&'()+,./012346789:<=>@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}?2 Layer 3OO 0 0 p0pCPicPage CPicLayer CPicFrame?X Layer 1O 0 p3p p3@CPicPage CPicLayer CPicFrame CPicSprCPicPage CPicLayer CPicFrame((?Ri Layer 1OCPicPage CPicLayer CPicFrame CPicSprite dJ gridRotatorite  #Hgrid?) Layer 3OO CPicButtonq4 q4Zz >_rootrotate10 4 4]n >_rootrotate-10 ?] butonsO? //-------------------INICIALIZATION /* 1=tree 2=red_ball */ world = [[1, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 0, 0, 0, 1, 0], [0, 0, 2, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]; zIndex = 0; //-------------------FUNCTIONS-------------------- function toRadian(degree) { return (Math.PI/180*degree); } //---------------------------- function toDegrees(radian) { return ((radian*180)/Math.PI); } //---------------------------- function selectObject(objIndex) { if(objIndex==0){ return ("tile0"); } if(objIndex==1){ return ("tile1"); } if(objIndex==2){ return ("tile2"); } } //---------------------------- function putObjects() { _root.attachMovie("empty", "map", 10); _root.map._x = _root.grid._x; _root.map._y = _root.grid._y; for (i=0; i<6; i++) { for (j=0; j<6; j++) { //creamos objetos _root.map.attachMovie(selectObject(world[i][j]), "ob"+(i+1)+"_"+(j+1), zIndex++); //propiedades objeto _root.map["ob"+(i+1)+"_"+(j+1)].catetoHorizontal = _root.grid["v"+(i+1)+"_"+(j+1)]._x; _root.map["ob"+(i+1)+"_"+(j+1)].catetoVertical = _root.grid["v"+(i+1)+"_"+(j+1)]._y; catetoVerticalCuadrado = _root.map["ob"+(i+1)+"_"+(j+1)].catetoVertical*_root.map["ob"+(i+1)+"_"+(j+1)].catetoVertical; catetoHorizontalCuadrado = _root.map["ob"+(i+1)+"_"+(j+1)].catetoHorizontal*_root.map["ob"+(i+1)+"_"+(j+1)].catetoHorizontal; _root.map["ob"+(i+1)+"_"+(j+1)].radio = Math.sqrt((catetoVerticalcuadrado)+(catetoHorizontalcuadrado)); _root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian = Math.atan2(_root.map["ob"+(i+1)+"_"+(j+1)].catetoVertical, _root.map["ob"+(i+1)+"_"+(j+1)].catetoHorizontal); //posicionamos trigonometricamente _root.map["ob"+(i+1)+"_"+(j+1)]._x = _root.map["ob"+(i+1)+"_"+(j+1)].radio*Math.cos(_root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian); _root.map["ob"+(i+1)+"_"+(j+1)]._y = (_root.map["ob"+(i+1)+"_"+(j+1)].radio*Math.sin(_root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian))/2; } } } //---------------------------- function rotate(plusAngle) { for (i=0; i<6; i++) { for (j=0; j<6; j++) { //actualizacion del angulo _root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian += _root.toRadian(plusAngle); //posicionamos trigonometricamente _root.map["ob"+(i+1)+"_"+(j+1)]._x = _root.map["ob"+(i+1)+"_"+(j+1)].radio*Math.cos(_root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian); _root.map["ob"+(i+1)+"_"+(j+1)]._y = (_root.map["ob"+(i+1)+"_"+(j+1)].radio*Math.sin(_root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian))/2; //control de depths zIndex++; _root.map["ob"+(i+1)+"_"+(j+1)].swapDepths(_root.map["ob"+(i+1)+"_"+(j+1)]._y+300); //rotamos el clip if (plusAngle>0) { _root.map["ob"+(i+1)+"_"+(j+1)].clip.nextFrame(); } else { if (_root.map["ob"+(i+1)+"_"+(j+1)].clip._currentframe>1) { _root.map["ob"+(i+1)+"_"+(j+1)].clip.prevFrame(); } else { _root.map["ob"+(i+1)+"_"+(j+1)].clip.gotoAndStop("lastframe"); } } } } } //------------------EXECUTIONS--------------------------- _root.putObjects(); stop();  scriptOOCPicPage CPicLayer CPicFrame CPicSprite md) CDocumentPagePage 1Scene 1H@J@ Symbol 10tileClip C@. Symbol 10E@Symbol 9empty 6=@'emptySymbol 96=@Symbol 8tile0oG@4tile0Symbol 8uG@ Symbol 11tile1 ~G@6tile1 tile0 copyG@ Symbol 12tile2 G@8tile2 tile1 copysH@Symbol 7red_ballO@2red_ballSymbol 7lH@Symbol 5treeN@treeSymbol 5M|@Symbol 4 rotate_button(M@Symbol 4I@Symbol 2 gridRotatorQL@ Symbol 2=@Symbol 1vertexI@ OO#rrf"ff3πP̀`(ǀKс򀬀4ŋ.(:΀)c$2z+ qz4^5GEw-a,J,3g4 :$14x77o /WL>.߀Nߒ #ր@@*2oھ?ـPq& o% ?Symbol 1z@ pphhhh CColorDef   3P fP0 PH P` Px 3 33( 3f<0 3CH 3F` 3Hx f0 f30 ff(0 f5H f<` f@x  3330  3 33x f3d0 3]H 3Z` 3Xx 33 3330 3f3PPH 33Px` 33Px 33P f30 f33PH ff3(PH f3<x` f3Cx f3F  fff`  f0 3f0 ffx0 fkH fd` f`x 3f0 33fPH 3ffxPH 3fdx` 3f]x 3fZ ff0 f3fPH fff` ffP0x ffPx ffP    H 3H fH xH ̙n` hx 3H 33x` 3fx` 3xx` 3̙kx 3d fH f3x` ff0x fx0x f̙dx f]    ` 3` f` ` x` px 3` 33x 3fx 3x 3xx 3n f` f3x ffx fx fxx fk    x 3x fx x x xx 3x 33 3f 3 3 3x fx f3 ff f f fx  x  H 3 H fH (H 2` 8x ` 3 ` f` ̙` (` 0x x 3x fx x  x (x  Px  3H 33x` f3x` 3(x` 35x 3< 3` 33x f3 x ̙3x 3(x 32 3x 33 f3 3 3 3(  x  fH 3fx` ff0x f(0x f<x fC f` 3fx ffx ̙fx f(x f5 fx 3f ff f f f(  (x  H 3x` f0x  ̙PP P ` 3x fx ̙P ̙(P < x 3 f  ̙ (  xx  ` 3x fx P xP d ` 3x fx ̙P  P x 3 f   (  x  x 3 f   x x 3 f ̙  x x 3 f       x   f`zf *] Symbol 2 gridRotatorQL@ Symbol 2&@Symbol 1vertexI@ Symbol 1z@9@hhhh CColorDef   3P fP0 PH P` Px 3 33( 3f<0 3CH 3F` 3Hx f0 f30 ff(0 f5H f<` f@x  3330  3 33x f3d0 3]H 3Z` 3Xx 33 3330 3f3PPH 33Px` 33Px 33P f30 f33PH ff3(PH f3<x` f3Cx f3F  fff`  f0 3f0 ffx0 fkH fd` f`x 3f0 33fPH 3ffxPH 3fdx` 3f]x 3fZ ff0 f3fPH fff` ffP0x ffPx ffP    H 3H fH xH ̙n` hx 3H 33x` 3fx` 3xx` 3̙kx 3d fH f3x` ff0x fx0x f̙dx f]    ` 3` f` ` x` px 3` 33x 3fx 3x 3xx 3n f` f3x ffx fx fxx fk    x 3x fx x x xx 3x 33 3f 3 3 3x fx f3 ff f f fx  x  H 3 H fH (H 2` 8x ` 3 ` f` ̙` (` 0x x 3x fx x  x (x  Px  3H 33x` f3x` 3(x` 35x 3< 3` 33x f3 x ̙3x 3(x 32 3x 33 f3 3 3 3(  x  fH 3fx` ff0x f(0x f<x fC f` 3fx ffx ̙fx f(x f5 fx 3f ff f f f(  (x  H 3x` f0x  ̙PP P ` 3x fx ̙P ̙(P < x 3 f  ̙ (  xx  ` 3x fx P xP d ` 3x fx ̙P  P x 3 f   (  x  x 3 f   x x 3 f ̙  x x 3 f       x   f`zf *] BC,0 v0b"J0<040&?T: aBw;r8>/0D$0, 0D,$?m ah4G&8.^0v 0b|00:z?w aX, KD0.$0 @@ F0,0:?q3 aF# M0= 50hh< D<*D^0>z?] a4N.D>/<.lj0 $0 J000@?HN 4aM8,00DB0"06J2J2x&?xg 4aK9`,00d06dB0J2,d<? p h4aG9.00^08P 0:0,J6 68.?J w;aBC,0 J0<. &#0~" 00,&v?)L aBw;r8>/00D$0,,$ D?  aGh4&8.^0v 0|00:2zN ?e frames animO$?);stop();?KgotoAndStop(1); scriptOO#?/? lastframec labelsOOite  Iogrid?  Layer 3OO CPicButtonq4 q4S >_rootrotate10 4 4N >_rootrotate-10 ?q( butonsO?@ //-------------------INICIALIZATION /* 1=tree 2=red_ball */ world = [[1, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 0, 0, 0, 1, 0], [0, 0, 2, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]; zIndex = 0; //-------------------FUNCTIONS-------------------- function toRadian(degree) { return (Math.PI/180*degree); } //---------------------------- function toDegrees(radian) { return ((radian*180)/Math.PI); } //---------------------------- function selectObject(objIndex) { if(objIndex==0){ return ("tile0"); } if(objIndex==1){ return ("tile1"); } if(objIndex==2){ return ("tile2"); } } //---------------------------- function putObjects() { _root.attachMovie("empty", "map", 10); _root.map._x = _root.grid._x; _root.map._y = _root.grid._y; for (i=0; i<6; i++) { for (j=0; j<6; j++) { //creamos objetos _root.map.attachMovie(selectObject(world[i][j]), "ob"+(i+1)+"_"+(j+1), zIndex++); //propiedades objeto _root.map["ob"+(i+1)+"_"+(j+1)].catetoHorizontal = _root.grid["v"+(i+1)+"_"+(j+1)]._x; _root.map["ob"+(i+1)+"_"+(j+1)].catetoVertical = _root.grid["v"+(i+1)+"_"+(j+1)]._y; catetoVerticalCuadrado = _root.map["ob"+(i+1)+"_"+(j+1)].catetoVertical*_root.map["ob"+(i+1)+"_"+(j+1)].catetoVertical; catetoHorizontalCuadrado = _root.map["ob"+(i+1)+"_"+(j+1)].catetoHorizontal*_root.map["ob"+(i+1)+"_"+(j+1)].catetoHorizontal; _root.map["ob"+(i+1)+"_"+(j+1)].radio = Math.sqrt((catetoVerticalcuadrado)+(catetoHorizontalcuadrado)); _root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian = Math.atan2(_root.map["ob"+(i+1)+"_"+(j+1)].catetoVertical, _root.map["ob"+(i+1)+"_"+(j+1)].catetoHorizontal); //posicionamos trigonometricamente _root.map["ob"+(i+1)+"_"+(j+1)]._x = _root.map["ob"+(i+1)+"_"+(j+1)].radio*Math.cos(_root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian); _root.map["ob"+(i+1)+"_"+(j+1)]._y = (_root.map["ob"+(i+1)+"_"+(j+1)].radio*Math.sin(_root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian))/2; } } } //---------------------------- function rotate(plusAngle) { for (i=0; i<6; i++) { for (j=0; j<6; j++) { //actualizacion del angulo _root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian += _root.toRadian(plusAngle); //posicionamos trigonometricamente _root.map["ob"+(i+1)+"_"+(j+1)]._x = _root.map["ob"+(i+1)+"_"+(j+1)].radio*Math.cos(_root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian); _root.map["ob"+(i+1)+"_"+(j+1)]._y = (_root.map["ob"+(i+1)+"_"+(j+1)].radio*Math.sin(_root.map["ob"+(i+1)+"_"+(j+1)].anguloRadian))/2; //control de depths zIndex++; _root.map["ob"+(i+1)+"_"+(j+1)].swapDepths(_root.map["ob"+(i+1)+"_"+(j+1)]._y+300); //rotamos el clip if (plusAngle>0) { _root.map["ob"+(i+1)+"_"+(j+1)].clip.nextFrame(); } else { if (_root.map["ob"+(i+1)+"_"+(j+1)].clip._currentframe>1) { _root.map["ob"+(i+1)+"_"+(j+1)].clip.prevFrame(); } else { _root.map["ob"+(i+1)+"_"+(j+1)].clip.gotoAndStop("lastframe"); } } } } } //------------------EXECUTIONS--------------------------- _root.putObjects(); stop();  scriptOOCPicPage CPicLayer CPicFrame CPicSprite md) CDocumentPagePage 1Scene 1H@I@ Symbol 10tileClip C@. Symbol 10E@Symbol 9empty 6=@'emptySymbol 96=@Symbol 8tile0oG@4tile0Symbol 8uG@ Symbol 11tile1 ~G@6tile1 tile0 copyG@ Symbol 12tile2 G@8tile2 tile1 copysH@Symbol 7red_ballO@2red_ballSymbol 7lH@Symbol 5treeN@treeSymbol 5M|@Symbol 4 rotate_button(M@Symbol 4I@Symbol 2 gridRotatorQL@ Symbol 2=@Symbol 1vertexI@ Symbol 1z@ pphhhh CColorDef   3P fP0 PH P` Px 3 33( 3f<0 3CH 3F` 3Hx f0 f30 ff(0 f5H f<` f@x  3330  3 33x f3d0 3]H 3Z` 3Xx 33 3330 3f3PPH 33Px` 33Px 33P f30 f33PH ff3(PH f3<x` f3Cx f3F  fff`  f0 3f0 ffx0 fkH fd` f`x 3f0 33fPH 3ffxPH 3fdx` 3f]x 3fZ ff0 f3fPH fff` ffP0x ffPx ffP    H 3H fH xH ̙n` hx 3H 33x` 3fx` 3xx` 3̙kx 3d fH f3x` ff0x fx0x f̙dx f]    ` 3` f` ` x` px 3` 33x 3fx 3x 3xx 3n f` f3x ffx fx fxx fk    x 3x fx x x xx 3x 33 3f 3 3 3x fx f3 ff f f fx  x  H 3 H fH (H 2` 8x ` 3 ` f` ̙` (` 0x x 3x fx x  x (x  Px  3H 33x` f3x` 3(x` 35x 3< 3` 33x f3 x ̙3x 3(x 32 3x 33 f3 3 3 3(  x  fH 3fx` ff0x f(0x f<x fC f` 3fx ffx ̙fx f(x f5 fx 3f ff f f f(  (x  H 3x` f0x  ̙PP P ` 3x fx ̙P ̙(P < x 3 f  ̙ (  xx  ` 3x fx P xP d ` 3x fx ̙P  P x 3 f   (  x  x 3 f   x x 3 f ̙  x x 3 f       x   f`zf *]  Zclip?} Layer 3OO *?L Layer 43CPicPage CPicLayer CPicFrame CPicSprite md ~clip?  Layer 3OO ,F?` Layer 43