<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Tech Space &#187; SWFObject</title>
	<atom:link href="http://www.thetechspace.com/tag/swfobject/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thetechspace.com</link>
	<description>php, jquery, flash and resources</description>
	<lastBuildDate>Tue, 08 Nov 2011 08:47:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SWFObject: Javascript Flash Player detection and embed script</title>
		<link>http://www.thetechspace.com/2009/08/22/swfobject-javascript-flash-player-detection-and-embed-script/</link>
		<comments>http://www.thetechspace.com/2009/08/22/swfobject-javascript-flash-player-detection-and-embed-script/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 11:47:26 +0000</pubDate>
		<dc:creator>Thurein</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[SWFObject]]></category>

		<guid isPermaLink="false">http://www.thetechspace.com/?p=4</guid>
		<description><![CDATA[Do you get the problem when you embedding flash (swf) file on your website with Adobe script ( automatically added from dreamwaver )? &#60;script type="text/javascript"&#62; AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0', 'width', '940', 'height', '800', 'title', 'flashmo_template', 'src', 'flashmo_183_photo_rotator', 'quality', 'high', 'pluginspage', 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash', 'bgcolor', '#FFFFFF', 'movie', 'flashmo_183_photo_rotator' ); //end AC code &#60;/script&#62; You can solve easily with swfobject [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><h3>Do you get the problem when you embedding flash (swf) file on your website with Adobe script ( automatically added from dreamwaver )?</h3>
<pre class="brush:js">
&lt;script type="text/javascript"&gt;
AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0', 'width', '940', 'height', '800', 'title', 'flashmo_template', 'src', 'flashmo_183_photo_rotator', 'quality', 'high', 'pluginspage', 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash', 'bgcolor', '#FFFFFF', 'movie', 'flashmo_183_photo_rotator' ); //end AC code
&lt;/script&gt;
</pre>
<p>You can solve easily with swfobject javascript embed script.<br />
<a href="http://code.google.com/p/swfobject/" target="_blank">SWFObject</a> is a small Javascript file used for embedding Adobe Flash content. The script can detect the Flash plug-in in all major web browsers (on Mac and PC) and is designed to make embedding Flash movies as easy as possible.</p>
<h3>How it works?</h3>
<p>Using SWFObject is easy. Simply include the <code>swfobject.js</code> Javascript file, then use a small amount of Javascript on your page to embed your Flash movie. Here is an example showing the minimum amount of code needed to embed a Flash movie:</p>
<pre class="brush:js">
&lt;script type="text/javascript" src="swfobject.js"&gt;&lt;/script&gt;

&lt;div id="flashcontent"&gt;
This text is replaced by the Flash movie.
&lt;/div&gt;

&lt;script type="text/javascript"&gt;
var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
so.write("flashcontent");
&lt;/script&gt;
</pre>
<p><span id="more-4"></span></p>
<p>You can pass arguments what you want.</p>
<pre class="brush:js">
var so = new SWFObject(swf, id, width, height, version, background-color [, quality, xiRedirectUrl, redirectUrl, detectKey]);
</pre>
<blockquote><p>Create a new SWFObject and pass in the required arguments:</p>
<ul>
<li>swf – The file path and name to your swf file.</li>
<li> id – The ID of your object or embed tag. The embed tag will also have this value set as it’s name attribute for files that take advantage of swliveconnect.</li>
<li> width – The width of your Flash movie.</li>
<li> height – The height of your Flash movie.</li>
<li> version – The required player version for your Flash content. This can be a string in the format of ‘majorVersion.minorVersion.revision’. An example would be: &#8220;6.0.65&#8243;. Or you can just require the major version, such as &#8220;6&#8243;.</li>
<li> background-color – This is the hex value of the background color of your Flash movie.</li>
</ul>
</blockquote>
<p>You can also pass optional arguments like :</p>
<pre class="brush:js">
&lt;script type="text/javascript"&gt;
var so = new SWFObject("movie.swf", "mymovie", "400", "100%", "8", "#336699");
so.addParam("quality", "low");
so.addParam("wmode", "transparent");
so.addParam("salign", "t");
so.write("flashcontent");
&lt;/script&gt;
</pre>
<blockquote><p>Optional arguments are:</p>
<ul>
<li> quality – The quality you wish your Flash movie to play at. If no quality is specified, the default is <code>"high"</code>.</li>
<li> xiRedirectUrl – If you would like to redirect users who complete the ExpressInstall upgrade, you can specify an alternate URL here</li>
<li> redirectUrl – If you wish to redirect users who don’t have the correct plug-in version, use this parameter and they will be redirected.</li>
<li> detectKey – This is the url variable name the SWFObject script will look for when bypassing the detection. Default is ‘detectflash’. Example: To bypass the Flash detection and simply write the Flash movie to the page, you could add <code>?detectflash=false</code> to the url of the document containing the Flash movie.</li>
</ul>
</blockquote>
<p>If you don&#8217;t have any knowledge about javascript you may download <a href="http://code.google.com/p/swfobject/wiki/generator" target="_blank">generator</a> or you may get <a href="http://www.bobbyvandersluis.com/swfobject/generator/index.html" target="_blank">online generator</a> to generate html, javascript codes .</p>
<div class="shr-publisher-4"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.thetechspace.com/2009/08/22/swfobject-javascript-flash-player-detection-and-embed-script/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

