<?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>Alastair&#039;s Axioms &#187; ActionSnip</title>
	<atom:link href="http://blog.alastairdawson.com/category/actionsnip/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alastairdawson.com</link>
	<description>Flex, Ruby, etc. etc.</description>
	<lastBuildDate>Thu, 11 Feb 2010 19:28:16 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Some App Engine links</title>
		<link>http://blog.alastairdawson.com/2008/04/15/some-app-engine-links/</link>
		<comments>http://blog.alastairdawson.com/2008/04/15/some-app-engine-links/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 05:19:51 +0000</pubDate>
		<dc:creator>Alastair</dc:creator>
				<category><![CDATA[ActionSnip]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.vixiom.com/2008/04/15/some-app-engine-links/</guid>
		<description><![CDATA[Aral Balkan on Building Flash applications with Google App Engine.
PureMVC Python / Google App Engine Demo
]]></description>
			<content:encoded><![CDATA[<p>Aral Balkan on <a href="http://aralbalkan.com/1307">Building Flash applications with Google App Engine</a>.</p>
<p><a href="http://trac.puremvc.org/Demo_Python_GoogleAppEngine_Blog">PureMVC Python / Google App Engine Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alastairdawson.com/2008/04/15/some-app-engine-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing ActionSnip</title>
		<link>http://blog.alastairdawson.com/2008/01/07/introducing-actionsnip/</link>
		<comments>http://blog.alastairdawson.com/2008/01/07/introducing-actionsnip/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 20:47:42 +0000</pubDate>
		<dc:creator>Alastair</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[ActionSnip]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Shameless Self Promotion]]></category>

		<guid isPermaLink="false">http://blog.vixiom.com/2008/01/07/introducing-actionsnip/</guid>
		<description><![CDATA[My new year&#8217;s resolution is to organize my ActionScript snippets, so I made a website to do just that actionsnip.com.
I know yes another snippet site, but none of the others highlight ActionScript properly. And because I don&#8217;t only collect snippets but blog posts about ActionScript as well there&#8217;s a feature called scraps which lets you [...]]]></description>
			<content:encoded><![CDATA[<p>My new year&#8217;s resolution is to organize my ActionScript snippets, so I made a website to do just that <a href="http://www.actionsnip.com">actionsnip.com</a>.</p>
<p>I know yes another snippet site, but none of the others highlight ActionScript properly. And because I don&#8217;t only collect snippets but blog posts about ActionScript as well there&#8217;s a feature called scraps which lets you save useful posts along side your snippets.</p>
<p><img src="http://blog.vixiom.com/uploads/actionsnip_example.png" alt="" /></p>
<p>Other features include saving favorite snippets/scraps that others have posted, and a &#8217;steal this code&#8217; link which gives you highlighted code to embed in your blog just like the example below (here&#8217;s the original <a href="http://www.actionsnip.com/snippets/actionsnip/email-validation-with-flash">on ActionSnip</a>)</p>
<p>&#8212;</p>
<p><!-- begin actionsnip --></p>
<style>
pre.actionsnip {white-space: pre;font-family: "Monaco", monospace;font-size: 11px;color: #333;background-color: #fff;padding: 20px;overflow: auto;margin: 15px 0 30px;border: 1px solid #ddd;}
.actionsnip .imp {font-weight: bold; color: red;}
.actionsnip .kw1 {color: #69c;font-weight: bold;}
.actionsnip .kw2 {color: #396; font-weight: bold;}
.actionsnip .kw3 {color: #03f;font-weight: bold;}
.actionsnip .co1 {color: #090; font-style: italic;}
.actionsnip .co2 {color: #808080; font-style: italic;}
.actionsnip .coMULTI {color: #808080; font-style: italic;}
.actionsnip .es0 {color: #000099; font-weight: bold;}
.actionsnip .br0 {color: #000;}
.actionsnip .st0 {color: #a60000;font-weight: bold;}
.actionsnip .nu0 {color: #000;}
.actionsnip .me1 {color: #000000;}
</style>
<p><!-- begin block --></p>
<p>Returns true if inputed email is valid.</p>
<pre class="actionsnip"><span class="kw3">function</span> emailValid<span class="br0">&#40;</span> email:<span class="kw3">String</span> <span class="br0">&#41;</span>:<span class="kw3">Boolean</span>
<span class="br0">&#123;</span>

    <span class="kw1">var</span> emailRegExp:RegExp = /<span class="br0">&#40;</span>A<span class="br0">&#40;</span>s*<span class="br0">&#41;</span>Z<span class="br0">&#41;</span>|<span class="br0">&#40;</span>A<span class="br0">&#40;</span><span class="br0">&#91;</span>^@s<span class="br0">&#93;</span>+<span class="br0">&#41;</span>@<span class="br0">&#40;</span><span class="br0">&#40;</span>?:<span class="br0">&#91;</span>-a-z0<span class="nu0">-9</span><span class="br0">&#93;</span>+.<span class="br0">&#41;</span>+<span class="br0">&#91;</span>a-z<span class="br0">&#93;</span><span class="br0">&#123;</span><span class="nu0">2</span>,<span class="br0">&#125;</span><span class="br0">&#41;</span>Z<span class="br0">&#41;</span>/i;
    <span class="kw3">return</span> emailRegExp.<span class="me1">test</span><span class="br0">&#40;</span>email<span class="br0">&#41;</span>;

<span class="br0">&#125;</span></pre>
<p><!-- end block --><br />
<!-- begin block --></p>
<p>Usage &#8230;</p>
<pre class="actionsnip"><span class="co1">// returns true</span>
<span class="kw3">trace</span><span class="br0">&#40;</span>emailValid<span class="br0">&#40;</span><span class="st0">&quot;user@domain.com&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;
<span class="co1">// returns false</span>
<span class="kw3">trace</span><span class="br0">&#40;</span>emailValid<span class="br0">&#40;</span><span class="st0">&quot;user@domaincom&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;

<span class="co1">// returns false</span>
<span class="kw3">trace</span><span class="br0">&#40;</span>emailValid<span class="br0">&#40;</span><span class="st0">&quot;user%domain.com&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</pre>
<p><!-- end block --><br />
<!-- end actionsnip --><br />
&#8212;</p>
<p>If you don&#8217;t like the Flex Builder styling you can overide it with your own styles. Currently it supports just ActionScript but I&#8217;m working on MXML and MXML/ActionScript.</p>
<p>Most of the bugs are squashed but if you see anything let me know (it seems to bug out with a snippet over 500 lines of code so please just snippets for now). Constructive (and even destructive) criticism is welcome.</p>
<p>Snip away!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alastairdawson.com/2008/01/07/introducing-actionsnip/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
