你如何使用Flash对象作为链接? [英] How do you use a flash object as a link?
问题描述
我只是试图包装对象$ c $
a
类似于:
< a href = http://whatever.com >
< object ...>
< embed ... />
< / object>
< / a>
在Internet Explorer中,它使状态栏中的位置显示为链接,
我只有.swf文件,因此我无法在ActionScript中添加点击处理程序。
_root.addEventHandler(MouseEvent.PRESS,函数(e:event){getURL(http://yes.no/);});
但是,如果编辑swf是你的路由,你可能有更多的成功与一个用于这个目的的工具。 Is it possible to use a flash document embedded in HTML as a link?
I tried just wrapping the object
element with an a
like this:
<a href="http://whatever.com">
<object ...>
<embed ... />
</object>
</a>
In Internet Explorer, that made it show the location in the status bar like a link, but it doesn't do anything.
I just have the .swf file, so I can't add a click handler in ActionScript.
Though the object really should respond to being wrapped in an a href tag, you could open the swf in vim and just throw in an _root.onPress=function(){getURL("http://yes.no/");};
or if it's AS3, something like _root.addEventHandler(MouseEvent.PRESS, function (e:event) {getURL("http://yes.no/");});
But if editing the swf is your route, you'd likely have more success with a tool for the purpose.
这篇关于你如何使用Flash对象作为链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!