Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

VC++ÓëflashÖ®¼äµÄÊý¾Ý½»»¥

ÎÒÔÚVCÀï¼ÓÈëÕâ¸öocx¿Ø¼þ."Shockwave Flash Object£¬ÇëÎÊÎÒÒªÏëÔÚvc·¢ËÍ×Ö·û´®¸øflashÀïÃæµÄÎı¾¿ò¸ÃÔõô´«£¿VCÓÖÈçºÎ»ñÈ¡µ½flashÎı¾ÀïµÄÖµ£¿Íû´ó¼Ò¶à¶àÖ¸½Ì£¡


¿ÉÒÔÓÃCallfunction
Ö÷³ÌÐò¶Ë:

flash1.LoadMovie(0,Application.StartPath+"\showstring.swf");
CString temp="Helloworld";
flash1.CallFunction("<invoke name=\"test\" returntype=\"xml\"><arguments><string>" + temp + "</string></arguments></invoke>");
ÆäÖеÄtextÊÇÔÚFLASH¶Ë×¢²áµÄ·½·¨£¬<string>" + temp + "</string>ÖеÄtempÊÇÄã´«¹ýFLASH¶ËµÄ²ÎÊý£¬Ò²¾ÍÊÇÄãÏë´«¹ýÈ¥µÄ²ÎÊý,Èç¹ûÄãÏë´«¶à¸ö²ÎÊý£¬Äã¿ÉÒÔÌí¼Ó¶à¸ö<string></string>½Úµã£¬Öмä·ÅÉÏÄãÒª´«¹ýÈ¥µÄ²ÎÊý£¬×¢ÒâÒ»µãµÄÊÇ£¬<string>" + temp + "</string>£¬tempÓë+ºÅÖ®¼äÒª¿Õ¸ñ£¬·ñÔòÄã´«²»¹ýÈ¥£¬»¹Òª×¢Ò⣬ÔÚFLASH¶ËÒªÓõ½Ò»¾ä»°À´×¢²á text·½·¨£¬
ÈçÏ£º
flash.external.ExternalInterface.addCallback("test", this, test);
·ñÔò£¬VC¶Ë¾Íµ÷Óò»µ½µÄ

flash¶Ë:
¢ÙÌí¼ÓÒ»¸öÎı¾¿òtext_txtÒÔÏÔʾЧ¹û»òÓÃtrace("call: "+result+"")
¢ÚActionScript´úÂëΪ,ÆäÖÐresultÖ»ÊDzÎÊý,¶øÖ÷³ÌÐò¶ËʹÓÃASµÄº¯Êýʱ²»ÐèÒª¹ØÐIJÎÊýÃû,Ö»ÓÐÖªµÀÓвÎÊý¸öÊý,»ò²ÎÊýλÖÃ
function test(result:Object):Void{
  test_txt.text=result;
}
flash.external.ExternalInterface.addCallback("test", this, test);


Ïà¹ØÎÊ´ð£º

ѧϰÌÖÂÛ C/C++ QQȺ - C/C++ / ·Ç¼¼ÊõÇø

QQȺ 29152388
ÓÑÇéUP

°ï¶¥

up

°ïup

up Ö§³Ö£¡

up jf

...ÄѵÀÓзÖ..?

up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£

Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ

¼ÓÁË¡£

¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......

¸ÕѧC£¬ÓÃCʵÏÖ±àÂë - C/C++ / CÓïÑÔ

#include"stdio.h"
#include"stdlib.h"
void ContrTwo(char i)
{
char str1[8];
itoa(i,str1,2);
printf("%s",str1);
}
unsigned char leftRot(char str,int i);
unsign ......

C/C++ÀïÆÁshift+f10¼üÒªÔõôд£¡ - C/C++ / C++ ÓïÑÔ

SHIFT¼ÓF10ÓëÄǸö¼üÓÒctrl±ßÉϵÄÄǸö¼ü¹¦ÄÜÒ»Ñù£¬ÏëÆÁÕâ¸ö
µ«²»ÖªÒªÔõôдÄǸö×éºÏ¼ü£¡
ÓÐûÄĸö´óÏÀ·ÅÒ»¶ÎÕâ¸öµÄ´úÂë»òдһ¶Î
http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html ......

Ò»¸öFLASH¹ã¸æ´úÂëµÄÎÊÌâ - Web ¿ª·¢ / JavaScript

ǰ̨µ÷ÓÃ
swfobject.embedSWF("cu3er.swf", "cu3er-container", "600", "300", "9", "expressInstall.swf", flashvars, attributes);
ÎÒÏÖÔÚÓÐ2¸öÎÊ ......

C/C++/MFCȺ - C/C++ / ·Ç¼¼ÊõÇø

´ó¼ÒºÃ£¬ÕâÊÇÒ»¸öÖ÷ÒªÃæÏòc/c++/mfcµÄȺ£¬×î½ü½øÐÐÁËÒ»´Î´óÇåÀí£¬»¶Ó­¸÷λ¸ßÊÖ¼ÓÈ룬ºÃѧ°®ÎʵÄÐÂÊÖ£¬Ò²¿ÉÒÔÉêÇëµÄ£¬ÉêÇë¸ñʽ Ö°Òµ£¨c/c++/mfc ÈÎÑ¡Ò»»òÕ߶ࣩ ¹¤×÷ÄêÏÞ£¨Ñ§ÉúÖ±½Óд´ó¼¸£©¾ÍÐÐÁË£¬ÈëȺµÄÒªÇó¾ÍÊÇÒª» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ