Return to Snippet

Revision: 55811
at February 23, 2012 03:22 by rickygri


Initial Code
<!-- load swfobject to load flash -->
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
		<script type="text/javascript">
			var swfs = [
			    {
			        url: 'tbd_msn_hpto_fullpage.swf',
			        id: 'tbd_msn_hpto_fullpage',
			        width: 100,
			        height: 100,
			        flashvars: {},
			        params: {
						wmode: 'transparent'
					},
			        attributes: {}
			    }
			];
			
			for (var i = 0; i < swfs.length; i++) {
			    var swf = swfs[i];
			    swfobject.embedSWF(
			        swf.url, swf.id, swf.width, swf.height, "9.0.0", false, 
			        swf.flashvars, swf.params, swf.attributes
			    );
			};
		</script>

Initial URL

                                

Initial Description
Shows how to use an array to embed swf objects with swfobject.js. This allows for multiple embeds (synced ad's etc.)

Initial Title
Embed flash with swfobject.js using arrays

Initial Tags
javascript

Initial Language
JavaScript