ÄúÏÖÔÚµÄλÖÃÊÇ£º Èí¼þ > Éè¼ÆÔÚÏß > ÍøÒ³ÌÕ°É > ¼¼Êõƽ̨ > HTMLѧϰ > ÕýÎÄ


-Win xpÖеĶàÖÖÍøÂç
-ÊÔÑéÊÔÑéÊÔÑéÊÔÑé
-ÓÃFreehandʵÏÖλͼʸÁ¿»¯
-ÍøÂçµç»°ÃæÃæ¹Û

Ä£ÄâdosÖÐÊäÈë×Ö·ûµÄЧ¹û
2000-08-03¡¤ ¡¤»ÆÕñÐÛ¡¤¡¤Yesky

¡Çë¿´×îºóЧ¹û£º

¡¡¡¡

¡¡¡¡1¡£½¨Á¢Îļþ¿ò

1£© °´Ctrl+F8н¨Ò»¸öµçÓ°Îļþ£¨movie clip£©£¬È¡ÃûΪ¡°character¡±£»

2£©Ñ¡Ôñ¡°ÎÄ×Ö¡±¹¤¾ß£¨Text Tools£©£¬ÔÚ¡°ÎÄ×Ö¡±¹¤¾ßµÄÊôÐÔÉèÖÃÀ¸ÖÐÉèÖúÃ×Ö·ûµÄÑÕÉ«£¬´óС£¬×ÖÌ壬×ÖÐεÈÊôÐÔ£¬²¢µãÑ¡¡°Îı¾¿ò¡±ÊôÐÔ°´Å¥£»

3£©ÔÚ³¡¾°ÖÐÓÃÊó±êÍ϶¯´´½¨Ò»¸ö¹Ì¶¨¿í¶ÈµÄÎı¾¿ò£¬ÈçͼËùʾ£»



4£©Ñ¡ÖÐÄ¿±êÎı¾¿òºó£¬Ñ¡Ôñ²Ëµ¥ÃüÁî¡°Modify$#@62;Text field¡±£¨»ò¶Ô×ÅÎı¾¿ò°´ÓÒ¼ü£¬È»ºóÑ¡¡°properties¡±Ñ¡Ï

5£©ÔÚµ¯³öµÄ¡°Text Field Properties¡±¶Ô»°¿òÖУ¬½«¡°Variable¡±ÉèΪ¡°text¡±£¬Ñ¡Ôñ¡°Options¡±Öеġ°Disable editing¡±ºÍ¡°Disable selection¡±Á½Ï¼°¡°Outlines¡±Öеġ°Include all font outlines¡±£¬ÈçͼËùʾ£»



¡¡¡¡2¡£ÖÆ×÷¹â±ê

1£©°´Ctrl+F8н¨Ò»¸öµçÓ°Îļþ£¨movie clip£©£¬È¡ÃûΪ¡°cursor¡±£»

2£©Ñ¡Öб༭²ãµÄµÚ1Ö¡£¬Ñ¡Ôñ¾ØÐι¤¾ß¡°Rectangle¡±²¢ÔÚ³¡¾°Öд´½¨Ò»¸öÎޱ߿ò¾ØÐΣ»

3£©·Ö±ðÔÚµÚ4Ö¡ºÍµÚ7Ö¡°´¿ì½Ý¼ü$#@60;F6$#@62;²åÈë¹Ø¼üÖ¡£¬È»ºó½«µÚ4Ö¡ºÍµÚ7Ö¡ÖеľØÐÎɾ³ý£¬ÈçͼËùʾ£»



4£©Ë«»÷ʱ¼ä±à¼­À¸ÖеĵÚ7Ö¡£¬ÔÚµ¯³öµÄ¡°Frame Properties¡±¶Ô»°¿òÖÐÑ¡¡°Actions¡±ÏÉèÖýű¾Îª£º
Go to and play(1)
ÈçͼËùʾ£»



¡¡¡¡3¡£Íê³ÉActions¿ØÖÆ

1£©°´Ctrl+ ½¨Ò»¸öµçÓ°Îļþ£¨movie clip£©£¬È¡ÃûΪ¡°typer¡±£»

2£©Ñ¡Öб༭²ãµÄµÚ1Ö¡£¬Ñ¡Ôñ²Ëµ¥ÃüÁî¡°window$#@62;Library¡±£¬ÔÚµ¯³öµÄÀúÊ·¿âÖн«µçÓ°Îļþ¡°cursor¡±Íϵ½µ±Ç°³¡¾°µÄÖÐÑ룬ȻºóÑ¡ÖеÚ35Ö¡²¢°´¿ì½Ý¼ü$#@60;F5$#@62;²åÈë¹Ø¼üÖ¡£»

3£©Ñ¡Ôñ²Ëµ¥ÃüÁî¡°Insert$#@62;Layer¡±²åÈëÒ»¸öв㣬ÃüÃûΪ¡°actions¡±£»

4£©ÔÚ¡°actions¡±±à¼­²ãµÄµÚ5£¬6£¬7£¬Ö¡ºÍµÚ20£¬21£¬22£¬35Ö¡·Ö±ð°´¿ì½Ý¼ü$#@60;F6$#@62;²åÈë¹Ø¼üÖ¡£»

5£©È·¶¨µ±Ç°µÄ±à¼­²ãΪ¡°actions¡±²ã£¬Ë«»÷µÚ1Ö¡´ò¿ªÖ¡ÊôÐÔ¶Ô»°¿ò£¬ÔÚ¡°Lable¡±ÉèÖÃÏîÖÐΪ¸ÃÖ¡ÉèÖÃÃû³ÆÎª¡°init¡±£¨ÈçͼËùʾ£©£»ÔÚ¡°Actions¡±ÉèÖÃÏîÖÐÉèµÚ1Ö¡µÄActionsΪ£º

Set Variable: "fontwidth" = 9
Set Variable: "fontx" = GetProperty("",_x)
Set Variable: "fonty" = GetProperty("",_x)

×¢ÊÍ£º¡°fontwidth¡±±äÁ¿ÊÇÓÃÀ´ÃèÊöÿ¸öÁ¬Ðø×Ö½ÚÖ®¼ä×ó±ßÔµµÄ¾àÀ룻¶ø¡°fontx¡±ºÍ¡°fonty¡±ÊÇÓÃÀ´²âÊÔ¹â±êµÄµ±Ç°Î»Öá£

ÈçͼËùʾ£»




6£©¸ù¾Ý²½Öè5£©µÄ²Ù×÷£¬½«µÚ5Ö¡µÄActionsÉèΪ£º

Set Variable: "n" = 1
Set Variable: "text" = "This is a DOS text typer effect."
Comment: ----------------------------------------------
Comment: clear out old text (NOTE: the first time you do this, there isnt any text to clear out! I just keep the code here because it doesnt do any harm.)
Comment: ----------------------------------------------
Set Variable: "c" = 1
Loop While (c$#@60;=100)
Remove Movie Clip ("../font"&c)
Set Variable: "c" = c+1
End Loop

¡¡¡¡×¢ÊÍ£º±äÁ¿¡°n¡±ÓÃÀ´±£³ÖĿǰ×ֽڵĹ켣¡£ÒòΪµÚ2¹Ø¼üÖ¡ºÍµÚ3¹Ø¼üÖ¡Á½Õß¼äÏ໥ѭ»·£¬Èç¹û¡°n¡±±äÁ¿¶¼ÉèΪ1£¬ÄÇôËûÃǾͿÉÒÔ¸÷×ÔÖØÐÂÅÅÁУ¬ËùÒÔÕâÀï¡°n¡±µÄÖµÉèΪ1¡£¡°c¡±±äÁ¿ÊÇÒ»¸ö¼òµ¥µÄ¼ÆÊýÆ÷£¬ÕâÀï¼Ù¶¨¼ÆÊýÆ÷µÄÖµÔÚ²»³¬¹ý100¸ö×ֽڵķ¶Î§ÄÚ¸¡¶¯£¬Èç¹ûÄãÐèÒªÉèΪ´óÓÚ100ʱ£¬¿É¸ü¸ÄÕâ¸öÊýÖµ¡£

ÈçͼËùʾ£»


7£©½«µÚ6Ö¡µÄActionsÉèΪ£º

Set Variable: "length" = Length(text)
If (n$#@60;=length)
Comment: ----------------------------------------------
Comment: move cursor
Comment: ----------------------------------------------
Set Property ("", X Position) = fontx+(fontwidth*(n))
End If

×¢ÊÍ£ºÕâÀï¹â±êÒÆ¶¯n´Î£¬nÊÇÎÄ×Ö´®ÖÐ×Ö½ÚµÄÊýÁ¿¡£ÒòʹÓÃÁ˱äÁ¿¡°fontwidth¡±£¬ËùÒÔËùÓÐ×Ö½Ú¼äÓÐÏàͬµÄ¿Õ¼ä£¬²»ÒªÍü¼Ç£¬¡°font¡±ÊÇÓÃÀ´²âÊÔ¹â±êµÄ³õʼλÖá£


ÈçͼËùʾ£»


8£©½«µÚ7Ö¡µÄActionsÉèΪ£º

If (n$#@60;=length)
Comment: ----------------------------------------------
Comment: type new character
Comment: ----------------------------------------------
Duplicate Movie Clip ("../original", "font"&n, n)
Set Variable: "../font"&n&":text" = Substring(text,n,1)
Set Property ("../font"&n, X Position) = fontx+(fontwidth*(n-1))
Set Property ("../font"&n, X Position) = GetProperty("../cursor",_x)-fontwidth
Set Property ("../font"&n, Y Position) = GetProperty("../cursor",_y)
Set Variable: "n" = n+1
Go to and Play (_currentframe-1)
End If

¡¡¡¡×¢ÊÍ£ºÕâÀïÔÙ´ÎʹÓá°n¡±Îª¼ÆÊýÆ÷±äÁ¿¡£¿ªÊ¼Ê±Ïȸ´ÖƿյÄÎı¾¿ò£¬²¢ÃüÃûΪ¡°ongunal¡±¡£Ëû»á·µ»ØÊ±¼ä²ãµÄǰһ²½£¬Æä½Å±¾Îª£º¡°../original¡±¡£°Ñ¡°font¡±µÄÐÂÃû×ÖÁô¿Õ£¬ÎªÁ˱£³ÖËûÃǵĹ켣²»±ä£¬ÎÒÃǽ«¡°n¡±µÄÊýÖµ¼Óµ½¡°font¡±ºóÃæ£¬ÒÔ´Ë×÷ΪеçÓ°ÎļþµÄÃû³Æ£¬Èç¡°font1£¬font2£¬font3¡±¡£Îı¾¿ò±äÁ¿ÔÚ¡°original¡±µçÓ°ÎļþÖб»ÃüÃûΪ¡°text¡±£¬ÎÒÃÇÉèÖá°../font(n)£ºtext¡±ÓëÎÄ×Ö´®µÄ¡°n¡±×Ö½ÚÏàµÈ¡£Ôö¼Ó¡°n¡±µÄÖµ£¬Ê¹Ö¸ÕëÖ¸ÏòÎÄ×Ö´®µÄÏÂÒ»¸ö×Ö½Ú£¬µ±µ½´ï×îºóÄǸö×Ö½Úʱֹͣѭ»·¡£

ÈçͼËùʾ£»


9£©½«µÚ20Ö¡µÄActionsÉèΪ£º

Set Variable: "n" = 1
Set Variable: "text" = "It is really easy to use."
Comment: ----------------------------------------------
Comment: clear out old text (NOTE: the first time you do this, there isnt any text to clear out! I just keep the code here because it doesnt do any harm.)
Comment: ----------------------------------------------
Set Variable: "c" = 1
Loop While (c$#@60;=100)
Remove Movie Clip ("../font"&c)
Set Variable: "c" = c+1
End Loop

ÈçͼËùʾ£»


10£©½«µÚ21Ö¡µÄActionsÉèΪ£º

Set Variable: "length" = Length(text)
If (n$#@60;=length)
Comment: ----------------------------------------------
Comment: move cursor
Comment: ----------------------------------------------
Set Property ("", X Position) = fontx+(fontwidth*(n))
End If

ÈçͼËùʾ£»


11£©½«µÚ22Ö¡µÄActionsÉèΪ£º

If (n$#@60;=length)
Comment: ----------------------------------------------
Comment: type new character
Comment: ----------------------------------------------
Duplicate Movie Clip ("../original", "font"&n, n)
Set Variable: "../font"&n&":text" = Substring(text,n,1)
Set Property ("../font"&n, X Position) = fontx+(fontwidth*(n-1))
Set Property ("../font"&n, X Position) = GetProperty("../cursor",_x)-fontwidth
Set Property ("../font"&n, Y Position) = GetProperty("../cursor",_y)
Set Variable: "n" = n+1
Go to and Play (_currentframe-1)
End If

ÈçͼËùʾ£»


12£©µÚ35Ö¡µÄActionsÉèΪ£º

Go to and play(5)

ÈçͼËùʾ£»


¡¡¡¡4¡£ºóÆÚ´¦Àí

1£©·µ»Øscene1£»

2£©Ñ¡Ôñ²Ëµ¥ÃüÁî¡°window$#@62;library¡±£¬ÔÚÀúÊ·¿âÖн«µçÓ°Îļþ¡°typer¡±Íϵ½µ±Ç°³¡¾°ÖУ»

3£©ÔÚÀúÊ·¿âÖн«µçÓ°Îļþ¡°character¡±Íϵ½µ±Ç°³¡¾°ÖУ¬²¢·ÅÖÃÔÚ¡°typer¡±µÄÏ·½£¬ÈçͼËùʾ£»



ÕâÑù£¬Ä£ÄâdosÊäÈë×Ö·ûµÄЧ¹ûÖÆ×÷Íê³É¡£¿É°´Ctrl+Enter²âÊÔ×÷Æ·¡£
¡ö Ïà¹ØÄÚÈÝ
¸Ðл ·ÃÎÊÌì¼«Íø£¬Èç¹ûÄú¾õµÃ¸ÃÎÄÕÂÉæ¼°°æÈ¨ÎÊÌ⣬Çë¿´ÕâÀ