<?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>Rareview Blog &#187; Flash</title>
	<atom:link href="http://www.rareviewblog.com/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rareviewblog.com</link>
	<description>Rareview's Blog</description>
	<lastBuildDate>Wed, 28 Jul 2010 19:11:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SWFObject &#8211; Flashvars Instead of External XML Files</title>
		<link>http://www.rareviewblog.com/2009/03/31/swfobject-flashvars-instead-of-external-xml-files/</link>
		<comments>http://www.rareviewblog.com/2009/03/31/swfobject-flashvars-instead-of-external-xml-files/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 03:46:57 +0000</pubDate>
		<dc:creator>Rareview</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.rareviewblog.com/?p=147</guid>
		<description><![CDATA[We&#8217;ve been using SWFObject for quite some time to insert Flash content into a website. It&#8217;s a great way to get around the &#60;embed&#62; tag and remove the dreaded IE &#8220;click to activate this control&#8221; message. Lately, we&#8217;ve started to use Flashvars as opposed to external XML files to generate the content in the Flash [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been using <a href="http://code.google.com/p/swfobject/wiki/documentation" target="_blank">SWFObject</a> for quite some time to insert Flash content into a website. It&#8217;s a great way to get around the <strong>&lt;embed&gt;</strong> tag and remove the dreaded IE <em>&#8220;click to activate this control&#8221;</em> message.</p>
<p>Lately, we&#8217;ve started to use Flashvars as opposed to external XML files to generate the content in the Flash files. We really like this approach for a few reasons. First, the content is in the HTML page directly, which means there is one less file to manage. Second (and this is a big one), if your SWF looks for an XML file to load content, the browser tends to cache that content. So the next time you visit the page, you will see the cached content even if you&#8217;ve replaced and updated your XML file. In this situation, the user has to manually clear their cache and reload the page to see the new content. The problem here is that most users don&#8217;t clear their cache all that often. So you run the risk of users seeing old, outdated content, even though you&#8217;ve spent the time to update it. So our solution recently has been to use Flashvars when we can. </p>
<p>A good example of this can be seen on our new website. The panels right underneath the clouds on the top of all the pages have text in them. They have a headline, sub-header, and a paragraph of text. The headline and sub-header are part of the SWF file and thus require us to either use an XML file, put the text directly in the Flash file itself (not very friendly for updates), or use Flashvars. Here&#8217;s how we did it (in the <strong>&lt;head&gt;</strong> of our document):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/swfobject.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- Load SWFObject --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
		var flashvars = {mainTitle: &quot;Functional, interactive design.&quot;, subTitle: &quot;Three words that mean more to us than you'd think.&quot;};
		var params = {wmode: &quot;transparent&quot;, allowFullScreen: &quot;false&quot;};
		var attributes = {};
		swfobject.embedSWF(&quot;flash/workheader.swf&quot;, &quot;flash-work&quot;, &quot;950&quot;, &quot;195&quot;, &quot;9.0.0&quot;, &quot;flash/expressInstall.swf&quot;, flashvars, params, attributes);
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p>You need to be using the latest version of <a href="http://code.google.com/p/swfobject/" target="_blank">SWFObject (version 2)</a> to do this. The benefits of using Flashvars is that the browser shouldn&#8217;t cache old XML data, it&#8217;s easier to maintain (i.e. less files to work with), and it&#8217;s written in the HTML document directly. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rareviewblog.com/2009/03/31/swfobject-flashvars-instead-of-external-xml-files/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Experimenting: Flash AS3 Grid Sorting</title>
		<link>http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/</link>
		<comments>http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 23:45:16 +0000</pubDate>
		<dc:creator>Andrew Knapp</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[experimenting]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[grid system]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[scrolling]]></category>
		<category><![CDATA[sorting]]></category>

		<guid isPermaLink="false">http://rareviewblog.com/?p=44</guid>
		<description><![CDATA[Working on a project that required us to sort out a grid layout, we were experimenting with what the best methods would be to visually communicate the items on a vertically scrolling grid when resizing the window. Using a little AS3, I managed to code a few mad nerdy little examples. Of course, there isn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Working on a project that required us to sort out a grid layout, we were experimenting with what the best methods would be to visually communicate the items on a vertically scrolling grid when resizing the window. Using a little AS3, I managed to code a few mad nerdy little examples. Of course, there isn&#8217;t any scrolling in these examples, but you get the point. Check them out here:</p>
<p>1) <a title="Left flush no-resize sorting" href="http://www.rareview.com/blog/experimenting/example_sorting_1.html" target="_blank">Left flush no-resize sorting</a> : In this example, everything is flush left, and the grid items do not resize. Visually, it keeps the spacing consistent and everything in order, but leaves some whitespace.</p>
<div>
<p>2) <a title="Auto justify no-resize sorting" href="http://www.rareview.com/blog/experimenting/example_sorting_2.html" target="_blank">Auto justify no-resize sorting</a> : In this example, the grid items space out evenly to fit the screen and also do not resize. Visually, makes a good use of the gutters, but might look kinda funny.</p>
<div>
<p>3) <a title="Auto resizing, full screen sorting" href="http://www.rareview.com/blog/experimenting/example_sorting_3.html" target="_blank">Auto resizing, full screen sorting</a> : All the grid items resize horizontally and vertically to fit the width of the screen. Visually, it makes the best use of the gutters, but stretches the images. So I guess this depends what sort of content you&#8217;re placing in the items. You may or may not want to stretch them.</p>
<div>
<p>4) <a title="Left flush no-resize smart sorting" href="http://www.rareview.com/blog/experimenting/example_sorting_4.html" target="_blank">Left flush no-resize smart sorting</a> : This is the same as #1, but I call it smart, because it keeps the screen looking more filled. Once you resize the browser, you&#8217;ll notice that when your window is covering half of an item, it will appear/disappear. This hides some of the item, but gives some padding to make it feel more comfortable.</p>
<p><a title="Download all 4 flash as3 grid sorting examples" href="http://www.rareview.com/blog/experimenting/sorting.zip">Download source files for all 4 examples here</a>.</div>
</div>
</div>
<p>A lot of times, when you&#8217;re immersed in the design/development, you lose sight of the obvious and/or lose sight of what you&#8217;re actually trying to achieve. Are there other obvious options? Which method is the best out of these?</p>
<p>Let us know if you find these handy, or if you have any suggestions or comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
