<?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>alex.rabe &#187; swfobject</title>
	<atom:link href="http://alexrabe.de/tag/swfobject/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexrabe.de</link>
	<description>ALEX RABE &#124; learning by doing...</description>
	<lastBuildDate>Mon, 09 Apr 2012 09:26:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>New updates available&#8230;</title>
		<link>http://alexrabe.de/2008/09/27/new-updates-available/</link>
		<comments>http://alexrabe.de/2008/09/27/new-updates-available/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 12:52:56 +0000</pubDate>
		<dc:creator>Alex Rabe</dc:creator>
				<category><![CDATA[NextGEN Gallery]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[NextGEN-Gallery]]></category>
		<category><![CDATA[swfobject]]></category>
		<category><![CDATA[wordtube]]></category>

		<guid isPermaLink="false">http://alexrabe.de/2008/09/27/new-updates-available/</guid>
		<description><![CDATA[As promised I updated NextGEN Gallery and wordTube for the support of swfobject 2.1. This updates are required to embedded the flash object in a new way and keep compatible with other plugins like Viper&#8217;s Video Quicktags.
Please note that some other flash plugins or addons (Nextgen FlashViewer will be updated very soon) can be get in [...]]]></description>
			<content:encoded><![CDATA[<p>As promised I updated NextGEN Gallery and wordTube for the support of swfobject 2.1. This updates are required to embedded the flash object in a new way and keep compatible with other plugins like Viper&#8217;s Video Quicktags.</p>
<p>Please note that some other flash plugins or addons (Nextgen FlashViewer will be updated very soon) can be get in conflict, because the new script is not compatible with older versions. I suggest not to upgrade until the author update there plugins, because this release is not mandatory&#8230;</p>
<p>Wish you all a nice weekend ! </p>
]]></content:encoded>
			<wfw:commentRss>http://alexrabe.de/2008/09/27/new-updates-available/feed/</wfw:commentRss>
		<slash:comments>61</slash:comments>
		</item>
		<item>
		<title>Final test week</title>
		<link>http://alexrabe.de/2008/09/21/final-test-week/</link>
		<comments>http://alexrabe.de/2008/09/21/final-test-week/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 09:03:38 +0000</pubDate>
		<dc:creator>Alex Rabe</dc:creator>
				<category><![CDATA[NextGEN Gallery]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[NextGEN-Gallery]]></category>
		<category><![CDATA[swfobject]]></category>
		<category><![CDATA[wordtube]]></category>

		<guid isPermaLink="false">http://alexrabe.de/2008/09/21/final-test-week/</guid>
		<description><![CDATA[I have uploaded the release canidate for wordTube. It contains now the swfobject 2.1 for showing the flash content and is compatible to other plugins , like Viper&#8217;s Video Quicktags. Please update to this version and report your issues at my GoogleCode project.
Please note :This version breaks the currently swfobject of NextGEN Gallery (and as well [...]]]></description>
			<content:encoded><![CDATA[<p>I have uploaded the <a href="http://code.google.com/p/wordtube/downloads/list">release canidate</a> for wordTube. It contains now the swfobject 2.1 for showing the flash content and is compatible to other plugins , like <a href="http://wordpress.org/extend/plugins/vipers-video-quicktags/">Viper&#8217;s Video Quicktags</a>. Please update to this version and report your issues at my <a href="http://code.google.com/p/wordtube/issues/list">GoogleCode project</a>.</p>
<p><strong>Please note :</strong>This version breaks the currently swfobject of NextGEN Gallery (and as well the addon&#8217;s like the Flashviewer). If you are interested, you can test also the update for NextGEN Gallery, <a href="http://nextgen-gallery.googlecode.com/files/nextgen-gallery-0.99RC1.zip">here you get the version</a>.</p>
<p>If I faced no big problems, both updates will be available end of the next week at wordpress.org</p>
<p>Happy testing !</p>
]]></content:encoded>
			<wfw:commentRss>http://alexrabe.de/2008/09/21/final-test-week/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SWFObject 2.1</title>
		<link>http://alexrabe.de/2008/09/17/swfobject-21/</link>
		<comments>http://alexrabe.de/2008/09/17/swfobject-21/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 14:53:15 +0000</pubDate>
		<dc:creator>Alex Rabe</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[NextGEN-Gallery]]></category>
		<category><![CDATA[swfobject]]></category>
		<category><![CDATA[wordtube]]></category>

		<guid isPermaLink="false">http://alexrabe.de/2008/09/17/swfobject-21/</guid>
		<description><![CDATA[This article is for plugin authors which uses the great swfobject JavaScript library. The new version 2.1 contains a complete new way to emded and prepare the script code for the flash content. It&#8217;s NOT backward compatible with the implementation of version 1.5 , so it breaks my plugins wordTube and NextGEN Gallery. Due to the fact [...]]]></description>
			<content:encoded><![CDATA[<p>This article is for plugin authors which uses the great <a href="http://code.google.com/p/swfobject/">swfobject</a> JavaScript library. The new version 2.1 contains a complete new way to emded and prepare the script code for the flash content. It&#8217;s NOT backward compatible with the implementation of version 1.5 , so it breaks my plugins wordTube and NextGEN Gallery. Due to the fact that I need to rework this for both plugins, I created a small PHP class which makes it much easier to implement the script code.</p>
<p>For example : </p>
<pre class="brush: php">
$swf = new swfobject( $url, &#039;id&#039;, $width, $height, &#039;7&#039;, &#039;false&#039;);
</pre>
<p>This initiate the swfobject with the url of the flash and the width/height settings and set an id name. This PHP class ensure that the id is not used two times, because it append always a internal counter. </p>
<p>You can add to the $swf object new parameters, attributes or flashvars :</p>
<pre class="brush: php">
$swf-&gt;add_params(&#039;wmode&#039;, &#039;opaque&#039;);
</pre>
<pre class="brush: php">
$swf-&gt;add_flashvars( &#039;myboolval&#039;, $option_a, &#039;false&#039;, &#039;bool&#039;);
$swf-&gt;add_flashvars( &#039;myintval&#039;, $option_b);
$swf-&gt;add_flashvars( &#039;mystring, &#039;abcdef&#039;);
</pre>
<p>Now you can generate the output for your content with the follow function :</p>
<pre class="brush: php">
$out = $swf-&gt;output();
</pre>
<p>And the generated javascript code can be done with the function:</p>
<pre class="brush: php">
$js = &#039;&lt;script type=&quot;text/javascript&quot;&gt;&#039;;
$js .= $swf-&gt;javascript();
$js .= &#039;&lt;/script&gt;&#039;;
</pre>
<p>Please note that you can add the JavaScript code to any position in your output, but it&#8217;s recommended to add this to your header or footer area. To keep it more flexible it will not automatic add the &lt;script&gt;  wrapper around the code.</p>
<p>This functions produce now the follow HTML output :</p>
<pre class="brush: html">
&lt;div class=&quot;swfobject&quot; id=&quot;id_1&quot; style=&quot;width:160px; height:120px;&quot;&gt;
Get the Flash Player to see the flash content.
&lt;/div&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
var id_1 = {
    params : {
       wmode : &quot;opaque&quot; },
    flashvars : {
        myboolval : &quot;true&quot;,
        myintval : &quot;10&quot;,
        mystring : &quot;abcdef&quot; },
    attr : {},
    start : function() {
        swfobject.embedSWF(&quot;file.swf&quot;, &quot;id_1&quot;, &quot;160&quot;, &quot;120&quot;, &quot;7&quot;, false, this.flashvars, this.params , this.attr );
    }
}

id_1.start();
&lt;/script&gt;
</pre>
<p>This few lines of code should demonstrate how easy you can create dynamic swfobject content with PHP, without build up the JavaScript code manually. The swfobject script will automatic exchange the &lt;div&gt; element with the flash content.</p>
<p>You can download the class from my current GoogleCode trunk :</p>
<p class="download"><a href="http://code.google.com/p/nextgen-gallery/source/browse/trunk/lib/swfobject.php">Download swfobject.php</a><br />
PHP class @ Google Code</p>
]]></content:encoded>
			<wfw:commentRss>http://alexrabe.de/2008/09/17/swfobject-21/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

