我们在网站上使用了一个视频播放器,它为我们提供了以下嵌入代码
<object width="640" height="390" id="gorillanationPlayer_sotv002_playlist_677_sotv002_single_302479" data="http://cdn.springboard.gorillanation.com/storage/xplayer/yo033.swf?pid=sotv002&siteId=677&videoId=302479&autostart=false&file=http://cms.springboard.gorillanation.com/xml_feeds_advanced/index/677/3/302479/" class="SpringboardSwitcher" type="application/x-shockwave-flash"> <param name="wmode" value="transparent"> <param name="swliveconnect" value="true"> <param name="allowfullscreen" value="true"> <param name="allowScriptAccess" value="always"> <param name="movie" value="http://cdn.springboard.gorillanation.com/storage/xplayer/yo033.swf?pid=sotv002&siteId=677&videoId=302479&autostart=false&file=http://cms.springboard.gorillanation.com/xml_feeds_advanced/index/677/3/302479/"></object>
是否有可能检测到有人点击该对象进行播放?我想捕获一个事件以触发其他一些Javascript。欢迎任何想法。
干杯
答案 0 :(得分:1)
您想使用ExternalInterface来调用您的javascript: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html