swfobject

editing swfobject.js code so hyperlinks inside the flash widget open in a new window

隐身守侯 提交于 2020-01-25 03:43:29
问题 I have a flash calendar widget (code shown directly below) and I do not have access to anything other than the compiled .swf file (no access to .fla). The widget contains some hyperlinks to other websites, these links are dynamic and changes based on a number of things. There is also a corresponding swfobject.js file that is used to add functionality to the flash widget. The swfobject.js code is shown further down this post. Currently, the way the code is now, when I click any of the

How can I overcome “Error calling method on NPObject” and Play() a SWF?

断了今生、忘了曾经 提交于 2020-01-15 07:18:47
问题 I am working on a quiz system. Normally it uses jpeg images with each question. But a few of the quizzes instead feature animated .SWF files. I want to use jquery swfobject to call the play() method, once the user has clicked on an answer. My solution works fine locally, but when I try to run it online, it throws the "Error calling method on NPObject!" message. The quiz HTML is located on www.somedomain.com and the SWFs are on images.somedomain.com. So, I'm guessing this is a cross-domain

How can I overcome “Error calling method on NPObject” and Play() a SWF?

本秂侑毒 提交于 2020-01-15 07:18:46
问题 I am working on a quiz system. Normally it uses jpeg images with each question. But a few of the quizzes instead feature animated .SWF files. I want to use jquery swfobject to call the play() method, once the user has clicked on an answer. My solution works fine locally, but when I try to run it online, it throws the "Error calling method on NPObject!" message. The quiz HTML is located on www.somedomain.com and the SWFs are on images.somedomain.com. So, I'm guessing this is a cross-domain

Alternatives to swfobject for embedding flashplayer

对着背影说爱祢 提交于 2020-01-13 13:52:31
问题 Does anybody know if there's a better alternative to swfobject? I actually like swfobject, I just wanted to hear if anybody found something better. Or maybe it is the best way. If you do not know swfobject you can find it here: http://code.google.com/p/swfobject/ 回答1: It is the best way I know of, and I have never had a problem with it. Note that you cannot put JS in embed code for posting on some social networking sites such as Facebook. In those cases you will need to use the usual object

How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject )

女生的网名这么多〃 提交于 2020-01-12 18:48:49
问题 How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject ). I am using Open Flash Chart and the chart is displaying fine in my php shoppping cart, but my javascript menu is getting hidden behind the Flash Chart. How to correct this problem? Here is my script code: <script type="text/javascript"> swfobject.embedSWF( "open-flash-chart.swf", "Dashboard_Chart", "800", "400", "9.0.0", "expressInstall.swf", {"data-file":"ofc-chart.php"} ); </script> UPDATE (Solved): I found

How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject )

时光毁灭记忆、已成空白 提交于 2020-01-12 18:48:38
问题 How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject ). I am using Open Flash Chart and the chart is displaying fine in my php shoppping cart, but my javascript menu is getting hidden behind the Flash Chart. How to correct this problem? Here is my script code: <script type="text/javascript"> swfobject.embedSWF( "open-flash-chart.swf", "Dashboard_Chart", "800", "400", "9.0.0", "expressInstall.swf", {"data-file":"ofc-chart.php"} ); </script> UPDATE (Solved): I found

SWF object - why should I use it

前提是你 提交于 2020-01-11 10:45:09
问题 All my sites need to be search engine friendly - ie readable by search engines. However, I kind of like flash and would like to integrate it in a friendly way. I have the option of swfobject, which allows proper page names and serves different pages to the user vs search engine. However, I am wondering why there would be a need to use swfobject. For instance, I could just use a normal php cms page and insert flash elements into it. When the page is called by a search engine, just serve the

callback from flashembed of jquery Tools

喜你入骨 提交于 2020-01-05 09:03:02
问题 jQuery Tools includes a flashembed API which accepts many parameters. Is there one which accepts callback function and fires after the success state of the flash player load event? playerdiv.flashembed(url+'/VIPlayer.swf','knds_player',300,250,'8.0.0',false,flashVars); Information: official website. Note: This is possible in Google swfobject library as below: swfobject.embedSWF(url+'/VIPlayer.swf','knds_player',300,250,'8.0.0',false,flashVars,callBack); function callBack(event){ event after

Load timer on SWFObject for SWF load time

旧时模样 提交于 2020-01-03 03:47:07
问题 Having a number of people complaining of slow load times on an SWF, but it appears fine this end. I'd like to add a load timer in the SWFObject javascript to time how long it takes to load an SWF and then send it back to us (I'll do that via AJAX). I've looked into possibles with SWFObject callback, which starts a timer every 10millisecodns and then will stop once success. But, looking at this, this is just a switch if embed has been successful, not load. function loadSWF(playURL){ swfobject

SWFobject in a Chrome Extension - API Unavaiable

陌路散爱 提交于 2020-01-01 09:25:09
问题 Hi! I'm building a Chrome extension, in which I need to embed a SWFobject in the background page. Everything works, except the JavaScript controls for the SWFobject and the eventListeners. My guess is that it has something to do with the cross-domain policies, because while testing the page on a webserver everything worked fine. Anyway, here's a snippet: In the main page: var playerView = chrome.extension.getBackgroundPage(); $('#playerPause').click(function(){ playerView.playerPause(); });