<?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>*drawlogic &#187; lambda</title>
	<atom:link href="http://drawlogic.com/tag/lambda/feed/" rel="self" type="application/rss+xml" />
	<link>http://drawlogic.com</link>
	<description>interactive and game development technologies for the web - flash, flex, unity3d, silverlight, javascript</description>
	<lastBuildDate>Thu, 22 Dec 2011 21:55:20 +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>as3Query &#8211; Actionscript Port of jQuery</title>
		<link>http://drawlogic.com/2008/04/24/as3query-actionscript-port-of-jquery/</link>
		<comments>http://drawlogic.com/2008/04/24/as3query-actionscript-port-of-jquery/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 01:11:56 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[ACTIONSCRIPT]]></category>
		<category><![CDATA[ACTIONSCRIPT3]]></category>
		<category><![CDATA[ALGORITHM]]></category>
		<category><![CDATA[APPLICATIONS]]></category>
		<category><![CDATA[ARCHITECT]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[BEST OF]]></category>
		<category><![CDATA[CODE]]></category>
		<category><![CDATA[DEVELOPMENT]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[FLEX]]></category>
		<category><![CDATA[FUNCTIONAL]]></category>
		<category><![CDATA[OPEN SOURCE]]></category>
		<category><![CDATA[PROGRAMMING]]></category>
		<category><![CDATA[TECHNOLOGY]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[generators]]></category>
		<category><![CDATA[iteration]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[lambda]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://drawk.wordpress.com/?p=201</guid>
		<description><![CDATA[This is older, from january, somehow I missed it but&#8230; nitoyon has created an AS3 port of jQuery. jQuery is my favorite javascript tool besides javascript itself. Mootools, prototype, and others like mochikit are all great but jQuery was the first to do lambda chain decorating and others followed suit. But having this power in [...]]]></description>
			<content:encoded><![CDATA[<p>This is older, from january, somehow I missed it but&#8230; <a href="http://tech.nitoyon.com/blog/2008/01/as3query_alpha.html" target="_blank">nitoyon </a>has created an <a href="http://tech.nitoyon.com/blog/2008/01/as3query_alpha.html" target="_blank">AS3 port of jQuery</a>.  <a href="http://jquery.com/" target="_blank">jQuery</a> is my favorite javascript tool besides javascript itself. Mootools, prototype, and others like mochikit are all great but jQuery was the first to do <a href="http://www.learningjquery.com/2006/09/sacrificial-lambda" target="_blank">lambda chain decorating </a>and others followed suit.</p>
<p><strong>But<a href="http://tech.nitoyon.com/blog/2008/01/as3query_alpha.html" target="_blank"> having this power in as3</a> is a great thing! </strong><a href="http://www.libspark.org/svn/as3/as3Query/src/com/nitoyon/as3query/$.as" target="_blank">$ selectors</a>, common access methods to properties, methods, etc.  All good stuff. Again this shows the fun in as3 or ES4 based languages like Actionscript because people are porting all sorts of libraries to it. If this performs I may just start using it daily TODAY!</p>
<p>For instance setting the stage align for use in full screen:</p>

<div class="wp_syntax"><div class="code"><pre class="jscript" style="font-family:monospace;">$(stage).attr({scaleMode: &quot;noScale&quot;, align: &quot;TL&quot;});</pre></div></div>

<p>That is too fun&#8230; The only thing not cool about this is all the spam at <a href="http://tech.nitoyon.com/blog/2008/01/as3query_alpha.html" target="_blank">nitoyon</a>&#8216;s blog : )</p>
<p>How about a functional Tweener call:</p>

<div class="wp_syntax"><div class="code"><pre class="jscript" style="font-family:monospace;">function animate(f:Boolean):void {
				// Select 'RoundRect' elements using CSS selector
				$(&quot;RoundRect:&quot; + (f ? &quot;odd&quot; : &quot;even&quot;))
					.addTween({
						rotation: 90,
						scaleX: 0.5,
						scaleY: 0.5,
						time: 0.6,
						delay: 0.3,
						transition: &quot;easeOutCubic&quot;
					})
					.addTween({
						scaleX: 1,
						scaleY: 1,
						time: 0.5,
						delay: 0.9,
						transition: &quot;easeOutElastic&quot;,
						onComplete: function():void {
							// restore the rotation and call again.
							this.rotation = 0;
							animate(!f);
						}
					});
			}
			animate(false);</pre></div></div>

<p><strong>Stuff to see and try</strong></p>
<ul>
<li>CSS Selector Demo <a href="http://snippets.libspark.org/trac/browser/as3/as3Query/samples/CssSelectorDemo.as">Source code</a> <a href="http://snippets.libspark.org/svn/as3/as3Query/samples/CssSelectorDemo.as">plain text</a></li>
<li>25 boxes and Tweener <a href="http://snippets.libspark.org/trac/browser/as3/as3Query/samples/Box25withTweener.as">Source code</a> <a href="http://snippets.libspark.org/svn/as3/as3Query/samples/Box25withTweener.as">plain text</a></li>
<li>SVN: <a href="http://snippets.libspark.org/svn/as3/as3Query/">http://snippets.libspark.org/svn/as3/as3Query/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2008/04/24/as3query-actionscript-port-of-jquery/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

