swfobject

Flash swf sometimes squashed when wmode = transparent or opaque on website

Hi, I have a problem on all browsers when I set wmode = transparent (or opaque) on a flash element on my site. I want to overlay some HTML content on top of the flash element, and this works fine, but for some reason the different components within the flash element are sometimes appearing squashed and not in the correct perspective. Thi...

How can I change the language of dynamic text in a SWF using flashvars?

I have a SWF with text embedded from an external .txt file. Is there a way I can have a different file used as the text source through the embedcode (swfObject) depending on the language? Here is my current actionscript: myData = new LoadVars(); myData.onLoad = function() { text_clips.project_title.text = this.projecttitle1; }; myData....

Expanding videoplayer like CNN-website, prerably jQuery-based

I'm wondering if anyone knows of a script/plugin, jquery-based or otherwise, which could be used to achive the effect that can be found on CNN.com. I'm talking about the videos that are representet by a small thumbnail, that when clicked expands in to the text and plays. I'm by no means a JS-guru, and me and flash isn't the bestest of ...

How do I set the background color in swfObject?

I am using swfobject to display some Flash content (please don't tell Steve Jobs) and I need to set the background color of the swfobject content to black so it blends nicely with the black page it is on. I tried using the following code but it didn't change anything: <object id="flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-4445535400...

How can I make my Video play as soon as the page loads

im lost here, need some help for something probably very simple: I have embedded a swf object to play an flv file. i want the video to play as soon as the page loads rather than requiring the viewer/user to have to click the play button to see the video. I'm not sure if it is the swf file, the script or the javascipt file that has to ...

javascript addEventListener onStateChange not working in IE

Hi, I have two colorbox popup boxes which show a youtube video in each. When they're finished playing, I'm trying to have them automatically close the colorbox window. This code below works perfect in firefox, but in IE I can't get addEventListener to work. I've tried attachEvent with no success. Can anybody offer any suggestions as to h...

Attempting to use CSS top property on a SWF file, but it's not working

Hey guys, I'm trying to position my Flex app so that it's further down the page, but I can't get it working. It's still appearing in the top left. Here is the HTML, any help would be greatly appreciated! <html lang="en"> <head> <title>Page</title> <style type="text/css"> body { margin: 0px; overflow: hidden; } #swf ...

How to pass PHP variable as FlashVars via SWFObject

I am trying to take a PHP variable and pass it along to Flash via Flash vars. My end goal is to pass a string formatted as XML to Flash, but because I'm struggling I've stripped everything down to the basics. I'm just trying to pass a simple PHP string variable to Flash via FlashVars with SWFObject but something isn't right. The page won...

Display alternate content when Flash is not installed with jquery.swfobject

How can I display alternate HTML with the jquery.swfobject plugin for browsers without Flash? I'm unable to find any documentation or examples showing how to do this. Here is a snippet of my code: <script type="text/javascript" language="Javascript" src="jquery.1.4.2.js"></script> <script type="text/javascript" language="Javasc...

Issues with Firefox 3.6 & SWFObject 2.2

I've searched the net for a solution but still haven't found one yet. I'm on Mac OSX and I use FlashBuilder. I try to publish a movie with the values of 100% for the width & the height. These are the values I use both in SWFObject and the CSS. Flash doesn't display in Firefox but displays on Opera, Chrome & Safari. SWFObject test suit...

Redirect on a SWFObject when Full Screen is clicked?

I am using JavaScript to display a swf video, and I want to override the Full Screen button if possible, so that it redirects to another url instead of making the video full screen. Is there a parameter that I can pass to the SWFObject that will allow me to do this? I would appreciate any help. Thanks. ...

SWFObject url redirect SEO

Hi, I have a flash site that do a detection if the browser has Flash or not. If it doesn't, it will redirect to a /no_flash_content Typically I'd put the alternate content on the same page and I know search engine will catch that content if we do it this way. In the case of doing a redirect to a no flash html page, if there is no Fla...

Proper syntax for jQuery's SWFObject plugin

What is the syntax for jQuery's SWFObject plugin? I can't find examples containing more object attributes or parameters other than the ones in the plugin's homepage. edit var flashvars = {}; flashvars.clickTag = "http://www.onesite.com/?tag=10606&amp;tag2=~banner_1134&amp;target=_blank"; var params = {}; params.scale = "exactfit"; v...

Embedding a flash object old SWF markup? Will this work??

I am embedding a flash object into my site and when I do I get a message from dreamweaver saying "This page contains some swf objects that may not work correctly in the most recent versions of Internet Explorer. Dreamweaver cannot convert them to the new SWF markups please delete each of them and insert them again" I am not aware of a...

How to migrate SWFObject call code?

I have this legacy code which embeds an SWF into an HTML using an old version of SWFObject.js: var so = new SWFObject("main.swf", "main", "100%", "615", "9.0.115", "#000000"); so.addVariable("deeplink", deeplink); so.addVariable("cid", cid); so.addParam("scaleMode", "noscale"); so.addParam("allowScriptAccess", "always"); so.addParam("al...

Center aligning SWF in Flash breaks video prompt request

Hello, I'm using swfobject to inject my swf. My SWF basically initiates a webcam and prompts the user for access to the cam. Problem is whenever I center align the div that contains the swf object the Allow/Deny button seems to be unresponsive/not clickable. It's the oddest thing. Here is the site for you to view the coding: http://tin...

SWFObject 2.2 static publishing method and click-to-activate mechanisms in legacy IE

As you know in legacy (and unpatched) Internet Explorer, you have to click on active content (like Flash) to start it. I know Microsoft added the click-to-activate "feature" then removed it a couple of years after but I'm still stuck with customers with this "feature" still there. I would like to use SWFObject 2.2 (latest) to embed Flas...

how to get BrowserManager play nice with SWFObject (Flex 3)

Hello people, I need to get the URL of the HTML where the SWF is embedded. I found out that it should be a piece of cake with BrowserManager, but unfortunately I use SWFObject to embed swf in html! and BrowserManager doesn't like that!! could someone help me with this? cheers ...

jQuery .load doesn't load swfobject content

Hello, I'm loading some content (NOT THE HTML headers or anything, just HTML formatted content from a PHP) via jquery .load() into a div. It works, perfectly for everything BUT some Flash-based amCharts (www.amcharts.com) dynamically loaded with amCharts PHP, using swfObject. The file, loaded seperately, works and loads the Flash charts...

What's the ultimate way to embed Flash (swf) files to HTML (and XHTML) documents?

Like most people I use SWFObject to embed Flash (swf) files to my Web projects. As you know SWFObject offers 2 ways to embed Flash: Static publishing and Dynamic publishing. Static publishing uses regular markup to embed the file to the document and also do checks with JavaScript that you can't make with regular markup alone. This is g...