<?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>SizzlaBlog &#187; flash</title>
	<atom:link href="http://www.blog.sizzla-media.co.uk/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.sizzla-media.co.uk</link>
	<description>Flash, Web and Javascript development</description>
	<lastBuildDate>Sun, 15 Aug 2010 11:41:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<image>
  <link>http://www.blog.sizzla-media.co.uk</link>
  <url>http://blog.sizzla-media.co.uk/favicon.ico</url>
  <title>SizzlaBlog</title>
</image>
		<item>
		<title>I&#8217;ll see you there!</title>
		<link>http://www.blog.sizzla-media.co.uk/2009/05/30/ill-see-you-there/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2009/05/30/ill-see-you-there/#comments</comments>
		<pubDate>Sat, 30 May 2009 07:20:33 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flashcamp]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=309</guid>
		<description><![CDATA[At Flash Camp Birmingham that is: I don&#8217;t really need to say more than that I don&#8217;t think. It promises to be a great day out and hopefully i&#8217;ll have a new version of flCodr up for then!!]]></description>
			<content:encoded><![CDATA[<p>At Flash Camp Birmingham that is:</p>
<p><a href="http://flashcamp.co.uk" target="_blank"><img src="http://flashcamp.co.uk/images/badge.png" border="0" alt="Flash Camp Birmingham" /></a></p>
<p>I don&#8217;t really need to say more than that I don&#8217;t think. It promises to be a great day out and hopefully i&#8217;ll have a new version of flCodr up for then!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2009/05/30/ill-see-you-there/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aspect Ratio Calculator</title>
		<link>http://www.blog.sizzla-media.co.uk/2008/12/19/aspect-ratio-calculator/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2008/12/19/aspect-ratio-calculator/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 12:48:07 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[panel]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=207</guid>
		<description><![CDATA[This is my latest Flash extension panel &#8211; Ratio Calc. We&#8217;ve all been there, creating a video player for an application and having the task of working out the aspect ratio, or perhaps resizing images or even just trying to (&#8230;)</p><p><a href="http://www.blog.sizzla-media.co.uk/2008/12/19/aspect-ratio-calculator/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-210" title="Ratio Calc" src="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/12/picture-4.png" alt="Ratio Calc" width="216" height="424" /></p>
<p>This is my latest Flash extension panel &#8211; Ratio Calc.</p>
<p>We&#8217;ve all been there, creating a video player for an application and having the task of working out the aspect ratio, or perhaps resizing images or even just trying to work out the size of the stage. This tool will do it for you with a few simple clicks and it&#8217;s free.</p>
<p>The <strong>aspect ratio</strong> of a <a title="Shape" href="http://en.wikipedia.org/wiki/Shape"><span style="text-decoration: none;">shape</span></a> is the ratio of its longer <a title="Dimension" href="http://en.wikipedia.org/wiki/Dimension"><span style="text-decoration: none;">dimension</span></a> to its shorter dimension. It may be applied to two characteristic dimensions of a three-dimensional shape, such as the ratio of the longest and shortest axis, or for symmetrical objects that are described by just two measurements, such as the length and diameter of a rod.</p>
<p>The tool will work out dimensions for the following common aspect ratio&#8217;s:</p>
<blockquote>
<ul>
<li>4:3</li>
<li>16:9</li>
<li>1600:1200</li>
<li>1024:768</li>
<li>800:600</li>
<li>640:480</li>
<li>760:500</li>
</ul>
</blockquote>
<p>The tool is simple to use and has three steps:</p>
<blockquote>
<ol>
<li>Select the desired ratio and then press next</li>
<li>Select which dimension you want to find</li>
<li>Type in the dimension you know.</li>
</ol>
</blockquote>
<p>The tool will then display the dimension, simple as that!</p>
<p>To download the tool click on the icon below</p>
<p><a title="Download Ratio Calc" href="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/12/ratio-calcmxp.zip" target="_self"><img class="alignnone size-full wp-image-215" title="download_64" src="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/12/download_64.png" alt="download_64" width="64" height="64" /></a></p>
<p>To see a demo click <a title="Demo" href="http://blog.sizzla-media.co.uk/project_files/ratio_calc/RatioCalc.html" target="_blank">here</a></p>
<p>This tool is being provided for free by Leon Barrett (me). Please distribute freely but do not sell on for any sum of money!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2008/12/19/aspect-ratio-calculator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash, XML and foreign characters</title>
		<link>http://www.blog.sizzla-media.co.uk/2008/11/20/flash-xml-and-foreign-characters/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2008/11/20/flash-xml-and-foreign-characters/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 20:52:49 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[General Info]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[foreigh characters]]></category>
		<category><![CDATA[glyphs]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=182</guid>
		<description><![CDATA[The Scenario You are creating a Flash project that feeds text in from an external XML file. The text is currently in English but there is a requirement that the text be changed to other languages. The Problem You have (&#8230;)</p><p><a href="http://www.blog.sizzla-media.co.uk/2008/11/20/flash-xml-and-foreign-characters/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<h3><span style="font-weight: normal;">The Scenario</span></h3>
<p>You are creating a Flash project that feeds text in from an external XML file. The text is currently in English but there is a requirement that the text be changed to other languages.</p>
<h3><span style="font-weight: normal;">The Problem</span></h3>
<p>You have added foreign characters such as é, ü or ß and they don&#8217;t show up in Flash.</p>
<h3><span style="font-weight: normal;">The Solution</span></h3>
<p>Follow these steps below and all should be well:</p>
<p>Ensure that your XML document is formatted as UTF-8. If you are using Coda, it&#8217;s simple enough.</p>
<p><a href="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/11/encoding.png" rel="lightbox"><img class="alignnone size-full wp-image-188" title="encoding" src="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/11/encoding.png" alt="" width="390" height="441" /></a></p>
<p>and that is also has the correct XML declaration in the header: </p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243; ?&gt;</p></blockquote>
<p>Ensure that you have a dynamic text box in Flash and that you have given it an instance name.</p>
<p>Ensure that the font you are using supports foreign characters.</p>
<p>Make sure that you embed the font and select the relevant glyphs. Use shift to select more than one set. It is also a good idea to manually add the specific characters that you need to embed. For example to add é on a Mac, hold down the Alt key and then the letter e. The accent will turn yellow and then press the e letter again. </p>
<p><a href="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/11/picture-3.png" rel="lightbox"><img class="alignnone size-medium wp-image-189" title="picture-3" src="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/11/picture-3-244x300.png" alt="" width="244" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2008/11/20/flash-xml-and-foreign-characters/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Extension update</title>
		<link>http://www.blog.sizzla-media.co.uk/2008/08/18/extension-update/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2008/08/18/extension-update/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 11:03:02 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[flcodr]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=146</guid>
		<description><![CDATA[Just a quick note about our sister site &#8211; flCodr. There is an update available for the extension panel. Find out more about it here: www.flcodr.com/download.php]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/08/logonew.png" rel="lightbox"><img class="alignnone size-full wp-image-145" title="logonew" src="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/08/logonew.png" alt="" width="202" height="103" /></a></p>
<p>Just a quick note about our sister site &#8211; <a href="http://www.flcodr.com">flCodr</a>.</p>
<p>There is an update available for the extension panel. Find out more about it here: <a href="http://www.flcodr.com/download.php" target="_blank">www.flcodr.com/download.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2008/08/18/extension-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find me</title>
		<link>http://www.blog.sizzla-media.co.uk/2008/08/12/find-me-2/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2008/08/12/find-me-2/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 19:27:31 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[geo]]></category>
		<category><![CDATA[GMap]]></category>
		<category><![CDATA[googlemaps]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=137</guid>
		<description><![CDATA[My latest Flash based location app is called Find Me and is basically a mash up using Google Maps API, the GMap Flash component and a geo-ip script that tweets your location on Twitter. Take a look at it here. (&#8230;)</p><p><a href="http://www.blog.sizzla-media.co.uk/2008/08/12/find-me-2/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/08/compass-pic.png" rel="lightbox"><img class="alignnone size-medium wp-image-138" title="compass-pic" src="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/08/compass-pic-240x300.png" alt="" width="240" height="300" /></a></p>
<p>My latest Flash based location app is called Find Me and is basically a mash up using Google Maps API, the GMap Flash component and a geo-ip script that tweets your location on Twitter.</p>
<p>Take a look at it <a title="Find Me" href="http://www.blog.sizzla-media.co.uk/geo/find_me.html" target="_blank">here</a>. Please note that is in beta at the moment. You will also need a Twitter account set up which can be done <a href="https://twitter.com/signup" target="_blank">here</a>.</p>
<p>To tweet your location simply enter your username and password and click on the green tick. When the app loads click on the little transmit icon at the bottom right.</p>
<p>Your information is stored on a cookie on your local machine and is not saved anywhere on my server. If you like just enter some random text and save the settings to overwrite your details.</p>
<p>The process involves a php script which geo-locates a users position based on their IP address. This should be noted that it isn&#8217;t 100% accurate as it relies on the IP of either the host machine, router or ISP. When I try this with BT it locates me in London even though I am in Birmingham.</p>
<p>The script outputs a latitude and longitude which I then use to place a marker on the GMap component. Look at <a href="http://www.blog.sizzla-media.co.uk/2008/03/28/flashgooglemaps-mashup/" target="_blank">this post</a> for more info.</p>
<p>Finally by clicking on the marker the user can see the position aswell as the name and even more info by clicking on a link.</p>
<p>When I have had a play around with the Fire eagle API, I will add support for the Fire Eagle service. If you don&#8217;t know what <a href="http://fireeagle.yahoo.net/" target="_blank">Fire eagle</a> is it basically allows you to update your location and then share that with other web services and apps. This is definitely going to be big business in the future with devices like the iPhone 3G and Nokia N95 having the ability to update your location automatically.</p>
<p>I would really like to build an app that would periodically update your status from an iPhone to Fire eagle, however i&#8217;m not too sure I would want people tracking me all the time!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2008/08/12/find-me-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Another month, another mention in Web Designer Mag</title>
		<link>http://www.blog.sizzla-media.co.uk/2008/08/12/another-month-another-mention-in-web-designer-mag/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2008/08/12/another-month-another-mention-in-web-designer-mag/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 18:56:51 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[GMap]]></category>
		<category><![CDATA[latitude]]></category>
		<category><![CDATA[longitude]]></category>
		<category><![CDATA[web designer mag]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=134</guid>
		<description><![CDATA[Not that I mean to show off or anything, but I was in Web Designer Mag again this month. This time they were featuring my Locator panel extension for the GMap component. The extension is a search engine for latitude (&#8230;)</p><p><a href="http://www.blog.sizzla-media.co.uk/2008/08/12/another-month-another-mention-in-web-designer-mag/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/08/wd_147.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-135" title="wd_147" src="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/08/wd_147.jpg" alt="" width="100" height="129" /></a></p>
<p>Not that I mean to show off or anything, but I was in Web Designer Mag <em>again</em> this month.</p>
<p>This time they were featuring my Locator panel extension for the GMap component. The extension is a search engine for latitude and longitude co-ordinates that can be entered into the GMap component as points on a map.</p>
<p>To read about it, take a look at the original post <a href="http://www.blog.sizzla-media.co.uk/2008/04/04/flash-locator-panel/" target="_blank">here</a>.</p>
<p>Take a read of Web Designer Mag for loads of Flash, Dreamweaver and Photoshop goodness, plus subscribe to my RSS feed to stay updated on my future Flash work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2008/08/12/another-month-another-mention-in-web-designer-mag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorted!!</title>
		<link>http://www.blog.sizzla-media.co.uk/2008/08/08/sorted/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2008/08/08/sorted/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 08:17:26 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[GMap]]></category>
		<category><![CDATA[google analytics]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=128</guid>
		<description><![CDATA[After many hours of hard work by the team here at the SizzlaMedia offices (ok just me, in the study) the problem with the GMap powered apps has been fixed. Turns out a Google Analytics script was somehow appearing in (&#8230;)</p><p><a href="http://www.blog.sizzla-media.co.uk/2008/08/08/sorted/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>After many hours of hard work by the team here at the SizzlaMedia offices (ok just me, in the study) the problem with the GMap powered apps has been fixed. Turns out a Google Analytics script was somehow appearing in the Flash apps.</p>
<p>Once I removed the script everything seemed to work just fine!</p>
<p>Hopefully we won&#8217;t see any more errors popping up!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2008/08/08/sorted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m in Web Designer Mag</title>
		<link>http://www.blog.sizzla-media.co.uk/2008/07/03/im-in-web-designer-mag/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2008/07/03/im-in-web-designer-mag/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 17:40:26 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flcodr]]></category>
		<category><![CDATA[web designer mag]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=256</guid>
		<description><![CDATA[The latest issue of Web Designer Mag recently landed on my door mat and I was pleasantly surprised to see some of my work included in the mag and on their promotional disc. I was contacted by the editor a (&#8230;)</p><p><a href="http://www.blog.sizzla-media.co.uk/2008/07/03/im-in-web-designer-mag/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blog.sizzla-media.co.uk/wp-content/uploads//wd-current-mag-large.jpg" rel="lightbox"><img class="alignnone size-medium wp-image-257" title="wd-current-mag-large" src="http://www.blog.sizzla-media.co.uk/wp-content/uploads//wd-current-mag-large.jpg" alt="" width="190" height="248" /></a></p>
<p>The latest issue of <a href="http://www.webdesignermag.co.uk/" target="_blank">Web Designer Mag</a> recently landed on my door mat and I was pleasantly surprised to see some of my work included in the mag and on their promotional disc.</p>
<p>I was contacted by the editor a month or two ago about flCodr &#8211; the online repository for actionscript snippets. The site allows you to add and view snippets of actionscript code, perfect for when you can&#8217;t remember how to parse XML.</p>
<p>Web Designer Mag say that:</p>
<p><em>flCodr.com is a repository of code that has been placed in a single centralised location for quick and easy access. The site works by providing a simple search facility to find snippets of code. For instant access, introduce the flCodr search plug-in to your browser. Add a search term, click a link and you are ready to copy and paste the code.</em></p>
<p>I couldn&#8217;t have put it better myself. I&#8217;m really chuffed that I managed to make it to both the mag and the disc!</p>
<p><a href="http://www.blog.sizzla-media.co.uk/wp-content/uploads//picture-1.png" rel="lightbox"><img class="alignnone size-medium wp-image-258" title="picture-1" src="http://www.blog.sizzla-media.co.uk/wp-content/uploads//picture-1-242x300.png" alt="" width="242" height="300" /></a></p>
<p>Head on over to <a href="http://www.webdesignermag.co.uk/" target="_blank">their site</a> to view the mag and subscribe. It&#8217;s well worth the money as each month it&#8217;s full of tips, tutorials and assets to make your creations even better!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2008/07/03/im-in-web-designer-mag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Tag Clouds</title>
		<link>http://www.blog.sizzla-media.co.uk/2008/06/15/visual-tag-clouds/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2008/06/15/visual-tag-clouds/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 20:55:00 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[flcodr]]></category>
		<category><![CDATA[tag cloud]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=249</guid>
		<description><![CDATA[A tag cloud (or weighted list in visual design) is a visual depiction of user-generated tags used typically to describe the content of web sites. Tags are usually single words and are typically listed alphabetically, and the importance of a tag is shown with font size (&#8230;)</p><p><a href="http://www.blog.sizzla-media.co.uk/2008/06/15/visual-tag-clouds/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blog.sizzla-media.co.uk/wp-content/uploads//lowndes-fig2-400px.gif" rel="lightbox"><img class="alignnone size-medium wp-image-250" title="lowndes-fig2-400px" src="http://www.blog.sizzla-media.co.uk/wp-content/uploads//lowndes-fig2-400px-300x200.gif" alt="" width="300" height="200" /></a></p>
<p>A <strong>tag cloud</strong> (or <strong>weighted list</strong> in visual design) is a visual depiction of user-generated <a title="Tag (metadata)" href="http://en.wikipedia.org/wiki/Tag_%28metadata%29">tags</a> used typically to describe the content of web sites. Tags are usually single words and are typically listed alphabetically, and the importance of a tag is shown with font size or color. Thus both finding a tag by alphabet and by popularity is possible. The tags are usually hyperlinks that lead to a collection of items that are associated with a tag.</p>
<p>A tag cloud is a set of related <a title="Tag (metadata)" href="http://en.wikipedia.org/wiki/Tag_%28metadata%29">tags</a> with corresponding weights. Typical tag clouds have between 30 and 150 tags. The weights are represented using font sizes or other visual clues. Meanwhile, histograms or <a title="Pie chart" href="http://en.wikipedia.org/wiki/Pie_chart">pie charts</a> are most commonly used to represent approximately a dozen different weights. Hence, tag clouds can represent many more weights, though less accurately so. Also, frequently, tag clouds are interactive: tags are hyperlinks typically allowing the user to <a title="Drill down" href="http://en.wikipedia.org/wiki/Drill_down">drill down</a> on the data.</p>
<p>As a Flash developer I thought it would be nice to display the tags in a dynamic virtual tag. I was planning on using Papervision 3D to do this, but then stumbled across t<a href="http://www.roytanck.com/2008/05/19/how-to-repurpose-my-tag-cloud-flash-movie/" target="_blank">his blog post</a>. The hard work had already been done after a wordpress plugin was created.</p>
<p>Rather than re-write the script, I simply modified it to work with the data in my database and hey presto I now have a dynamic and interesting tag cloud.</p>
<p>Take a look at it in action, over at my other site <a href="http://www.flcodr.com/tags.php" target="_blank">flCodr</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2008/06/15/visual-tag-clouds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Cross Platform CD-Roms</title>
		<link>http://www.blog.sizzla-media.co.uk/2008/06/04/creating-cross-platform-cd-roms/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2008/06/04/creating-cross-platform-cd-roms/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 21:36:59 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[autorun]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[compatible]]></category>
		<category><![CDATA[cross platform]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=241</guid>
		<description><![CDATA[Back in my University days having a Mac was not always fun in a Windows dominated campus. I always had to ensure that my disc&#8217;s were able to be read in a Windows machine, even though they were burned on (&#8230;)</p><p><a href="http://www.blog.sizzla-media.co.uk/2008/06/04/creating-cross-platform-cd-roms/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Back in my University days having a Mac was not always fun in a Windows dominated campus. I always had to ensure that my disc&#8217;s were able to be read in a Windows machine, even though they were burned on a Mac. After looking over some of my files I decided to share with the world some of the code snippets I found along the way. This posts concerns <em><strong>creating cross plaform Flash CD-Roms, inparticular opening folders from projectors</strong></em>.</p>
<p><strong>Auto Run</strong></p>
<p>Due to a security vulnerability in OS X 8 (i think!) the auto run feature was disabled on a Mac, however there was an option to open the root folder by default (a really easy option using Toast Titanium).</p>
<p>In Windows an <em>autorun.inf</em> file should be created. This can display an icon and launch an .exe or .bat file as well as set the label for the disc.</p>
<blockquote><p>[autorun]<br />
open=myApp.exe<br />
label=My App<br />
icon=myApp.ico</p></blockquote>
<p>As previously mentioned by using Toast Titanium on the Mac it is very easy to open up a folder containing the .app file to launch. You can also specify which folders and files should be seen by each operating system.</p>
<p><strong>Opening Folders from Flash</strong></p>
<p>Opening folders or files from Flash is a bit of a work around these days. Before Flash MX 2004 it was relatively easy to do, but after a security vulnerability this freedom was closed down. You now need to place your .exe or .app files in a folder called <strong>fscommand. </strong>It has to be this AND ONLY this. This fscommand folder must be at the same level as the Flash projector. i.e</p>
<p>My Folder &gt;</p>
<p>myProjector.exe</p>
<p>myProjector.app</p>
<p>fscommand</p>
<p>You may be thinking &#8220;how do I open up an application from here then?&#8221;</p>
<p>The answer is to use a helper file; in Windows an .exe and in Mac an AppleScript file saved as an .app. I will show you how to open a folder from a Flash projector as this was an issue I had problems with as a student when trying to create an interactive CV. There are various ways, but these methods seem the most robust. Both methods use the exec parameter from the fscommand:</p>
<blockquote><p>fscommand(&#8220;exec&#8221;,&#8221;AppName&#8221;)</p></blockquote>
<p><strong>Windows</strong></p>
<p>In Windows the process is a bit of a bitch. You can thank the creators of <strong>the first Flash virus</strong> (<a title="the first Flash virus" href="http://www.sophos.com/virusinfo/analyses/swflfm926.html" target="_blank"><strong>SWF/LFM-926</strong></a>) for the fact that every version of the stand-alone Flash player since Flash MX has restricted the use of the EXEC command. This change made it impossible for anyone to create any new Flash based viruses, but it also <strong>crippled the Flash projector as a tool for legitimate users</strong> by instantly rendering many free projector extension tools useless.</p>
<p>There are <strong>four key restrictions</strong> that you have to keep in mind when working with the EXEC fscommand and standalone Flash projectors. <strong>(i)</strong> Executables you want to run via the EXEC fscommand have to be in a special sandboxed folder called <strong>fscommand</strong> in the same directory as the projector. <strong>(ii)</strong> You can&#8217;t specify a path in the EXEC command, just a filename. If the specified file is not found in the fscommand folder, it won&#8217;t run. <strong>(iii)</strong> The only argument allowed by the EXEC fscommand is a filename, there is no way to pass arguments to the executables that you want to run. <strong>(iv)</strong> You can&#8217;t use EXEC from an SWF file, it will only work from a projector (EXE). The last restriction doesn&#8217;t really concern us, but if you&#8217;re trying to test your EXEC calls, being aware of it will save you some frustration.</p>
<p>One solution to get around the limitations of the EXEC fscommand is to create one exectuable file for each file that you want to open, but what can you do if you don&#8217;t know how to make EXE files? Windows and Flash both consider a BAT file as an executable file so the easy solution is to create a BAT file for each file you want to open and EXEC the BAT file from Flash. You don&#8217;t need to be a BAT file wizard to do this, the simple one-liner below (let&#8217;s call it mydoc.bat) will do the trick:</p>
<blockquote><p>start mydoc.pdf</p></blockquote>
<p>That example assumes that both mydoc.bat and mydoc.pdf are in the fscommand folder. You can change the BAT file to launch the PDF file from anywhere you like, as long as you can create a valid path to the file. Now all you have to do is create a BAT file for every file you want to open and call it from Flash like this:</p>
<blockquote><p>fscommand(&#8220;exec&#8221;, &#8220;mydoc.bat&#8221;);</p></blockquote>
<p>The only problem with this approach is that your user is going to see the <strong>ugly black DOS box</strong> appear every time they open a file. That&#8217;s where the proxy utility can help you create a more professional looking end product for your users. <strong>Proxy is able to launch BAT files and suppress the ugly DOS box</strong>.</p>
<p>The proxy file will launch a .bat file with the same name. Inside the .bat file the following code should be placed. This will simply open up an Explorer (not Internet Explorer) Window for the specified folder. The path is relative to the .bat file.</p>
<blockquote><p>%SystemRoot%\explorer.exe &#8220;<em>FolderName</em>&#8220;</p></blockquote>
<p>The proxy.exe file needed can be found in the <strong>zip below</strong>. The only rule is that the .exe and .bat file must have the same name. To open up multiple folders, simply create new .bat files and copy/rename the .exe to suit.</p>
<p><strong>Mac</strong></p>
<p>Doing the same thing in Mac is a bit easier. You simply need to use an AppleScript file. The code below will open a new Finder window displaying the contents of the specified folder on the specified disk.  Replace DiskName with the name of the disk. This is better than Windows as the name of the disc will never change, where you can never be certain of the drive letter.</p>
<blockquote><p><span><strong>tell</strong></span><span> </span>application<span> </span><span>&#8220;Finder&#8221;</span></p>
<p><span><span> </span></span>activate</p>
<p><span><span> </span></span>make<span> </span>new<span> </span>Finder window<span> </span>to<span> </span>disk<span> </span><span>&#8220;<em>DiskName</em>&#8220;</span></p>
<p><span> </span></p>
<p><span><span> </span></span><span><strong>set</strong></span><span> </span><span>target</span><span> </span><span><strong>of</strong></span><span> </span><span>Finder window</span><span> </span>1<span> </span><span><strong>to</strong></span><span> </span><span>folder</span><span> </span><em><span style="font-style: normal;">&#8220;</span>FolderName</em>&#8220;<span> </span><span><strong>of</strong></span><span> </span><span>folder</span><span> </span>&#8220;fscommand&#8221;<span> </span><span><strong>of</strong></span><span> </span><span>disk</span><span> </span>&#8220;<em>DiskName</em>&#8221;</p>
<p><strong>end</strong><span> </span><strong>tell</strong></p></blockquote>
<p>If you don&#8217;t know how to write AppleScript, don&#8217;t fear &#8211; just follow these steps (you will need a Mac, or know somebody that has one!):</p>
<ol>
<li>Open Applications &gt; AppleScript.</li>
<li>Open the Script editor.</li>
<li>You can cheat by hitting the record button and opening the folder/file you wish.</li>
<li>Click Stop and look at the code.</li>
<li>Substitute and system specific folders (such as your username).</li>
<li>Save the file as an Application.</li>
</ol>
<p>So now we have the command for Flash and the Windows and Mac helper files to launch our folders. The next step would be to create some actionscript that will handle launching our folders. Lets assume that on our disc we want to open five folders. For ease of use, name these folders &#8211; folder0, folder1, folder2, folder3, folder4.</p>
<p>We can then set up a loop and attach to buttons to launch a file.</p>
<p><strong>Telling the difference</strong></p>
<p>Use this script below to call either the Windows .exe or the Mac .app helper file:</p>
<blockquote><p>if (platform==&#8221;WIN&#8221;){<br />
fscommand(&#8220;exec&#8221;, which + &#8220;.exe&#8221;);<br />
}else{<br />
fscommand(&#8220;exec&#8221;, which);<br />
}</p></blockquote>
<p>That&#8217;s it, you should now be set to get creating cross platform CD&#8217;s. The zip file below contains a sample .exe, .bat and Applesctipt file.</p>
<p>Download source files <a href="http://www.blog.sizzla-media.co.uk/wp-content/uploads//crossplatformfiles.zip">crossplatformfiles</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2008/06/04/creating-cross-platform-cd-roms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.382 seconds -->
