前端之家收集整理的这篇文章主要介绍了
Actionscript与javascript交互实例程序(修改),
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
mxml页面:
html页面:
MyHtml.html
<
Meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<
Meta http-equiv="description" content="this is my page">
<
Meta http-equiv="content-type" content="text/html; charset=UTF-8">

如果试过以上的方法,会发现在被嵌入的Html见面中又嵌入了一个父级的swf文件,如下

这种情况显然不是我想要的结果。于是修改下代码,如下:
调用js" click="button1_clickHandler(event)"/>
html页面:
MyHtml.html
<
Meta http-equiv="keywords" content="keyword1,keyword3">
<
Meta http-equiv="description" content="this is my page">
<
Meta http-equiv="content-type" content="text/html; charset=UTF-8">