17-07-2009

Javascript swfobject - quick example for copy/paste

The below is a quick example of how to initiate swfobject - a script to to embed flash objects in html - on an html page.

var flashvars = 
		{
			xmlLocation: pathToXml
		};
var params = 
		{
			 wmode:'transparent'
		};
var attributes = 
		{
			id: "flashEditor",
		  	name: "flashEditor",
			width: 280,
		 	height: 400
		};
 
swfobject.embedSWF("/flash/editor.swf", "cycleContainer", "280", "400", "9.0.0","/flash/gallery.swf", flashvars, params, attributes);

More info and download on swfobject page

Comments:

Your comment:

»

 

[x]