<?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>zedia flash blog &#187; Tween Classes</title>
	<atom:link href="http://www.zedia.net/tag/tween-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zedia.net</link>
	<description>Flash, ActionScript, SEO and everything in between</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:58:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ActionScript 3 Tween Classes</title>
		<link>http://www.zedia.net/2007/actionscript-3-tween-function/</link>
		<comments>http://www.zedia.net/2007/actionscript-3-tween-function/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 06:15:43 +0000</pubDate>
		<dc:creator>zedia.net</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tween Classes]]></category>

		<guid isPermaLink="false">http://www.zedia.net/?p=3</guid>
		<description><![CDATA[I was reading the book ActionScript 3 cookbook from O&#8217;Reilly (very good book by the way) and I wanted to get my hands dirty. I have never coded in ActionScript 3 before and where i work we still use Flash 8 because it&#8217;s what most people have. So there I was wanting to do basic [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading the book ActionScript 3 cookbook from O&#8217;Reilly (very good book by the way) and I wanted to get my hands dirty. I have never coded in ActionScript 3 before and where i work we still use Flash 8 because it&#8217;s what most people have. So there I was wanting to do basic stuff, regular animation using the tween classes from Flash, but at first I couldn&#8217;t find them. Searched a bit and found all sort of post saying they didn&#8217;t exist anymore, or that you had to use classes from Flex in order to use them. I finally found them after some time. So let me spare you that effort. Here are the tweening classes from flash CS3.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> fl.<span style="color: #006600;">transitions</span>.<span style="color: #006600;">Tween</span>;
<span style="color: #0066CC;">import</span> fl.<span style="color: #006600;">transitions</span>.<span style="color: #006600;">easing</span>.<span style="color: #66cc66;">*</span>;</pre></td></tr></table></div>

<p>and they still work the same way using this syntax:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> myTween:Tween = <span style="color: #000000; font-weight: bold;">new</span> Tween<span style="color: #66cc66;">&#40;</span>myObject, <span style="color: #ff0000;">&quot;x&quot;</span>, Elastic.<span style="color: #006600;">easeOut</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">300</span>, <span style="color: #cc66cc;">3</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>The only difference is with the &#8220;x&#8221; where it used to be &#8220;_x&#8221; because ActionScript 3 dropped the underscore before key properties.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zedia.net/2007/actionscript-3-tween-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

