Using HTML/Javascript I want to make an link trigger a flash object that is normally triggered by clicking on the flash itself. The flash objects is actually the "Call Me Now" button from Google Voice which looks something like:
使用HTML / Javascript我想创建一个链接触发一个flash对象,通常通过点击flash本身来触发。 Flash对象实际上是Google Voice中的“立即呼叫我”按钮,其外观如下所示:
<object type="application/x-shockwave-flash"
data="https://clients4.google.com/voice/embed/webCallButton"
width="230" height="85">
<param name="movie"
value="https://clients4.google.com/voice/embed/webCallButton"/>
<param name="wmode" value="transparent" /><param name="FlashVars" />
</object>
When you click on the object the first time it brings up a set of fields to enter your phone number in to make the call. So I want to be able to trigger that action by having a user click on a different link (which would actually be the phone number that the widget would call.)
当您第一次点击该对象时,它会显示一组字段以输入您的电话号码以进行呼叫。所以我希望能够通过让用户点击不同的链接(实际上是小部件可以调用的电话号码)来触发该操作。
1 个解决方案
#1
Have a look at ExternalInterface class http://livedocs.adobe.com/flex/2/langref/flash/external/ExternalInterface.html which allows two way communication between javascript and flash.
看一下ExternalInterface类http://livedocs.adobe.com/flex/2/langref/flash/external/ExternalInterface.html,它允许javascript和flash之间的双向通信。
#1
Have a look at ExternalInterface class http://livedocs.adobe.com/flex/2/langref/flash/external/ExternalInterface.html which allows two way communication between javascript and flash.
看一下ExternalInterface类http://livedocs.adobe.com/flex/2/langref/flash/external/ExternalInterface.html,它允许javascript和flash之间的双向通信。