<?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>squidder.com &#187; Uncategorized</title>
	<atom:link href="http://www.squidder.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.squidder.com</link>
	<description>Actionscript you'll lose your ink over.</description>
	<lastBuildDate>Fri, 23 Apr 2010 17:29:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Auto-Encrypt Assets for Flash</title>
		<link>http://www.squidder.com/2010/04/23/auto-encrypt-assets-for-flash/</link>
		<comments>http://www.squidder.com/2010/04/23/auto-encrypt-assets-for-flash/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 17:22:02 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.squidder.com/?p=417</guid>
		<description><![CDATA[
We here at Squidder often work on sites that tease new information and images through a cool flash interface. You know: you&#8217;ve got to unlock x by doing y and then you get rewards z.
One of the biggest challenges we run into when doing those sites is how to keep people from getting that information [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-420" href="http://www.squidder.com/2010/04/23/auto-encrypt-assets-for-flash/autoencrypt/"><img class="alignnone size-full wp-image-420" title="autoencrypt" src="http://www.squidder.com/wp-content/uploads/2010/04/autoencrypt.jpg" alt="autoencrypt" width="550" height="350" /></a></p>
<p>We here at Squidder often work on sites that tease new information and images through a cool flash interface. You know: you&#8217;ve got to unlock x by doing y and then you get rewards z.</p>
<p>One of the biggest challenges we run into when doing those sites is how to keep people from getting that information before we&#8217;re ready for them to. Sure we could just load all that junk into swfs and hope that people don&#8217;t decompile it. But that&#8217;s runs counter to how we usually like to develop things: lots of little, external files, loaded on demand.</p>
<p>But of course, that presents it&#8217;s own problem: You, the clever public, can just look in your activity monitor and access the files directly without jumping through all of our cool little hoops.</p>
<p>The solution: ncrypt our external assets and then decrypting them after we&#8217;ve loaded the byte data into the flash. Well, that&#8217;s easy enough to write a encrypt/decrypted tool using something like <a href="http://code.google.com/p/as3crypto/">as3crypto</a>. But we here at the big S like to be a little lazier. We don&#8217;t want to have to decrypt our xml files (or our images, for that matter) to edit and them and then reencrypt them when we&#8217;re finished. We&#8217;d just rather make the changes and have the encryption only appear on demand when you&#8217;re accessing the file from a web browser&#8230;</p>
<p><span id="more-417"></span>That&#8217;s why we were so excited when we found <a href="http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/">this article over at Zedia Flash Blog</a>, which provides an easy way to encrypt something via PHP and decrypt it via Flash (or the other way around).</p>
<p>So you&#8217;re thinking &#8220;Ok that&#8217;s easy, I&#8217;ll just  make a php script that gets passed a file via GET or POST that returns the encrypted file like this one&#8221;:</p>
<pre>&lt;?php
require( "Crypt.php" );
$crypt = new Crypt();
$crypt -&gt; init( "TESTTEST" );
echo $crypt-&gt;encrypt( file_get_contents( $_GET[ "fileToEncrypt" ] ) );
?&gt;</pre>
<p>Then I&#8217;ll just request all my assets like this &#8220;encrypter.php?fileToEncrypt=info.xml&#8221;.</p>
<p>But that only takes us so far. Sure, you could post that variable, but users could still easily figure out where the &#8220;fileToEncrypt&#8221; file lives and access that directly.</p>
<p>So that&#8217;s where our last ingredient comes in: our friend the .htaccess file:</p>
<pre>RewriteEngine On
RewriteCond %{REQUEST_URL} ^/.*xml$
RewriteRule ^(.+)$ encrypter.php?fileToEncrypt=$1 [L,QSA]</pre>
<p>As you can see, the server takes all requests for xml files and routes them through the encrypter.php file, which returns the encrypted php file.</p>
<p>As far as the user can tell, the file is well and encrypted on the server. But you, the site owner, can go and make changes to your hearts desire and not worry for a moment about having to re-encrypt anything.</p>
<p>Finally, what makes this the business is that you can auto-encrypt ANYTHING. Swfs, jpgs, pngs, xml, whatever. If you&#8217;re loading byte data, all you need to do is load them in via a URLLoader and the use Loader.loadBytes. All you need to do is modify the .htaccess as so:</p>
<pre>RewriteEngine On
RewriteCond %{REQUEST_URL} ^/.*xml$ [OR] %{REQUEST_URI} ^/.*jpg$ [OR] %{REQIEST_URI} ^/.*swf$
RewriteRule ^(.+)$ encrypter.php?fileToEncrypt=$1 [L,QSA]</pre>
<p>Obviously this puts more of a strain on your server. So it really only makes sense for things that are constantly changing. And of course, someone can just decompile your flash and grab the private key. But if someone&#8217;s doing that, well, then we&#8217;ve already engaged them in the teaser more than we could have possibly hoped.</p>
<p>Enjoy responsibly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.squidder.com/2010/04/23/auto-encrypt-assets-for-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreshAirApps.com: a breath of fresh, uh, air.</title>
		<link>http://www.squidder.com/2008/05/13/freshairappscom-a-breath-of-fresh-uh-air/</link>
		<comments>http://www.squidder.com/2008/05/13/freshairappscom-a-breath-of-fresh-uh-air/#comments</comments>
		<pubDate>Wed, 14 May 2008 01:11:13 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.squidder.com/?p=89</guid>
		<description><![CDATA[A lot of people really haven&#8217;t figured out the best use for AIR apps yet, and we at squidder are no different. Most of time, an online app will let you get away with most everything that you want to do. Personally, I think the infatuation with AIR comes from a desire for flash developers [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of people really haven&#8217;t figured out the best use for AIR apps yet, and we at squidder are no different. Most of time, an online app will let you get away with most everything that you want to do. Personally, I think the infatuation with AIR comes from a desire for flash developers to feel more like &#8216;real&#8217; developers (zing!).</p>
<p>No, seriously. One of the best ways to see what to do (and what not to do) is to just take a look at what other people are doing. And there may be no better place to do that than at <a href="http://www.freshairapps.com/">freshairapps.com</a>. Regular expression checker anyone?</p>
<p>And yes, I feel bad for writing that headline.</p>
<div>
<div></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.squidder.com/2008/05/13/freshairappscom-a-breath-of-fresh-uh-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New 3d platform: so beautiful, should have sent poet.</title>
		<link>http://www.squidder.com/2008/04/25/new-3d-platform-so-beautiful-should-have-sent-poet/</link>
		<comments>http://www.squidder.com/2008/04/25/new-3d-platform-so-beautiful-should-have-sent-poet/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 18:43:17 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.squidder.com/?p=85</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<div><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="contact.jpg" src="http://www.squidder.com/old/2008/04/25/contact.jpg" width="450" height="265" class="mt-image-none" style="" /></span></div>
<div></div>
<p>The new Alternativa3D platform	<a href="http://blog.alternativaplatform.com/en/2008/04/18/alternativa3d-5-m1/">needs to be seen to be believed</a>.
<div></div>
<div>This kind of stuff makes me love flash and at the same time never use it again. Excuse me while I go weep quietly to myself.	</div>
]]></content:encoded>
			<wfw:commentRss>http://www.squidder.com/2008/04/25/new-3d-platform-so-beautiful-should-have-sent-poet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handiest. MovieClip. Ever.</title>
		<link>http://www.squidder.com/2008/04/10/handiest-movieclip-ever/</link>
		<comments>http://www.squidder.com/2008/04/10/handiest-movieclip-ever/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 00:36:14 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.squidder.com/?p=78</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<div><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="fps_bar.gif" src="http://www.squidder.com/old/2008/04/10/fps_bar.gif" width="336" height="14" class="mt-image-none" style="" /></span></div>
<div></div>
<p>One of the best things that has come out of my time with papervision has almost nothing to do with papervision itself. Indeed, it is the little frame rate bar that sits in the upper left hand corner of some of the example files. I use it for EVERYTHING. Just slap it on the root of the timeline and you&#8217;ve got a live frame rate reading, easy as <span class="Apple-style-span" style="text-decoration: line-through;">pie</span> cake (which is more delicious). I have no idea who wrote it originally, but if it was you, seriously, thank you. Geggy Tah style.
<div></div>
<div>You can pull it down along side the papervision examples. I&#8217;ve also packaged it up	separately	and <a href="http://code.google.com/p/squidder/">added it to our google code page</a>. Long term, we at squidder would like to expand on this and include memory usage as well.
<div></div>
<div>Yeah, that&#8217;s right, I referenced that Geggy Tah song. Bet you hadn&#8217;t thought of that song in like, what, 10 years?</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.squidder.com/2008/04/10/handiest-movieclip-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If only Roc was our GarbageCollector&#8230;</title>
		<link>http://www.squidder.com/2008/04/08/if-only-roc-was-our-garbagecollector/</link>
		<comments>http://www.squidder.com/2008/04/08/if-only-roc-was-our-garbagecollector/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 23:07:11 +0000</pubDate>
		<dc:creator>anguyen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.squidder.com/?p=71</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<div><img src="http://www.baltimoresun.com/media/thumbnails/photo/2001-02/79488.jpg" /></div>
<div></div>
<div>You guys are probably privy to this but here&#8217;s a <a href="http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html">nice write up from The Man himself on garbage collection in as3</a>.</div>
<div></div>
<div>We&#8217;re going to start taking care of things here in NY by providing a standard method in (almost) all the swf&#8217;s we generate that will take care of killing itself (stopping Timers, tweens, etc) and generally cleaning up its p00p. Of course, this will ultimately depend on ass-tight documentation since we all like to play resource musical chairs on projects&#8230;</div>
]]></content:encoded>
			<wfw:commentRss>http://www.squidder.com/2008/04/08/if-only-roc-was-our-garbagecollector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding affordable flash media hosting.</title>
		<link>http://www.squidder.com/2008/04/08/finding-affordable-flash-media-hosting/</link>
		<comments>http://www.squidder.com/2008/04/08/finding-affordable-flash-media-hosting/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 18:46:04 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.squidder.com/?p=70</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>CDN/Streaming services, like <a href="http://www.akamai.com/html/solutions/stream_os.html">Akamai Stream OS</a> and <a href="http://www.limelightnetworks.com/">Limelight</a>, are great. And if you&#8217;re going to have a ton of traffic, streaming live events and more, they are	indispensable. But what if you have a small project? Or you&#8217;re just looking to experiment?
<div></div>
<div>Chances are, if you have a small need, Akamai will just point you to one of their partners that they basically resell bandwidth to. There are many of these partners and, in my experience, probably the best thing is to just call Akamai and ask they direct you to a partner that fits your needs.</div>
<div></div>
<div>But there&#8217;s a big difference when you&#8217;re calling from a big agency and when you&#8217;re calling as a freelancer with a small client.
<div></div>
<div>I&#8217;ve experienced both and will say that the latter can often be disheartening. But there are alternatives, which is where <a href="http://www.influxis.com/">Influxis</a> comes in.	Don&#8217;t let the 1992 green on black design fool you.	Starting as low as 10 bucks a month, they are perfect if you&#8217;re just looking to get to know flash media server. At the same time, I&#8217;ve also used them for much larger scale projects (30k+ server connects in 5 days) and they	performed	wonderfully.	</div>
<div></div>
<div>When big CDNs are overkill, remember that there are reasonable alternatives. I&#8217;m sure there are hundreds of other companies like Influxis and if you&#8217;ve had a good experience with one,	definitely	let us know.</div>
<div></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.squidder.com/2008/04/08/finding-affordable-flash-media-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security update may break existing flash, hearts.</title>
		<link>http://www.squidder.com/2008/04/08/security-update-may-break-existing-flash-hearts/</link>
		<comments>http://www.squidder.com/2008/04/08/security-update-may-break-existing-flash-hearts/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 17:18:45 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.squidder.com/?p=69</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<div style="text-align: left;">The April 2008 security update for the flash plug-in is coming. And it looks mean, especially if you do a lot of communication between flash and the browser in the form of javascript. While it shouldn&#8217;t effect those of you already using allowScriptAccess=&#8221;always&#8221;, its still worth checking against any flash applications you have out in the wild.</div>
<div></div>
<div>More information, <a href="http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html">strait from the horse&#8217;s mouth</a>.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.squidder.com/2008/04/08/security-update-may-break-existing-flash-hearts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
