Settings | Sign in | Sign up

There are currently 2 posts.

【百度知道提问被河蟹】ActionScript3与Javascript交互

Floor 1 产品的注销 1/8/11 11:21

http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ActionScript与JavaScript交互</title>
<script src="AC_RunActiveContent.js" type="text/javascript"></script>
<script src="send.js" type="text/javascript"></script>
</head>

http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" name="FLASH_AREA"></embed>
  </object>
  </noscript>
</p>
</body>
</html>
【send.js】
function start_send(){
 var val=document.form1.textfield.value;
 var fl_node=document.getElementById("FLASH_AREA");
 fl.send("您输入的内容如下:"+val);
}
【get.as】
function get_data(val):void{
 cont.test=val;
}
if (ExternalInterface.available){
 ExternalInterface.addCallback("send",get_data);
}
【flash.fla】
include "get.as";

Floor 2 产品的注销 1/8/11 11:21
您的问题正在自动提交中,请您耐心等待几分钟

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.