<?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>A Blog for Web People &#187; SWFObject</title>
	<atom:link href="http://www.pat-burt.com/category/swfobject/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pat-burt.com</link>
	<description>Patrick Burt</description>
	<lastBuildDate>Wed, 17 Aug 2011 16:26:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>SWFObject 2.0 and New Website</title>
		<link>http://www.pat-burt.com/swfobject/swfobject-20-and-new-website/</link>
		<comments>http://www.pat-burt.com/swfobject/swfobject-20-and-new-website/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 16:29:35 +0000</pubDate>
		<dc:creator>Patrick Burt</dc:creator>
				<category><![CDATA[SWFObject]]></category>

		<guid isPermaLink="false">http://www.pat-burt.com/swfobject/swfobject-20-and-new-website/</guid>
		<description><![CDATA[Although I&#8217;ve been using SWFObject almost daily, I&#8217;ve always recycled the version I used on a previous project. Little did I know that a new version was released by Geoff Sterns (who know works for Google in the YouTube division) and is posted on Google&#8217;s codebase. A new version means a new syntax, new file [...]]]></description>
			<content:encoded><![CDATA[<p>Although I&#8217;ve been using SWFObject almost daily, I&#8217;ve always recycled the version I used on a previous project. Little did I know that a new version was released by Geoff Sterns (who know works for Google in the YouTube division) and is posted on Google&#8217;s codebase.</p>
<p>A new version means a new syntax, new file and most importantly, new features. It&#8217;s also worth noting that the JS file was compressed, so if I recall correctly, you&#8217;re saving a few KB this version.</p>
<p>Check it out here: <a href="http://code.google.com/p/swfobject/" title="SWFObject">http://code.google.com/p/swfobject/</a></p>
<p>I will have a tutorial up some time this week simplifying the details on how to use it.</p>
<div><a rel="nofollow" href="http://www.addthis.com/bookmark.php?pub=&amp;url=http%3A%2F%2Fwww.pat-burt.com%2Fswfobject%2Fswfobject-20-and-new-website%2F&amp;title=SWFObject+2.0+and+New+Website"  title="Bookmark this blog using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" alt="Bookmark this blog using any bookmark manager!" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.pat-burt.com/swfobject/swfobject-20-and-new-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Devil&#8217;s Advocate &#8211; Why You Shouldn&#8217;t Use SWFObject</title>
		<link>http://www.pat-burt.com/swfobject/devils-advocate-why-you-shouldnt-use-swfobject/</link>
		<comments>http://www.pat-burt.com/swfobject/devils-advocate-why-you-shouldnt-use-swfobject/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 17:20:37 +0000</pubDate>
		<dc:creator>Patrick Burt</dc:creator>
				<category><![CDATA[SWFObject]]></category>

		<guid isPermaLink="false">http://www.pat-burt.com/swfobject/devils-advocate-why-you-shouldnt-use-swfobject/</guid>
		<description><![CDATA[This is a forewarning that this is an article that I made to see other people&#8217;s points of view that differ from my own. I take the opposite standpoint and make an effort to defend it. This article will deal with why you shouldn&#8217;t use SWFObject to integrate your Flash piece into your website. If [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.pat-burt.com/wp-content/uploads/2007/12/devilsadvocate_series.gif" alt="Devil’s Advocate Series" align="left" border="0" hspace="5" /> This is a forewarning that this is an article that I made to see other people&#8217;s points of view that differ from my own. I take the opposite standpoint and make an effort to defend it.</p>
<p>This article will deal with <strong>why you shouldn&#8217;t use SWFObject to integrate your Flash piece</strong> into your website. If you&#8217;re interested in having a look at the original article where I highly recommend SWFObject as being part of all Flash Developer&#8217;s toolkit, <a href="http://www.pat-burt.com/adobe-flash/flash-people-need-to-know-this/" title="SWFObject Info">click here</a>.</p>
<p>In brief, <strong>SWFObject is a Javascript file that allows you to easily insert your SWF file into your webpage</strong>. It avoids the debacle in Internet Explorer where you &#8220;<em>Click to activate and use this control</em>&#8220;. It makes Flash more usable and more attractive because there are no longer any foreign or worry-some warnings for the user.</p>
<p><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
<h2>Adobe CS3 Accommodates This Problem</h2>
<p><em>Adobe Dreamweaver CS3</em> and <em>Flash CS3</em> already insert the required code to bypass the problem described in the introduction paragraph. Why should we worry about a problem that&#8217;s already fixed. If they&#8217;re taking care of all the nitty gritties, why download 3rd party scripts?</p>
<p>Adobe takes care of making the directory and throwing in the Javascript file. I don&#8217;t have to copy and paste SWFObject.js, make sure I have it in the right directory, read it in as code, etc.</p>
<h2>If It Doesn&#8217;t Work, I Won&#8217;t Know Why</h2>
<p>Adobe CS3&#8242;s solution will always work and takes care of auto-detection and errors I might make. If SWFObject goes wrong, there&#8217;s not much I can do apart from commenting on blogs and posting on forums. That could mean days until I find a solution.</p>
<h2>Quality</h2>
<p>Adobe&#8217;s solution likely had more research and people working on this fix to get the best results. When you really look at the code, they took everything into consideration including visitors with Javascript disabled.</p>
<h2>One Less CSS Element</h2>
<p>SWFObject requires you to make a CSS element for your SWF file to target. That&#8217;s an extra element you need to make sure functions correctly. CS3&#8242;s code lets you plunk your SWF without any hassles from CSS.</p>
<p>That&#8217;s everything I can think of, does anyone have anything else to add? <img src='http://www.pat-burt.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div><a rel="nofollow" href="http://www.addthis.com/bookmark.php?pub=&amp;url=http%3A%2F%2Fwww.pat-burt.com%2Fswfobject%2Fdevils-advocate-why-you-shouldnt-use-swfobject%2F&amp;title=Devil%26%238217%3Bs+Advocate+%26%238211%3B+Why+You+Shouldn%26%238217%3Bt+Use+SWFObject"  title="Bookmark this blog using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" alt="Bookmark this blog using any bookmark manager!" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.pat-burt.com/swfobject/devils-advocate-why-you-shouldnt-use-swfobject/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flash Sites Need Spiderable Content</title>
		<link>http://www.pat-burt.com/search-engine-optimization-seo/flash-sites-need-spiderable-content/</link>
		<comments>http://www.pat-burt.com/search-engine-optimization-seo/flash-sites-need-spiderable-content/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 17:11:20 +0000</pubDate>
		<dc:creator>Patrick Burt</dc:creator>
				<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[SWFObject]]></category>
		<category><![CDATA[Search Engine Optimization SEO]]></category>

		<guid isPermaLink="false">http://www.pat-burt.com/adobe-flash/flash-sites-need-spiderable-content/</guid>
		<description><![CDATA[Imagine this, you&#8217;re a Web Designer or Graphic Designer straight out of college, you&#8217;ve bought yourself a domain (with your name in it of course) and some hosting. You&#8217;ve been taught quite a bit of Adobe Flash and put together a gorgeous portfolio site. You search yourself on Google a few weeks later, your page [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine this, you&#8217;re a Web Designer or Graphic Designer straight out of college, you&#8217;ve bought yourself a domain (with your name in it of course) and some hosting. You&#8217;ve been taught quite a bit of Adobe Flash and put together a gorgeous portfolio site. You search yourself on Google a few weeks later, your page is buried deep on page 4, or worse, not there. What&#8217;s missing?</p>
<p><script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h2>Search Engine Spiders + Flash = Bad</h2>
<p>When a <strong>Search Engine spider</strong> (a bot on the internet that searches for websites and their content) comes across your website, it seems your website similarly to if you visited your website and viewed the HTML source. If your site is composed simply of a CSS stylesheet, a title tag and a flash file, that&#8217;s not much information to give to a Search Engine. Search Engines feed off website information and if it&#8217;s not given to them, you&#8217;re the one that loses.</p>
<p>Sure, you can say that being found on <strong>Google</strong> (or any other Search Engine) isn&#8217;t important to you, but when someone might have seen your portfolio in an interview and forgot your website URL, they might avoid the phone call and search you up on <strong>Google</strong>. If you&#8217;re not up there at the top, simply because you didn&#8217;t feel like dedicating the time to creating alternate, spiderable content, that&#8217;s too bad. Someone else might end up getting the design contract.</p>
<h2>Making a Flash Alternate</h2>
<p>The last thing a spider cares about is how pretty your site looks. That should be the last thing on your mind.</p>
<p>Thankfully, <strong>SWFObject</strong> makes it very easy to implement alternate non-Flash content. Briefly, how SWFObject works is that if the Flash Player requirement is met, it displays the Adobe Flash file in a <strong>DIV</strong> you specified, if not, the original <strong>DIV</strong> contents is left intact. What a perfect opportunity! You can download SWFObject at <a href="http://www.deconcept.com" rel="nofollow" title="deconcept" target="_blank">deconcept</a> and/or look at <a href="http://www.pat-burt.com/category/swfobject/" title="SWFObject articles">past articles</a>.</p>
<h2>I Can&#8217;t Fit Flash Alt Content on One Page</h2>
<p>Of course you can&#8217;t. Look at the approach I took. My <a href="http://www.oildrip.com" title="Portfolio Site" target="_blank">portfolio site</a> (made in Adobe Flash) is composed of three main sections: Home, Portfolio and Contact. What I did was I started with three pages: index.html, portfolio.html and contact.html.</p>
<p>In each of those pages, I litterally Copied &amp; Pasted the content from my Flash file. Now that I have the content completed, I threw in links that help link to and from each page so that Search Engine spiders can follow the links and accumulate content.</p>
<p>One thing to keep in mind, if for some reason someone search <strong>Patrick Burt Contact</strong> on Google and ended up at the Contact page, I inserted my portfolio site on each HTML file I created so that a stranger would never have to bear the unformatted text.</p>
<h2>What about Search Engine Optimization?</h2>
<p><strong>Search Engine Optimization</strong>, is a giant topic all to itself. If you&#8217;re looking on more information on Search Engine Optimizing your Flash site&#8217;s alternate content, I&#8217;ve written a <a href="http://www.pat-burt.com/category/search-engine-optimization-seo/" title="SEO Articles" target="_blank">few articles about it</a>. For some quick tips: stick your name in the <strong>TITLE</strong> tag, stick it in the <strong>H1</strong> tag, and use it in the body copy.</p>
<p>Good luck.</p>
<div><a rel="nofollow" href="http://www.addthis.com/bookmark.php?pub=&amp;url=http%3A%2F%2Fwww.pat-burt.com%2Fsearch-engine-optimization-seo%2Fflash-sites-need-spiderable-content%2F&amp;title=Flash+Sites+Need+Spiderable+Content"  title="Bookmark this blog using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" alt="Bookmark this blog using any bookmark manager!" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.pat-burt.com/search-engine-optimization-seo/flash-sites-need-spiderable-content/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SWFObject Strange Validation Problem</title>
		<link>http://www.pat-burt.com/swfobject/swfobject-strange-validation-problem/</link>
		<comments>http://www.pat-burt.com/swfobject/swfobject-strange-validation-problem/#comments</comments>
		<pubDate>Wed, 04 Jul 2007 03:02:55 +0000</pubDate>
		<dc:creator>Patrick Burt</dc:creator>
				<category><![CDATA[SWFObject]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://www.pat-burt.com/swfobject/swfobject-strange-validation-problem/</guid>
		<description><![CDATA[Warning: Expected &#8216;:&#8217; but found &#8216;undefined&#8217;. Declaration dropped. If you have no idea what SWFObject is, you can find an article here. Chances are, if you use SWFObject and you care about having a site that validates, you will come across this very minor problem. If you&#8217;re new to validation, don&#8217;t worry. This isn&#8217;t something [...]]]></description>
			<content:encoded><![CDATA[<h2>Warning: Expected &#8216;:&#8217; but found &#8216;undefined&#8217;.  Declaration dropped.</h2>
<p>If you have no idea what SWFObject is, you can find an article <a href="http://www.pat-burt.com/adobe-flash/flash-people-need-to-know-this/" title="Information about SWFObject">here</a>. Chances are, if you use SWFObject and you care about having a site that validates, you will come across this very minor problem. If you&#8217;re new to validation, don&#8217;t worry. This isn&#8217;t something to get all ruffled about. It&#8217;s simply means your SWFObject code is one step away from perfection.</p>
<p><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script></p>
<h2>The Problem</h2>
<p>The problem is that SWFObject is creating a field similar to <strong>style=&#8221;"</strong>. This will never validate.</p>
<p>Note: You will never see this by hitting View Source simply because Javascript (the language in which SWFObject is created) is executed by your browser after seeing the HTML source; whereas languages like PHP and ASP generate HTML source before your browser retrieves it.<strong><br />
</strong></p>
<h2>The Solution</h2>
<p>It&#8217;s good to know that the solution to this validation problem is a quick fix. If you open your <strong>swfobject.js</strong> file. In there, you&#8217;ll have to modify the two longest lines, they start with:</p>
<p><strong>swfNode = &#8216;&lt;embed type=&#8221;application/x-shockwave-flash&#8221;<br />
swfNode = &#8216;&lt;object id=&#8221;&#8216;+ this.getAttribute(&#8216;id&#8217;)</strong></p>
<p>Further down both these lines you will have to remove:</p>
<p><strong>&#8221; style=&#8221;&#8216;+ this.getAttribute(&#8216;style&#8217;) +&#8217; </strong></p>
<p>What this does is prevent SWFObject from ever writing <strong>style=&#8221;"</strong> code (you&#8217;re going to use a div container anyway, no big loss). Not a character after, not a character before. Take off starting at the double quote, and take off the single quote.</p>
<p>If you&#8217;re still looking for them, both instances are located on lines 89 and 101. Also, if it seemed like you tried everything and something went bonkers. You can <a href="http://www.pat-burt.com/wp-content/uploads/swfobject.zip" title="download fixed swfobject">click here to download the fixed SWFObject</a>.<br />
Now if you&#8217;re having problems getting your site to Validate, it won&#8217;t be SWFObject.</p>
<div><a rel="nofollow" href="http://www.addthis.com/bookmark.php?pub=&amp;url=http%3A%2F%2Fwww.pat-burt.com%2Fswfobject%2Fswfobject-strange-validation-problem%2F&amp;title=SWFObject+Strange+Validation+Problem"  title="Bookmark this blog using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" alt="Bookmark this blog using any bookmark manager!" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.pat-burt.com/swfobject/swfobject-strange-validation-problem/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Flash People Need To Know This</title>
		<link>http://www.pat-burt.com/adobe-flash/flash-people-need-to-know-this/</link>
		<comments>http://www.pat-burt.com/adobe-flash/flash-people-need-to-know-this/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 23:24:57 +0000</pubDate>
		<dc:creator>Patrick Burt</dc:creator>
				<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[SWFObject]]></category>

		<guid isPermaLink="false">http://www.pat-burt.com/adobe-flash/flash-people-need-to-know-this/</guid>
		<description><![CDATA[As you may or may not know, because it is likely you do all your design on a Macintosh computer, Microsoft has rolled out an update that seriously cripples how Adobe Flash works in updated Internet Explorer versions. Users with Internet Explorer 7 or an updated version of Internet Explorer 6 need to be prompted [...]]]></description>
			<content:encoded><![CDATA[<p>As you may or may not know, because it is likely you do all your design on a Macintosh computer, Microsoft has rolled out an update that seriously cripples how Adobe Flash works in updated Internet Explorer versions. Users with Internet Explorer 7 or an updated version of Internet Explorer 6 need to be prompted before Flash objects are run in the browser. Not only are you prompted, but in Internet Explorer 7 (IE7), a disgusting border appears around all your Flash objects. (see image)</p>
<p><script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p><a href="http://www.pat-burt.com/wp-content/uploads/2007/07/swfobject_click_to_activate.gif" title="Click to Activate IE7"><img src="http://www.pat-burt.com/wp-content/uploads/2007/07/swfobject_click_to_activate.gif" alt="Click to Activate IE7" border="0" /><br />
</a></p>
<p>This becomes absolutely disgusting especially if you&#8217;re trying to hide the fact your flash is in a box and you&#8217;re trying to blend it into the background. For an example of a &#8220;blended&#8221; Flash object see <a href="http://www.oildrip.com" title="My Portfolio Site" target="_blank">my portfolio site</a>. It definitely isn&#8217;t any better in Internet Explorer 6 (IE6) either:</p>
<p><a href="http://www.pat-burt.com/wp-content/uploads/2007/07/swfobject_click_to_run_activex.gif" title="Click to run ActiveX IE6"><img src="http://www.pat-burt.com/wp-content/uploads/2007/07/swfobject_click_to_run_activex.gif" alt="Click to run ActiveX IE6" border="0" /></a></p>
<p>The reason this all happened is explained in the <a href="http://www.devx.com/webdev/Article/30154" rel="nofollow" title="EOLAS Lawsuit" target="_blank">following article</a>. In brief, without going into nerd speak, Microsoft got into a lawsuit because how it displayed ActiveX (or Objects in our case) in its browsers was a patent infringement. The &#8220;Click to Activate&#8221; (IE7) and &#8220;Click to Run an ActiveX control on this webpage&#8221; (IE6) are bypasses that Microsoft included in their browsers.</p>
<h2>The solution to this IE6 and IE7 problem</h2>
<p>The trick is to not use an object tag. The people over at <a href="http://www.deconcept.com" rel="nofollow" title="deconcept">deconcept</a> have developed a Javascript file that helps insert any and all Adobe Flash files on to your webpage.  You can head over to <a href="http://blog.deconcept.com/swfobject/" rel="nofollow" title="swfobject download">this page</a> to download it.</p>
<p>The general code layout is the following:<br />
<small>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;swfobject.js&#8221;&gt;&lt;/script&gt;<br />
&lt;div id=&#8221;flashcontent&#8221;&gt;The code replaces this text.&lt;/div&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var myVar = new SWFObject(&#8220;movie.swf&#8221;, &#8220;mymovie&#8221;, &#8220;400&#8243;, &#8220;200&#8243;, &#8220;8&#8243;, &#8220;#336699&#8243;);<br />
myVar.write(&#8220;flashcontent&#8221;);<br />
&lt;/script&gt;</small><br />
So, let&#8217;s break it down:</p>
<p><strong> </strong><br />
<small><strong>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;swfobject.js&#8221;&gt;&lt;/script&gt;</strong></small><br />
This loads all the code you downloaded. Be sure to have the .js file in the same directory as your .html file.</p>
<p><strong> </strong><br />
<small><strong>&lt;div id=&#8221;flashcontent&#8221;&gt;The code replaces this text.&lt;/div&gt;</strong></small><br />
You&#8217;re creating a div container for which to insert the flash code into. Remember if the browser doesn&#8217;t support Javascript, the user will see what&#8217;s placed here. A user will also see what&#8217;s inside here if the Adobe Flash Player requirement was not met.</p>
<p><strong> </strong><br />
<small><strong>&lt;script type=&#8221;text/javascript&#8221;&gt;&#8230;&#8230;&lt;/script&gt;</strong></small><br />
This tells your .HTML file that everything between these tags is in Javascript.</p>
<p><strong> </strong><br />
<small><strong>var myVar = new SWFObject(&#8220;movie.swf&#8221;, &#8220;mymovie&#8221;, &#8220;400&#8243;, &#8220;200&#8243;, &#8220;8&#8243;, &#8220;#336699&#8243;);<br />
myVar.write(&#8220;flashcontent&#8221;);</strong></small><br />
The fist line creates a new Object with the following default fields:</p>
<p><strong>SWF file: </strong>movie.swf<strong><br />
SWF name/title: </strong>mymovie<strong><br />
Width: </strong>400 (in pixels)<strong><br />
Height: </strong>200 (in pixels)<strong><br />
Adobe Flash Version Req: </strong>8 (this can be very detailed with numerous version numbers, eg. 8.0 or 8.0.33)<strong><br />
Background Color: </strong>#336699 (replaces the default white block that appears for a short second when you load the page)</p>
<p>The second line then inserts the &#8220;SWFObject&#8221; that was created using the parameters into the div container specified.</p>
<h2>Additional SWFObject options</h2>
<p>A popular option is to make your Adobe Flash SWF file transparent. If you used these in the &lt;object&gt; days, it looked similar to wmode=&#8221;transparent&#8221;. All you need to do is insert the following between the &#8220;var myVar&#8221; line and the &#8220;myVar.write&#8221; line.</p>
<pre><code><strong>myVar.addParam("wmode", "transparent");</strong></code></pre>
<p>I just touched the absolute necessities of SWFObject, if you&#8217;re looking to learn more there&#8217;s even more documentation at the <a href="http://www.deconcept.com" title="DeConcept" target="_blank">official deconcept site</a>.</p>
<div><a rel="nofollow" href="http://www.addthis.com/bookmark.php?pub=&amp;url=http%3A%2F%2Fwww.pat-burt.com%2Fadobe-flash%2Fflash-people-need-to-know-this%2F&amp;title=Flash+People+Need+To+Know+This"  title="Bookmark this blog using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" alt="Bookmark this blog using any bookmark manager!" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.pat-burt.com/adobe-flash/flash-people-need-to-know-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

