FlashÖÆ×÷ÃÀÀöµÄòßòÑ·ÉÎèЧ¹û¶¯»
×÷Õß ØýÃû¼¼Êõ
À´Ô´ ·þÎñÆ÷¼¼Êõ
ä¯ÀÀ
·¢²¼Ê±¼ä 2012-07-11
ÑÝʾЧ¹û£º µã»÷ä¯ÀÀ¸ÃÎļþ µã»÷ä¯ÀÀ¸ÃÎļþ ¡¡¡¡ÖÆ×÷²½Ö裺 ¡¡¡¡1.н¨Á¢Ò»¸öFlashÎĵµ£¬ÐÞ¸ÄÆäÊôÐÔÈçÏÂͼËùʾ£º ¡¡¡¡2.ÔÚÖ÷³¡¾°ÖаÑͼ²ã1¸ÄÃûΪback£¬ÕâÊDZ³¾°²ã£¬ÎÒÃÇÑ¡Ôñ¾ØÐι¤¾ß»æÖÆÒ»¸ö550*300µÄ¾ØÐÎÕýºÃºÍÎę̀Öغϣ¬ÔÚÕâÀïҪʹÓûìÉ«Æ÷Ãæ°å£¬ÉèÖÃÏßÐÔÌî³äЧ¹ûÈçÏÂͼ£º ¡¡¡¡3.Ö®ºóÎÒÃÇн¨Ò»¸öÔª¼þ£¬»Ò»Ð©²Ý£¬ÎªÁËÈö¯»Ð§¹û¸üºÃÄã¿ÉÒÔÈòÝÒ²¶¯ÆðÀ´£¬ÔÚÕâÀïÎÒÖÆ×÷µÄÊÇÒ»¸ö¾²Ö¹µÄͼ£¬ÈçÏÂÍ**ùʾ£º ¡¡¡¡4.½ÓÏÂÀ´ÎÒÃÇÖÆ×÷òßòѶ¯»£¬òßòѶ¯»ÆäʵֻÊÇòßòѵÄËĸö³á°òÔÚ¶¯£¬ËùÒÔÎҵķ½·¨ÊÇÏȽ¨Á¢³á°ò¾²Ö¹µÄÔª¼þ£¬È»ºó½¨Á¢³á°ò¶¯µÄÔª¼þ£¬È»ºó×éÖ¯³ÉΪһ¸öòßòѵçÓ°¼ô¼Ôª¼þ£®»æÖƹý³ÌÈçÏ£º ¡¡¡¡ÃÀ»¯Ò»Ï³á°ò£º ¡¡¡¡×éÖ¯³ÉÒ»¸öòßòÑ£¬°Ñ³á°òÐýתһϾͿÉÒÔÁË£¡Ôڴ˲»ÏêϸÐðÊö£® ¡¡¡¡¼ÌÐøÃÀ»¯òßòÑÉíÌ壺 ¡¡¡¡ÃÀ»¯Ò»ÏÂòßòѵijá°ò£º ¡¡¡¡×éÖ¯³ÉÒ»¸öЧ¹û½ÏºÃµÄòßòÑ£º ¡¡¡¡5.ÕâʱÎÒÃÇн¨Á¢Ò»¸öµçÓ°¼ô¼Ôª¼þ£¬ÃüÃûΪtrans£¬»æÖÆÒ»¸öСµÄ°×É«¾ØÐΣ¬Ð§¹ûÈçÏ£¨×¢ÒâÎÒÒѾ½«ÏÔʾ±ÈÀýµ÷µ½ÁË200£¥£©£º ¡¡¡¡6.»Øµ½Ö÷³¡¾°£¬ÐÂÌí¼ÓÒ»¸ö£¢²Ý£¢²ã£¬È»ºó°ÑÎÒÃÇÖÆ×÷µÄ²ÝÍϳöÀ´£¬Á¬ÐøÍϳöÁ½´Î£¬Ê¹²Ý¿´ÆðÀ´´í×Û¸´ÔÓ£¬Ð§¹ûÈçÏ£º ¡¡¡¡7.н¨Á¢Ò»¸öͼ²ã£¢òßòÑ£¢£¬È»ºó°ÑòßòѵçÓ°¼ô¼´Ó¿áÖÐÍϳöÀ´£¬ÒÀ´ÎÖظ´5´Î£¬´ò¿ªÊôÐÔÃæ°å£¬·Ö±ð¸øòßòÑÃüÃûʵÀýÃûΪfly1£¬fly2£¬fly3£¬fly4£¬fly5£¬Ð§¹ûÈçÏ£º ¡¡¡¡8.н¨Á¢Ò»¸öͼ²ã£¢trans£¢£¬È»ºó°ÑòßòѵçÓ°¼ô¼´Ó¿áÖÐÍϳöÀ´£¬ÒÀ´ÎÖظ´5´Î£¬´ò¿ªÊôÐÔÃæ°å£¬·Ö±ð¸øòßòÑÃüÃûʵÀýÃûΪtransp1£¬transp2£¬transp3£¬transp4£¬transp5£¬Ð§¹ûÈçÏ£º ¡¡¡¡9.н¨Á¢Ò»¸öͼ²ã£¢action£¢£¬°´F9´ò¿ª¶¯×÷Ãæ°åÌí¼ÓÈçÏÂÖ¸Áî´úÂ룺 probability = 30; scene_width = 550; scene_height = 300; speed = 0.03; MovieClip.prototype.smoothMove = function (speed, targetx, targety) { this._x += speed*(targetx-this._x); this._y += speed*(targety-this._y); }; MovieClip.prototype.rotateTo = function (targetx, targety) { var diffX = targetx-this._x; var diffY = targety-this._y; this._rotation = Math.atan2 (diffY, diffX)*180/Math.PI; }; _root.transp1.onEnterFrame = function () { if (random (probability) == 0) { target1X = random (scene_width); target1Y = random (scene_height); } this._visible = 0; this.smoothMove (speed, target1X, target1Y); }; _root.fly1.onEnterFrame = function () { this.smoothMove (speed, transp1._x, _root.transp1._y); this.rotateTo (_root.transp1._x, _root.transp1._y); }; _root.transp2.onEnterFrame = function () { if (random (probability) == 0) { target2X = random (scene_width); target2Y = random (scene_height); } this._visible = 0; this.smoothMove (speed, target2X, target2Y); }; _root.fly2.onEnterFrame = function () { this.smoothMove (speed, transp2._x, _root.transp2._y); this.rotateTo (_root.transp2._x, _root.transp2._y); }; _root.transp3.onEnterFrame = function () { if (random (probability) == 0) { target3X = random (scene_width); target3Y = random (scene_height); } this._visible = 0; this.smoothMove (speed, target3X, target3Y); }; _root.fly3.onEnterFrame = function () { this.smoothMove (speed, transp3._x, _root.transp3._y); |
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |
Äã¿ÉÄܶÔÏÂÃæµÄÎÄÕ¸ÐÐËȤ
ÉÏһƪ: »·ÈÆÁ¢ÌåͼƬЧ¹ûÏÂһƪ: ½ðÉÁ¿ÍAS¿ÎÌÃʵ¼¶þ
¹ØÓÚFlashÖÆ×÷ÃÀÀöµÄòßòÑ·ÉÎèЧ¹û¶¯»µÄËùÓÐÆÀÂÛ