<?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>DesignFission &#187; Flash</title>
	<atom:link href="http://www.designfission.com/blog/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designfission.com/blog</link>
	<description>Flash, Web, Javascript and everything else</description>
	<lastBuildDate>Sun, 25 Dec 2011 18:31:49 +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>Facebook App Boilerplate</title>
		<link>http://www.designfission.com/blog/2011/11/29/facebook-app-boilerplate/</link>
		<comments>http://www.designfission.com/blog/2011/11/29/facebook-app-boilerplate/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 04:28:13 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[boilerplate]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/?p=599</guid>
		<description><![CDATA[Just pushed a new repo on Github. This one&#8217;s a boilerplate for a Facebook App. Read the README for more details. Do let me know how I can make this better! https://github.com/EdwinToh/Facebook-App-Boilerplate]]></description>
			<content:encoded><![CDATA[<p>Just pushed a new repo on Github.</p>
<p>This one&#8217;s a boilerplate for a Facebook App. Read the README for more details. Do let me know how I can make this better!</p>
<p><a href="https://github.com/EdwinToh/Facebook-App-Boilerplate">https://github.com/EdwinToh/Facebook-App-Boilerplate</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2011/11/29/facebook-app-boilerplate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash AS3 Light Painting</title>
		<link>http://www.designfission.com/blog/2011/10/18/flash-as3-light-painting/</link>
		<comments>http://www.designfission.com/blog/2011/10/18/flash-as3-light-painting/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 17:50:26 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[light painting]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/?p=595</guid>
		<description><![CDATA[Just created my first Github Public repo and did an initial commit. Take a look here: https://github.com/EdwinToh/LightPainter LightPainter is an app that allows you to create your own light painting effects with your web cam. It&#8217;s an initial commit so documentation and comments are scarce and unorganized. Have fun painting!]]></description>
			<content:encoded><![CDATA[<p>Just created my first Github Public repo and did an initial commit. </p>
<p>Take a look here: <a href="https://github.com/EdwinToh/LightPainter">https://github.com/EdwinToh/LightPainter</a></p>
<p>LightPainter is an app that allows you to create your own light painting effects with your web cam. It&#8217;s an initial commit so documentation and comments are scarce and unorganized. </p>
<p>Have fun painting!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2011/10/18/flash-as3-light-painting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nokia Black Box Installation</title>
		<link>http://www.designfission.com/blog/2011/06/19/nokia-black-box-installation/</link>
		<comments>http://www.designfission.com/blog/2011/06/19/nokia-black-box-installation/#comments</comments>
		<pubDate>Sat, 18 Jun 2011 16:41:19 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[as3glue]]></category>
		<category><![CDATA[clickatell]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/?p=535</guid>
		<description><![CDATA[I built a mini installation in a week with my new developer partner &#8211; Noel Chan and colleague Brian Law, and if you&#8217;re interested to check it out, do go down to the Nokia Black Box tomorrow. It will be at 30 Maxwell Road and is open from 10am to 10pm. The installation was built [...]]]></description>
			<content:encoded><![CDATA[<p>I built a mini installation in a week with my new developer partner &#8211; Noel Chan and colleague Brian Law, and if you&#8217;re interested to check it out, do go down to the Nokia Black Box tomorrow. It will be at 30 Maxwell Road and is open from 10am to 10pm. </p>
<p>The installation was built using Arduino, a Sharp sensor, Clickatell&#8217;s SMS service and the Flash framework as3glue. When a person passes by the sensor, Arduino reads the data, and transfer it to Flash via serproxy, Flash then will trigger a HTTP call to Clickatell&#8217;s web service to send out SMSes to 3 Nokia phones placed on the walls of the event space. </p>
<p>Here&#8217;re some pictures of the making of and the event space. Enjoy!</p>
<figure><img src="http://a8.sphotos.ak.fbcdn.net/hphotos-ak-ash4/248879_10150213007297503_722362502_7296095_6029345_n.jpg" alt="Prototyping" width="400" style="float:left;" /></figure>
<figure><img src="http://a8.sphotos.ak.fbcdn.net/hphotos-ak-ash4/251318_10150213006652503_722362502_7296081_931630_n.jpg" alt="Sensor attached" width="400" /></figure>
<figure><img src="http://a1.sphotos.ak.fbcdn.net/hphotos-ak-snc6/253944_10150213006842503_722362502_7296084_54080_n.jpg" alt="Hacking the box to fit in everything" width="400" style="float:left;" /></figure>
<figure><img src="http://a3.sphotos.ak.fbcdn.net/hphotos-ak-snc6/251327_10150213006932503_722362502_7296087_5292569_n.jpg" alt="All done!" width="400" style="float:left;" /></figure>
<figure><img src="http://a6.sphotos.ak.fbcdn.net/hphotos-ak-snc6/249700_10150213007077503_722362502_7296089_1822112_n.jpg" alt="Set up at the event space." width="400" /></figure>
<figure><img src="http://a3.sphotos.ak.fbcdn.net/hphotos-ak-snc6/250534_10150213007197503_722362502_7296093_4688346_n.jpg" alt="Apps running" width="400" style="float:left;" /></figure>
<figure><img src="http://a2.sphotos.ak.fbcdn.net/hphotos-ak-snc6/249805_10150213007237503_722362502_7296094_3893814_n.jpg" alt="Tunes" width="400" /></figure>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2011/06/19/nokia-black-box-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First FWA Win: Devil Yogurt</title>
		<link>http://www.designfission.com/blog/2011/04/07/first-fwa-win-devil-yogurt/</link>
		<comments>http://www.designfission.com/blog/2011/04/07/first-fwa-win-devil-yogurt/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 12:21:40 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Showcases]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[award]]></category>
		<category><![CDATA[devil]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[fwa]]></category>
		<category><![CDATA[kinetic]]></category>
		<category><![CDATA[yogurt]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/?p=467</guid>
		<description><![CDATA[I can&#8217;t believe I forgot to post news of my first ever FWA win. Winning an FWA has always been my dream and thanks to the great work of my colleagues at Kinetic Singapore, we won an FWA for DevilYogurt.com. Check it out if you have the time, and enjoy creating your own Devil Yogurt.]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t believe I forgot to post news of my first ever FWA win. </p>
<p>Winning an FWA has always been my dream and thanks to the great work of my colleagues at Kinetic Singapore, we won an FWA for DevilYogurt.com.</p>
<p>Check it out if you have the time, and enjoy creating your own Devil Yogurt. <img src='http://dfblog.qwertydesign.netdna-cdn.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2011/04/07/first-fwa-win-devil-yogurt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cooties Alternatives: HTML5 &amp; CSS3 Timeline Editors</title>
		<link>http://www.designfission.com/blog/2010/11/08/cooties-alternatives-html5-css3-timeline-editors/</link>
		<comments>http://www.designfission.com/blog/2010/11/08/cooties-alternatives-html5-css3-timeline-editors/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 04:08:04 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[animate]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[edge]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[sencha animator]]></category>
		<category><![CDATA[timeline editor]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/?p=448</guid>
		<description><![CDATA[Again, something that slipped through my rader, it turns out that Cooties isn&#8217;t the only Timeline Editor for HTML5 &#038; CSS3 animations. Adobe is working on EDGE, a tool that lets you convert .fla files to .html. Check out the video of the tool in action: There&#8217;s also another application that is already released for [...]]]></description>
			<content:encoded><![CDATA[<p>Again, something that slipped through my rader, it turns out that Cooties isn&#8217;t the only Timeline Editor for HTML5 &#038; CSS3 animations. </p>
<p>Adobe is working on EDGE, a tool that lets you convert .fla files to .html. Check out the video of the tool in action:<br />
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/ryZP00_KhYE?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ryZP00_KhYE?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p>There&#8217;s also another application that is already released for the public for use, <a href="http://www.sencha.com/products/animator/">Sencha Animator</a>. Check out the demos <a href="http://dev.sencha.com/animator/demos/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2010/11/08/cooties-alternatives-html5-css3-timeline-editors/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flash Speed Optimization</title>
		<link>http://www.designfission.com/blog/2010/11/06/flash-speed-optimization/</link>
		<comments>http://www.designfission.com/blog/2010/11/06/flash-speed-optimization/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 05:19:15 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/?p=442</guid>
		<description><![CDATA[Just a quick share: http://gskinner.com/talks/quick/ Been trying to optimize one of my old Flash files recently and I found these wonderful slides by Grant Skinner. The part that benefited me greatly is the &#8220;activate 2.5D&#8221; hack. I never knew this hack existed and am still bewildered by the fact that it greatly improves the performance [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick share: </p>
<p><a href="http://gskinner.com/talks/quick/" target="_blank">http://gskinner.com/talks/quick/</a></p>
<p>Been trying to optimize one of my old Flash files recently and I found these wonderful slides by Grant Skinner. The part that benefited me greatly is the &#8220;<a href="http://gskinner.com/talks/quick/#90" target="_blank">activate 2.5D</a>&#8221; hack. I never knew this hack existed and am still bewildered by the fact that it greatly improves the performance of my SWF. </p>
<p>Anyone knows why?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2010/11/06/flash-speed-optimization/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Showcase: Devil Yogurt &amp; His Wicked Comrades</title>
		<link>http://www.designfission.com/blog/2010/10/08/devilyogurt/</link>
		<comments>http://www.designfission.com/blog/2010/10/08/devilyogurt/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 06:22:26 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Showcases]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/?p=408</guid>
		<description><![CDATA[Here's my latest project, a yogurt chain in Singapore. I'm the main Flash and backend developer for this. Enjoy!

http://www.devilyogurt.com]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my latest project, a yogurt chain in Singapore.  I&#8217;m the main Flash and backend developer for this. Enjoy!</p>
<p><a href="http://www.devilyogurt.com">http://www.devilyogurt.com</a></p>
<p>AGENCY : <a href="http://www.kinetic.com.sg">Kinetic Design &#038; Advertising</a><br />
CREATIVE DIRECTOR : <a href="http://www.pannlim.com">Pann Lim</a>  /<a href="http://www.jonathanyuen.com"> Jonathan Yuen</a><br />
ART DIRECTOR : Leng Soh / <a href="http://www.thinksimpleactsimple.com/">Driv Loo</a><br />
PLANNER : Jac Tan<br />
COPY WRITER : Eugene Tan<br />
DESIGNER : <a href="http://portfolio.appletastic.com/">Esther Goh</a><br />
PROGRAMER : <a href="http://www.qwertydesign.net">Edwin Toh</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2010/10/08/devilyogurt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutorial: Flash and WordPress (Part 1)</title>
		<link>http://www.designfission.com/blog/2010/09/29/tutorial-flash-and-wordpress-part-1/</link>
		<comments>http://www.designfission.com/blog/2010/09/29/tutorial-flash-and-wordpress-part-1/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 18:18:23 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/?p=398</guid>
		<description><![CDATA[Over the 3 years that I have spent developing Flash websites, dynamic data is almost always a must. Thus, I have had to create custom XMLs and basic Content Management Systems to let my clients to update their websites themselves. But, creating a custom CMS each time is well, time consuming, especially systems where shopping carts and image galleries are involved.

I'm sure many other Flash developers out there have had the same problem, hence, I've started a mini project to find a way to use the excellent WordPress CMS as the backend to power Flash content.]]></description>
			<content:encoded><![CDATA[<p>A quick search produced 2 excellent plugins that already does this, mainly the excellent <a href="http://wordpress.org/extend/plugins/flash-api/">Flash API</a>, and the <a href="http://wordpress.org/extend/plugins/json-api/">JSON API</a>. We will be using the Flash API for this tutorial.</p>
<p>The Flash API actually provides a sample FLA and also, sample services for you to retrieve posts and even a simple NextGEN Image Gallery. However, the example only populates the data into a List Component. This is where this tutorial comes in, I will try to bridge this gap, and get you started with the Flash API plugin and start retrieving some posts!</p>
<h3>Step 1: Installing the plugin</h3>
<p>Since you&#8217;re reading this, I expect that you already have a WordPress installation somewhere and is ready to go. So go ahead and install the Flash API plugin.</p>
<p>Once that is done, activate the plugin, and then click on Generate Key.<br />
<a href="http://dfblog.qwertydesign.netdna-cdn.com/blog/wp-content/uploads/2010/09/flashapisettings.jpg"><img src="http://dfblog.qwertydesign.netdna-cdn.com/blog/wp-content/uploads/2010/09/flashapisettings-300x183.jpg" alt="" title="flashapisettings" width="300" height="183" class="alignleft size-medium wp-image-399" /></a></p>
<p>Note down the API Key and also the Web Service URL, you&#8217;ll need it soon.</p>
<h3>Step 2: Locating and editting the Flash Example</h3>
<p>Next, look for the Flash example inside <strong>wp-content/plugins/flash-api/flash_example/</strong>. You should see a file named <strong>flash_api_example.fla</strong> inside.</p>
<p>Download and open the file, take a look at the actionscript and replace <strong>line 20</strong> with the API key you generated earlier, and <strong>line 24</strong> to your web service URL.</p>
<p>Go ahead and publish the FLA and see what you get. The example actually retrieves all the attachments that you have on your WordPress installation, and lets you download them. If you don&#8217;t have attachments on your installation, then you won&#8217;t see anything. But that&#8217;s not what people want to do normally, so let&#8217;s take a look at what other services we can call using the Flash API.</p>
<p>Take a look at <strong>services.php</strong> from the <strong>flash-api</strong> plugin folder. The default services are:</p>
<ul>
<li>attachments</li>
<li>gallery (requires the gallery value)</li>
<li>sendmail</li>
<li>posts</li>
</ul>
<p>What we want really, are the posts for now, so go ahead and change <strong>line 21</strong> to <strong>posts</strong>. Publish your SWF, you should see a list of your post titles. If you try clicking on download, you&#8217;ll be linked to the post of your blog. But what we probably want, is to get the post&#8217;s body content.</p>
<p>I&#8217;ve went ahead and modified the 2 functions in the Flash file to do this. Replace the 2 functions with the ones from here:</p>
<pre class="brush: plain; title: ; notranslate">
// CONVERT A NODE INTO AN OBJECT
function objectifyAttr(node:XML):Object {
	var obj:Object = {};

	// Loop through attributes
	for (var a:uint = 0; a &lt; node.attributes().length(); a++) {
		var attr:String = String(node.attributes()[a].name());
		var val:* = node.attributes()[a];
		obj[attr] = val;
	}
	//allocates the attribute postbody with the post content to the object
	obj['postbody'] = node.valueOf()
	return obj;
}

// DOWNLOAD CLICKED -&gt; DOWNLOAD FILE
function downloadFile(evt:MouseEvent):void {
	var sel:String = (lst['selectedItem']) ? lst.selectedItem.postbody : null;
	if (sel != null) {
		//traces the content instead of going to the link of the post.
		trace(lst.selectedItem.postbody)
		//var u:URLRequest = new URLRequest(lst.selectedItem.link);
		//navigateToURL(u);
	}
}
</pre>
<p>And that&#8217;s it! Congratulations, you&#8217;ve successfully retrieved your WordPress posts in Flash! Hopefully, this tutorial will kickstart you to creating your own Flash frontend pulling data from the WordPress database.</p>
<p>I&#8217;ll be working on Part 2 of this tutorial soon and hopefully, I can extend the Flash API plugin with more services. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2010/09/29/tutorial-flash-and-wordpress-part-1/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Opening a ColorBox in Flash</title>
		<link>http://www.designfission.com/blog/2010/09/19/opening-a-colorbox-in-flash/</link>
		<comments>http://www.designfission.com/blog/2010/09/19/opening-a-colorbox-in-flash/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 07:54:33 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[colorbox]]></category>
		<category><![CDATA[externalinterface]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/?p=390</guid>
		<description><![CDATA[The update to my previous method to "Opening a Thickbox in iFrame" is finally here.]]></description>
			<content:encoded><![CDATA[<p>The update to my previous method to &#8220;Opening a Thickbox in iFrame&#8221; is finally here.</p>
<p>As you all know, ThickBox is no longer under development since 2007, the next popular alternative to take over the reigns of ThickBox seems to be ColorBox, and so I&#8217;ve done a new tutorial to do the same thing with ColorBox.</p>
<p>There are a few things that remain the same from the other example.</p>
<h2>Step 1: Prepare your HTML.</h2>
<p>Include the source files to ColorBox&#8217;s CSS, and Javascript files, as well as the original jQuery JS files.</p>
<p><em>Insert in the <head> tags of your HTML:</em></p>
<pre class="brush: plain; title: ; notranslate">
&lt;link media=&quot;screen&quot; rel=&quot;stylesheet&quot; href=&quot;colorbox.css&quot; /&gt;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;colorbox/jquery.colorbox.js&quot;&gt;&lt;/script&gt;
</pre>
<h2>Step 2: Insert the Flash</h2>
<p>Using SWFObject, insert Flash in your HTML and remember to set the following 2 parameters: &#8220;<strong>allowScriptAccess</strong>&#8221; to &#8220;<strong>always</strong>&#8221; and &#8220;<strong>wmode</strong>&#8221; to &#8220;<strong>transparent</strong>&#8220;.</p>
<p><em>Insert in the <head> tags of your HTML:</em></p>
<pre class="brush: plain; title: ; notranslate">
&lt;script src=&quot;Scripts/swfobject_modified.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p><em>Insert in the <body> tags of your HTML:</em></p>
<pre class="brush: plain; title: ; notranslate">
&lt;object id=&quot;FlashID&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; width=&quot;550&quot; height=&quot;200&quot;&gt;
  &lt;param name=&quot;movie&quot; value=&quot;colorbox.swf&quot;&gt;
  &lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;
  &lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;
  &lt;param name=&quot;swfversion&quot; value=&quot;6.0.65.0&quot;&gt;
  &lt;!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --&gt;
  &lt;param name=&quot;expressinstall&quot; value=&quot;Scripts/expressInstall.swf&quot;&gt;
  &lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;
  &lt;!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --&gt;
  &lt;!--[if !IE]&gt;--&gt;
  &lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;colorbox.swf&quot; width=&quot;550&quot; height=&quot;200&quot;&gt;
    &lt;!--&lt;![endif]--&gt;
    &lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;
    &lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;
    &lt;param name=&quot;swfversion&quot; value=&quot;6.0.65.0&quot;&gt;
    &lt;param name=&quot;expressinstall&quot; value=&quot;Scripts/expressInstall.swf&quot;&gt;
    &lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;
    &lt;!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --&gt;
    &lt;div&gt;
      &lt;h4&gt;Content on this page requires a newer version of Adobe Flash Player.&lt;/h4&gt;
      &lt;p&gt;&lt;a href=&quot;http://www.adobe.com/go/getflashplayer&quot;&gt;&lt;img src=&quot;http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif&quot; alt=&quot;Get Adobe Flash player&quot; width=&quot;112&quot; height=&quot;33&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
    &lt;/div&gt;
    &lt;!--[if !IE]&gt;--&gt;
  &lt;/object&gt;
  &lt;!--&lt;![endif]--&gt;
&lt;/object&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
swfobject.registerObject(&quot;FlashID&quot;);
&lt;/script&gt;
</pre>
<h2>Step 3: Prepare the Javascript Function</h2>
<p>Because ColorBox does some parsing of the Javascript functions and ExternalInterface doesn&#8217;t seem to be able to call functions with the dollar sign in them. What I&#8217;ve done here is to create a simple javascript function and use Flash to call this very function. </p>
<p><em>Insert in the <head> tags of your HTML:</em></p>
<pre class="brush: plain; title: ; notranslate">
&lt;script&gt;

	function launchColorBox(url){
		$.colorbox({href:url,width:&quot;80%&quot;, height:&quot;80%&quot;,iframe:true});
	}

&lt;/script&gt;
</pre>
<h3>Step 4: The Flash Code!</h3>
<p>The final step is to actually reuse the Flash Code in my previous version, making only slight changes. Create a button with the instance name &#8220;btn1&#8243; and put the code in the first frame of your Flash file.</p>
<pre class="brush: plain; title: ; notranslate">
stop()
//Imports the ExternalInterface Class
import flash.external.ExternalInterface;

//Adds the CLICK eventlistener to the button btn1
btn1.addEventListener(MouseEvent.CLICK,openColorBox)

//Launches the JS function that we created earlier.
function openColorBox(e:MouseEvent){
	ExternalInterface.call(&quot;launchColorBox&quot;,&quot;http://www.google.com&quot;);
}
</pre>
<p>You can view the demo <a href="http://www.designfission.com/colorbox">here </a>and download the source files <a href="http://www.designfission.com/colorbox-example-updated.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2010/09/19/opening-a-colorbox-in-flash/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>short &#8211; bringing back sweet old AS2 syntax to AS3</title>
		<link>http://www.designfission.com/blog/2010/09/06/short-bringing-back-sweet-old-as2-syntax-to-as3/</link>
		<comments>http://www.designfission.com/blog/2010/09/06/short-bringing-back-sweet-old-as2-syntax-to-as3/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 03:01:39 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[fug]]></category>
		<category><![CDATA[short]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/?p=384</guid>
		<description><![CDATA[A new AS3 framework has been released by Arul @ Luracast. Do check it out at http://code.google.com/p/short/. I&#8217;m pretty excited about it because of 2 things. Firstly, it&#8217;s the first framework released by someone based in Singapore. Secondly, I share the same frustration as the creator &#8211; a simple getURL that used to be so [...]]]></description>
			<content:encoded><![CDATA[<p>A new AS3 framework has been released by Arul @ Luracast. Do check it out at <a href="http://code.google.com/p/short/">http://code.google.com/p/short/</a>.</p>
<p>I&#8217;m pretty excited about it because of 2 things. Firstly, it&#8217;s the first framework released by someone based in Singapore. Secondly, I share the same frustration as the creator &#8211; a simple getURL that used to be so simple now takes more than 3 lines of code to create!</p>
<p>And lastly, if you&#8217;re based in Singapore, do check out the upcoming <a href="http://fug.sg/">Flex User Group</a> (fug) meeting that&#8217;s on this Wednesday (8 Sep 2010). <a href="http://www.facebook.com/event.php?eid=149346475090039&#038;ref=mf">RSVP at Facebook</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2010/09/06/short-bringing-back-sweet-old-as2-syntax-to-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Content Delivery Network via dfblog.qwertydesign.netdna-cdn.com

Served from: www.designfission.com @ 2012-02-06 13:20:37 -->
