swfobject

Loop video with SWFObject variables?

Is there a way to loop a video with SWFObject Ive tried so.addVariable('repeat', 'true'); so.addVariable('repeat', 'list'); so.addVariable('repeat', 'always'); ...

Flash & SWFObject2 stops flash audio in background tabs

I use SWFObject 2.2 to play sounds for an AJAX based game I have made. I used to use SWFObject 1, and everything worked fine, but when I updated my game, I updated to 2.2. Now, when users try to listen to music on Youtube or Pandora in another tab on Firefox while playing the game, they can't unless they have that tab selected. What i...

How do I embed a flash SWF file and get around the IE security layer without using swfobject (to keep down file size)

I'm looking for a way to embed an SWF into a page and get around the Internet Explorer security issue (where it requires an extra click to "activate" the flash file). I've got my code working with swfobject, but I'm using this in an embedded widget context (eg a clickable banner ad) so I am really trying to keep my file size down, and ...

Javascript to Flash communication without SWFObject.js

Hello, Wondering if its possible to communication from javascript to flash without the use of SWFobject or any other extra javascript file. Currently I am using the following guide: http://www.viget.com/inspire/bi-directional-actionscript-javascript-communication Thank you for your time. ...

Is it possible to embed a SWF in a form using swfobject 2+ in IE6+?

I've been having endless problems embedding a dynamically loaded SWF into a HTML Form within IE 6,7,8 using swfobject.embedSwf. All the proposed manual workarounds for the problem involve creating a reference to the Object DOM element from the window object. For example: window[id] = document.getElementById(id); Where id is the id of...

"ytplayer is not defined" on using the SWFObject method to include a chromeless Youtube video on a site

Code is as follows but I get a "ytplayer is not defined" error. Is this an issue with <script src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <script> google.load("swfobject", "2.1"); </script> <script type="text/javascript"> function updateHTML(elmId, value) { document.getElementById(elmId).innerHTML = value...

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

Hello 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"> swfob...

Why does Firefox fire two requests for embedded swfs?

When a swf is embedded in a page and is not cached locally in the browser, two requests for the swf are fired by the browser. Here is a simple example. The first request returns an expected 200 OK, and the second request triggers a 304 Not Modified after the first request has completed, indicating the file is now cached locally. Why is...

Getting a Flash Movie with Javascript in IE

I have a flash movie that I need to get with javascript. Here is how I embed it using swf object: <div id="ap1_mod"></div> <script type="text/javascript"> var flashvars = { mp3Path: "stop", artistName : "", trackName : "" }; var params = { codebase: 'http://download.macromedia.com/pub/shockwave/cabs/fla...

SWFobject seems that adding parameters to a swf has no effect

Hi! I am trying to embed swf file into my html code. I am using swfobject 2 JS lib. The code looks like following: <script type="text/javascript" src="/site_media/js/swfobject.js"></script> <script type="text/javascript"> var flashvars = {}; var params = {}; params.scale = "noborder"; params.bgco...

Best way to depend on swfObject in a library

I'm building a JavaScript library for customers to use to embed content my company's product creates into their own web pages. The content itself is a combination of html and flash with some JavaScript glue. We use swfObject to embed our Flash content. My question is: What is the best way to manage this dependency? Currently I'm cons...

Strange Firefox SWFObject display issue

Hi, I am having the strangest issue with a site i am developing. On the homepage i have a flash slide show which displays fine in IE. However it does not appear in Firefox but instead leaves a white space. I am using SWFObject to display the flash. I knows its at least firing as the holding image is removed. However if i right click o...

How can I make the relative paths to JS & SWF files in HTML work?

I have created a simple flash menu and the SWF file, JS files (swfoject.js and flying.js) & XML files are in a folder called "icpmenu_es" on the server root. If I open the SWF file on my local HDD it works fine but if I alter the paths to the files for use on my website, it won't work at all. I know it has found the JS files because if I...

Showing content over a flash 9 swf?

Hi, I have a swf that requires flash 9, and I'm trying to show content over it. To facilitate this, I've set wmode to transparent. The problem is, this ONLY works when the user has flash 10 installed, and I really don't want to require flash 10 to view the content on the site I'm working on. When I pull up a div over the flash content wi...

JQuery (maybe SWFObject) not doing what it's supposed to in IE 7.0.5730.13 or 8.0.6001.18702 or 8.0.7100.0, but works in 7.0.5730.11

Hi guys, I have a website that has jQuery and SWFObject running on it. When the page loads, it sets a 2 second timeout then triggers an SWFObject instance to load a movie. When the movie finishes it's player callsback to JS to trigger another movie. The other movie loads fine and plays. When it's done playing, the second movie is also su...

How to extract an MP3 from a SWF in ActionScript 2.0

I am in need of playing multiple sound files one after the other. The problem is that I cannot use MP3 due to firewall issues and must use a SWF with the sound embedded into it. The problem is that the SWF will play the sound but not with the sound object - so I miss out on the built in features. I need to extract the Mp3 from the SWF t...

Using multiple SWF Object - Flash doesn't focus on rollover

I've got a page with multiple embeds of Flash objects, including dynamically created graphs. I'm including them all with SWF Object JS declared in the header. It works fine in the fact that all are loaded. But, for some reason when you move down on the page (so they're out of view) and back, or click on another object it no longer has f...

SwfAddress conflict with SwfObject's 'callback' argument

Hi all, For a current project we are using SwfObject 2.2 to embed flash files, and the CRD gurus are using SwfAddress 2.3 to create SEO flash goodness. Turns out that if you have both libraries included on a page, then any attempts at using SwfObject callback in the API (http://code.google.com/p/swfobject/wiki/api) prevents the SwfObje...

make swf fill table's remaining space

Unable to figure out proper layout divs,,, I use a table row with 3 cells for a header, another row for a footer, and one row, colspanning 3 cells for the swf content. I need my swf to occupy all remaining space, true to it's original aspect ratio of 600x450. Naturally, the table is 100% width and height, and my 3 colspanned conten...

SWFObject addParam failure

So I'm simply trying to prevent a flash video from playing on page load but have so far been unsuccessful. The code in question is as follows: <div id="flashcontent">This text is replaced by the Flash movie.</div> <script type="text/javascript"> var so = new SWFObject("link_to_video","mymovie", "350", "400", "8", ""); so.addParam("pl...