FlashÖмÓÔØÓëÖ´ÐÐ˳Ðò
×÷Õß:Merrycat ÈÕÆÚ:2007-01-18
×î½ü¹«Ë¾FLASHѧϰС×é°ÑÎÒѡΪ×鳤ÁË ¡£½ñÌìÎÒ¸ø´ó¼Ò½²ÁËһϓFlashÖмÓÔØÓëÖ´ÐÐ˳Ðò”£¬×òÌì×ܽáÁËÒ»ÏÂÎ磬½ñÌìÔÚBLOGÉÏд¸ö½Ì³Ì¡£ÈçҪתÔØ£¬Çë×¢Ã÷³ö´¦¡£
ÏÈ´Ó¼òµ¥µÄ¿ªÊ¼°É¡£
Àý1£ºÖ¡ÄÚ´úÂëµÄÖ´ÐÐ˳Ðò¡£
ÔÚFLASHµÚÒ»Ö¡²åÈëһϴúÂ룺
³ÌÐò´úÂë
var a:String = "Mcat";
trace(a);//Êä³ö½á¹û:Mcat
¸Ä±äһϴúÂë˳Ðò°Ñtrace()º¯ÊýÌáµ½ÉÏÃæÀ´¡£
³ÌÐò´úÂë
trace(a);
var a:String = "Mcat";//Êä³ö½á¹û£ºundefined
´úÂë1ºÍ´úÂë2Ïà±È½Ï£¬´úÂë2ÖÐaµÄÊä³öµÄundefined£¨Î´¶¨Ò壩
˵Ã÷´úÂëÊÇÓÉÉÏÏòÏÂÖ´Ðеġ£
ʲô£¿ÓеãÈõÖÇ£¿ÄÇô½Ó×ÅÍùÏ¿´°É¡£
Àý2£º¸÷Ö¡Ö®¼ä´úÂëÖ´ÐÐ˳Ðò¡£
¸øFLASHµÄµÚÒ»²ãÈ¡ÃûΪ"layer1"£¬ÔÚµÚ1¡¢2¡¢3Ö¡²åÈë¹Ø¼üÖ¡,·Ö±ðдÈëAS£¬
layer1:trace("frame1")¡¢trace("frame2")¡¢trace("frame3")
Èçͼ£º
²âÊÔһϣ¬Êä³ö£º
³ÌÐò´úÂë
frame1
frame2
frame3
frame1
frame2
frame3
frame1
frame2
frame3
……
˵Ã÷²ãÉÏÖ¡ÉϵĴúÂëÊÇ°´ÕÕÖ¡ºÅ´ÓÇ°ÍùºóÖ´Ðеġ£
Àý3£º²»Í¬²ã¼äÖ¡´úÂëÖ´ÐÐ˳Ðò£º
¸øFLASHµÄµÚÒ»²ãÈ¡ÃûΪ"layer1"£¬µÚ¶þ²ãÈ¡ÃûΪ"layer2",·Ö±ð¸øËüÃǵÄÇ°ÈýÖ¡²åÈë¹Ø¼üÖ¡,·Ö±ðдÈëAS£¬
layer1:trace("layer1_1")¡¢trace("layer1_2")¡¢trace("layer1_3")
layer2:trace("layer2_1")¡¢trace("layer2_2")¡¢trace("layer3_3")
Èçͼ£º
²âÊÔһϣ¬Êä³ö£º
³ÌÐò´úÂë
layer2_1
layer1_1
layer2_2
layer1_2
layer2_3
layer1_3
……
ÔÚ·¢²¼ÉèÖÃÀï¸ü¸ÄһϼÓÔØ˳Ðò£¬FLASHÖÐĬÈϵÄÊÇ“ÓÉ϶øÉÏ”£¬ÕâÀïÎÒÃÇÀ´°ÑËü¸ø³É“ÓÉÉ϶øÏ”ÊÔÊÔ£º
³ÌÐò´úÂë
layer2_1
layer1_1
layer2_2
layer1_2
layer2_3
layer1_3
……
ÈÔÈ»¸ú“ÓÉ϶øÉÏ”Ïàͬ¡£
˵Ã÷ͬһʱ¼äÏߣ¬Í¬Ò»Ö¡ÉÏ£¬²»Í¬²ãÖеĴúÂ룬°´ÕÕ´ÓÉϵ½ÏÂÖð²ãÖ´ÐУ¬Óë¼ÓÔØ˳ÐòÎ޹ء£´ÓÕâ¸ö²âÊÔ½á¹ûÒ²¿ÉÒÔ¿´³ö£¬ÎªÊ²Ã´ÎÒÃÇÖÆ×÷FLASHʱӦ¸Ã°ÑÓÃÀ´·ÅÖÃAS´úÂëµÄͼ²ã½¨ÔÚ¾ÍÉÏÃæ¡£
Àý4£ºÖ¡ÓëӰƬ¼ô¼Ö®¼äµÄÖ´ÐÐ˳Ðò¡£
¸øFLASHµÄµÚÒ»²ãÈ¡ÃûΪ"layer1"£¬µÚ¶þ²ãÈ¡ÃûΪ"mc",·Ö±ð¸ølayer1µÄÇ°ÈýÖ¡ºÍmcÄÚµÄÇ°Èý֡дÈëAS£¬
layer1:trace("layer1_1")¡¢trace("layer1_2")¡¢trace("layer1_3")
MC:trace("mc1_1")¡¢trace("mc1_2")¡¢trace("mc1_3")
Èçͼ£º
²âÊÔһϣ¬Êä³ö£º
³ÌÐò´úÂë
lay
Ïà¹ØÎĵµ£º
ÕâһƪÊÇÁÙʱµÄ±Ê¼£¬ÎÒÃÇÖªµÀas3 ÊÇÃæÏò¶ÔÏóµÄÓïÑÔ£¬ÕâÖÖÓïÑÔÄܹ»·½±ãµÄ·â×°ºÃһЩÀ࣬ÖØÓÃÐԵõ½¼ÓÇ¿¡£Ã¿Ò»¸öÈ˶¼ÓÐÒ»Ì×¾ø»î£¬ÕâЩ¾ø»î¾ÍÏñÎäÁÖµ±ÖÐÿһÅɵÄÎäѧÄÇÑù¡£ÔÚƽʱµÄ¹¤×÷ʹÓÃÉÏ£¬ÊÕ¼¯ÕâЩ¹¤¾ßÄܹ»·½±ã×Ô¼º¹¤×÷£¬Ò²³ÉΪ×Ô¼ºÒ»Ì×Îäѧ¡£
ÀýÈ磺adobe ºËÐÄÀà¿â £¬ 3dÒýÇæÀà¿â£¬ÎïÀíÒýÇæÀà¿â box2d £¬ ......
ÎÒÃÇÒýÓñ¾µØflash£¬ÊµÏÖflashÓëjsË«Ïò½»»¥¡£
function thisMovie(movieName) {
if (window.document[movieName]){
return window.document[movieName];
}else if (navigator.appName.indexOf("Microsoft")==-1){
&nb ......
flash µÄ»æͼAPI º¯ÊýÊǺÜÇ¿´óµÄ»æͼ¹¤¾ß£¬Äܹ»´´½¨³öºÜ¶àÉñÆæµÄЧ¹û¡£×î½üżȻ·¢ÏÖÁËһЩ²»´íµÄ³ÌÐò£¬²âÊÔÁËһϸоõºÜÓÐȤ¡£Õⲿ·Ö²»ËãºÜÄÑ£¬Ö÷Òª¶®½èÓÃËûµÄÃüÁ¼ÓÉÏ×Ô¼ºÒ»µã´´Òâ¾ÍÄÜ·¢»Ó³öÒâÏë²»µ½µÄЧ¹û¡£½ÓÏÂÀ´£¬ÎÒÃǽñÌì̽ÌÖ»æÖƵÄһЩ»ù±¾µÄͼƬ£¬ÏÈ»æÖƾØÐΣ¬ÒòΪËüºÜ¼òµ¥£¬½ö½öʹÓÃһЩ¼òµ¥µÄ´úÂë¾ÍÄܹ»Í ......
Ò»£¬ÒýÑÔ
¶àÄêÇ°ÓÐÒ»¸öºÜÖøÃûµÄ²¡¶¾Ãû½ÐCIH£¬µ±ÄêCIHµÄÁ÷ÐÐÔø¾Ôì³ÉÁ˾޴óµÄ¾¼ÃËðʧ¡£CIH¿ÉÒÔ¹¥»÷Ö÷°åÉϵÄBIOS FLASHоƬ£¬ÆÆ»µÀïÃæµÄÄÚÈÝ£¬´Ó¶øʹµÃÊܺ¦ÕߵļÆËã»úÎÞ·¨Õý³£Ê¹Óá£ÕâÊÇÈËÀàÀúÊ·ÉϵÚÒ»¸ö¿ÉÒÔÆÆ»µÓ²¼þµÄ²¡¶¾¡£CIH¿ÉÒÔ¹¥»÷»ùÓÚIntel 430FXоƬ×éµÄÖ÷°å£¬ÓÉÓÚFXоƬ×éÔÚÄǸöÄê´úÊôÓÚÖ÷Á÷оƬ×飬ËùÒÔÎÞÊýµÄµçÄ ......
Main.cpp (Win/*nix)
#include "FlexSecurityBox.h"
int main(int argc, char ** argv) {
char * address;
short port;
if (argc == 2)
{
address = "0.0.0.0";
port = atoi(argv[1]);
} else if (argc == 3)
{
address = argv[1];
port = atoi(argv[2]);
} else
{
printf("Y ......