<?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>Stephen Belanger &#187; embed</title>
	<atom:link href="http://stephenbelanger.com/tag/embed/feed/" rel="self" type="application/rss+xml" />
	<link>http://stephenbelanger.com</link>
	<description>Just another coder making the web a better place.</description>
	<lastBuildDate>Fri, 18 Nov 2011 20:46:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jquery.flash &#8211; Who needs swfobject when you have this?</title>
		<link>http://stephenbelanger.com/2009/10/04/jquery-flash-who-needs-swfobject-when-you-have-this/</link>
		<comments>http://stephenbelanger.com/2009/10/04/jquery-flash-who-needs-swfobject-when-you-have-this/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 00:17:25 +0000</pubDate>
		<dc:creator>Qard</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery.flash]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[swfobject]]></category>

		<guid isPermaLink="false">http://www.stephenbelanger.com/?p=15</guid>
		<description><![CDATA[I've used swfobject many times before in the past, but I just don't like it. It works well, but in the modern web environment of performance-critical web apps and Javascript frameworks that give you elegant access to DOM elements it just feels clunky having to go back to the 'old' way of doing things...so I decided to make jquery.flash!

Why use it? Well for starters it minifies to just over 2 KB, rather than the 10 KB of swfobject! How about automatic plugin and version detection? How about complete cross-browser compatibility? If jquery.flash isn't a perfect fit for your flash embedding needs then you are just asking for too much. ;)]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve used swfobject many times before in the past, but I just don&#8217;t like it. It works well enough, but in the modern web of high-traffic web apps and Javascript frameworks that give you elegant access to DOM elements it just feels clunky having to go back to the &#8216;old&#8217; way of doing things&#8230;so I decided to make jquery.flash!</p>
<p>Why use it? Well for starters it minifies to just over 2 KB, rather than the 10 KB of swfobject! How about automatic plugin and version detection? How about complete cross-browser compatibility? If jquery.flash isn&#8217;t a perfect fit for your flash embedding needs then you are just asking for too much. <img src='http://stephenbelanger.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>How do you use it? Just like this;</p>
<pre class="prettyprint">&lt;script type="text/javascript"&gt;
$(document).ready(function(){
    $('.flash').flash({
        "src":"your_flash.swf",
        "width":100,
        "height":100,
        "vars":{"name":"value"},
        "color":"#fff",
        "quality":"high",
        "wmode":"transparent",
        "access":"domain",
        "express":"express_install.swf",
        "classid":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
        "codebase":"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=",
        "plugin":"http://get.adobe.com/flashplayer",
        "mime":"application/x-shockwave-flash",
        "version":"9.0.24",
    });
});
&lt;/script&gt;</pre>
<p>All arguments are optional and will just be left out if you don&#8217;t use them unless they have a default. Everything from classid down has a default. Width and Height, when not declared, will use the current dimensions of the element that is being replaced. Flashvars are passed as a json object to &#8216;vars&#8217; and are automatically serialized into a query string. If there is demand for it I may add a check to allow already made query strings to be used instead of a json object, but it wasn&#8217;t really of any importance to me.</p>
<p>If you have any questions feel free to ask. <img src='http://stephenbelanger.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.stephenbelanger.com/wp-content/uploads/2009/10/jquery.flash.js">jquery.flash.js</a><br />
<a href="http://www.stephenbelanger.com/wp-content/uploads/2009/10/jquery.flash.min.js">jquery.flash.min.js</a></p>
<img src="http://stephenbelanger.com/?ak_action=api_record_view&id=15&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://stephenbelanger.com/2009/10/04/jquery-flash-who-needs-swfobject-when-you-have-this/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
	</channel>
</rss>

