<?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>Jozef Chúťka&#039;s blog &#187; rest</title>
	<atom:link href="http://blog.yoz.sk/tag/rest/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk</link>
	<description>My life, my work</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:40:53 +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>Quick tip: &#8230; (rest) parameter</title>
		<link>http://blog.yoz.sk/2010/02/quick-tip-rest-parameter/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=quick-tip-rest-parameter</link>
		<comments>http://blog.yoz.sk/2010/02/quick-tip-rest-parameter/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 16:11:05 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[rest]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=983</guid>
		<description><![CDATA[Here is a quick tip for using &#8230; (rest) parameter in your code. It sometimes happens that you want to have your function called multiple times, when different events dispatched or even without any event dispatched. Properly you would create callback/handler functions for all events, that would call the required function. Or you can use [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick tip for using <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/statements.html#..._(rest)_parameter">&#8230; (rest) parameter</a> in your code. It sometimes happens that you want to have your function called multiple times, when different events dispatched or even without any event dispatched. Properly you would create callback/handler functions for all events, that would call the required function. Or you can use &#8230; (rest) parameter to bypass arguments casting.</p>
<pre class="brush: as3; title: ; notranslate">priate function init():void
{
    addEventListener(Event.ENTER_FRAME, doSomething);

    var timer:Timer = new Timer(500);
    timer.addEventListener(TimerEvent.TIMER, doSomething);
    timer.start();

    callLater(doSomething);
    doSomething();
}

private function doSomething(... rest):void
{
// whatever
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2010/02/quick-tip-rest-parameter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

