flash import mx.transitions.Tweens;ʹÓÃ
flash mx.transitions.Tween;¿ÉÒÔʵÏÖÀàËÆÓÚ²¹¼ä¶¯»µÄЧ¹û£»µ¼Èë¸ÃÀࣺ
import mx.transitions.Tween;
È»ºóÓÃnew Tween£¨£©·½·¨¼´¿ÉʵÏÖ¡£New Tween()·½·¨¸ñʽ£º
new Tween£¨ÒªÓ¦Óò¹¼äµÄMC£¬ÒªÓ¦Óò¹¼äµÄMCµÄÊôÐÔ£¬»º¶¯Ð§¹û£¬ÊôÐԵijõʼֵ£¬ÊôÐԵĽáÊøÖµ£¬²¹¼äµÄ³¤¶È£¬²¹¼ä³¤¶ÈµÄÀàÐÍ£©
ÏÂÃæ½éÉÜÒ»ÏÂnew Tween£¨£©·½·¨µÄ²ÎÊý¡£
ÒªÓ¦Óò¹¼äµÄMC£ºÕâ¸ö¾ÍÊÇÒªÓ¦Óò¹¼äµÄMCÂÞ¡£
ÒªÓ¦Óò¹¼äµÄMCµÄÊôÐÔ£º²¹¼ä¶¯»Êµ¼Ê¾ÍÊÇÓÃÒ»¶¨µÄʱ¼ä¸Ä±ä¶ÔÏóµÄÊôÐÔ£¬±ÈÈçλÒƾÍÊǸıä_x»ò_yÊôÐÔ£¬»¹ÓÐÆäËüµÄÈç_xscal¡¢_alphaµÈ¡£ÕâÀï¾ÍÊÇÖ¸ÕâЩÊôÐÔµÄÃû³Æ¡£
»º¶¯Ð§¹û£ºÔÚÉÏÒ»½ÚÎÒÃÇÒѾ½éÉÜÁË¡£
ÊôÐԵijõʼֵ£º±ÈÈçÒªÓò¹¼äµÄÊÇ_xÊôÐÔ£¬ÎÒÃÇÒª½¨Á¢¶ÔÏó´ÓÎę̀×ó±ßÒƵ½ÓұߵIJ¹¼ä¶¯»£¬ÄÇô_xµÄ³õʼֵ¾ÍÓ¦ºÜС£¬±ÈÈç0£¬10£¬50µÈ£¬¼´¶ÔÏóÔÚÎę̀×ó±ßʱµÄ_xÖµ¡£
ÊôÐԵĽáÊøÖµ£º²¹¼ä½áÊøʱÊôÐÔµÄÖµ£¬±ÈÈç¶ÔÏóÒƵ½Îę̀ÓÒ±ßʱµÄ_xµÄÖµ¡£
²¹¼äµÄ³¤¶È£º¿ÉÒÔÓÐÁ½ÖÖ±íʾ·½Ê½£ºÃë»òÖ¡£¬µ«ÕâÀïÖ»ÊÇÒ»¸öÊýÖµ£¬ÊÇÓÃÃ뻹ÊÇÓÃÖ¡À´¼ÆËã²¹¼äÓɺóÃæÒ»¸ö²ÎÊýÀ´¾ö¶¨¡£
²¹¼ä³¤¶ÈµÄÀàÐÍ£º¾ö¶¨ÊÇÓÃÃ뻹ÊÇÓÃÖ¡À´¼ÆËã²¹¼ä£¬Èç¹ûΪtrueÔòÓÃÃëÀ´¼ÆË㣬Èç¹ûΪfalseÔòÓÃÖ¡À´¼ÆËã¡£
Àý£ºÏÂÃæÎÒÃÇÀ´ÖÆ×÷
Ò»¸ö²¹¼ä¶¯»£¬ÈÃÒ»¸öСÇò´ÓÎę̀µÄ×ó±ßÒƵ½Óұߣº
»Ò»¸öÇò°É£¬×ª»»ÎªMC£¬ÊµÀýÃû³ÆΪ£ºball_mc.
´ò¿ªÖ¡¶¯×÷Ãæ°å£¬ÊäÈëÈçÏ´úÂ룺
import mx.transitions.Tween;
import mx.transitions.easing.*; //ÒòΪÔÚÓõ½»º¶¯Ð§¹û£¬ËùÒÔ½«»º¶¯ÀàÒ²µ¼Èë
new Tween(ball_mc, "_x", None.easeNone, 20,500,3,true);
²âÊÔӰƬ£¬Ð¡Çò½«´Ó×ó±ß£¨20ÏñÊý´¦£©ÒƵ½Óұߣ¨500ÏñËØ´¦£©£¬ÓÃʱ3Ãë¡£
ÉÏÃæÕâ¸öЧ¹ûûÓÐÓûº¶¯Ð§¹û£¬ÈçÒª¼ÓÈ뻺¶¯Ð§¹û£¬ÓÐÒ»¸ö½ÐRegularµÄ»º¶¯À࣬Ëü½«ÊµÏÖ¼õÂýµÄЧ¹û£¬ÎÒÃǸøËüµ÷ÓÃeaseIn·½·¨£¬¼´ÔÚ²¹¼ä¿ªÊ¼Ê±¼õÂý£¬ÕâÑùÊDz»ÊǾÍʵÏÖÁË´ÓÂýµ½¿ìµÄЧ¹ûÄØ£¿½«´úÂë¸Ä³ÉÏÂÃæµÄ£º
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(ball_mc, "_x",Regular.easeIn, 20,500,40,false);
²âÊÔӰƬ£¬ÎÒÃÇ¿´µ½Ð¡ÇòÓÉÂýµ½¿ì´Ó×ó±ßÒƵ½Óұߡ£ÔÚÕâ¶Î´úÂëÖУ¬¸Ä±äÁËÈý¸ö²ÎÊý£¬Ò»¸öÊÇ»º¶¯Ð§¹û£¬Ò»¸öÊDz¹¼ä³¤¶ÈÓÃÁË40£¬ÔÙÒ»¸ö¾Í³¤¶ÈÀàÐÍÓÃÁËfalse,ÕâÑùÕâ¸ö²¹¼ä³¤¶È²»ÔÙÊÇ3Ã룬¶øÊÇ40Ö¡¡£
Ïà¹ØÎĵµ£º
1.ÏÂÔØÔ°æswf Áбí°æ,ʹÓÃdecomplierת»»³Éfla.
2.flash´ò¿ª.µ¯³ö×Ö·ûÐ޸ĶԻ°¿ò,Ëæ±ãµãÒ»ÏÂ,½øÈë.
3.ÔÚÖ÷³¡¾°ÉÏ,ÕÒµ½µÚÒ»²ã,µÚÒ»Õê,ÉÏÃæÓÐÒ»¸öa×ÖÑùµÄÄÇÕê,µã»÷³ö¶¯×÷±à¼´°¿Ú,ɾ³ýÀïÃæµÄÄÚÈÝ,Ôö¼Ó#include "as.as".
4.ÔÚ¿âÖÐÕÒµ½sprite18,ÕÒµ½Mask Layer 3¾ÍÊÇÒ»¸öÕÚÕÖ²ã, ÔÚ³¡¾°ÖÐÑ¡ÖÐÕâ²ãµÄÔª¼þ,Ò²¾ÍÊÇ ......
flashÓëjavascriptµÄ½»»¥¿ÉÄÜÌÖÂ۵ıȽ϶à,½ñÌìΪ´ó¼Ò½éÉÜÏÂÈçºÎʹÓÃflexÓëjavascript½øÐн»»¥
Ò»¡¢ÔÚJavaScriptÖе÷ÓÃFlex·½·¨
ÔÚFlexÖпÉÒÔÓÃExternalInterfaceÀ´µ÷ÓÃFlexµÄ·½·¨£¬Í¾¾¶ÊÇ
1.ͨ¹ýÔÚFlexÓ¦Óÿɵ÷Ó÷½·¨ÁбíÖÐÌí¼ÓÖ¸¶¨µÄ¹«Ó÷½·¨¡£ÔÚFlexÓ¦ÓÃÖÐͨ¹ýµ÷ÓÃaddCallback()¿ÉÒÔ°ÑÒ»¸ö·½·¨Ìí¼Óµ½´ËÁбíÖС£addC ......
ÔÚÒ³ÃæAÖмÓÔØÁËÒ»¸öflashÎļþa.swfºó£¬a.swfµÄ·¾¶¾Í»á±ä³ÉAËùÔڵķ¾¶¡£Èç¹ûÔÚa.swfÖÐÒª¼ÓÔØb.swfʱ£¬ÕâʱºòµÄ·¾¶¾ÍÒª½øÐÐÏàÓ¦µÄ´¦Àí¡£
±¾À´°´ÕÕa.swfºÍb.swfÔÚ´ÅÅÌÖеĴæ·Å·¾¶£¬aÖмÓÔØbÊǺܼòµ¥µÄ£¬µ«ÊÇÏÖÔÚa.swfÒѾ±ä³ÉÒ³ÃæAËùÔڵķ¾¶ÁË£¬Èç¹û»¹ÊÇ°²×°ÔÀ´µÄ·¾¶È¥¼ÓÔØb.swf¾Í¼ÓÔز»ÁËÁË¡£Òò´Ë¿ÉÒÔÔÚas´úÂë¼ÓÔØb ......
ROMÊÇRead Only MemoryµÄËõд¡£
RAMÊÇRandom Access MemoryµÄËõд¡£µäÐ͵ÄRAM¾ÍÊǼÆËã»úµÄÄÚ´æ¡£
RAMÓÐÁ½´óÀ࣬һÖÖ³ÆΪ¾²Ì¬RAM£¨Static RAM/SRAM£©£¬SRAMËٶȷdz£¿ì£¬ÊÇÄ¿Ç°¶Áд×î¿ìµÄ´æ´¢É豸ÁË£¬µ«ÊÇËüÒ²·Ç³£°º¹ó£¬ËùÒÔÖ»ÔÚÒªÇóºÜ¿Á¿ÌµÄµØ·½Ê¹Óã¬Æ©ÈçCPUµÄÒ»¼¶»º³å£¬¶þ¼¶»º³å¡£ÁíÒ»ÖÖ³ÆΪ¶¯Ì¬RAM£¨Dynamic RAM/DRAM£ ......
FlashÏîÄ¿¿ª·¢ÖжÔÃÀÊõËزĺͳÌÐòµÄ½áºÏʱһ¸ö½Ï·±ËöµÄÎÊÌâ¡£flaÖи÷Ôª¼þ¡¢¶ÔÏóµÄÃüÃû¡¢²ã´Î¡¢×ø±ê¶¼ÓнÏÑϸñµÄÒªÇó¡£Õâ¾ÍʹµÃÓкܶิÔÓ¡¢Öظ´ÐÔ¡¢·±ËöµÄ¹¤×÷£¬±ÈÈç˵ÉèÖÃÃû×Ö¡¢ÉèÖÃÀàÐÍ¡¢¸üÐÂÎļþµÈµÈ¡£
¶Ô½â¾öÕâ¸öÎÊÌ⣬Adobe¹Ù·½Ôç¾ÍÏëµ½Á˲¢ÇÒÌṩÁËÍêÕûµÄ½â¾ö·½°¸£¬ÄǾÍÊÇJSFL£¬flash jsµÄ½Å±¾ÓïÑÔ¡£¶ÔÕâ¸öÓïÑԵĽ ......