<?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>NewSourceMedia Blog &#187; onInterFrame</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/oninterframe/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Fri, 30 Dec 2011 04:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Flash AS3 onEnterFrame event changed</title>
		<link>http://newsourcemedia.com/blog/flash-as3-onenterframe-event-changed/</link>
		<comments>http://newsourcemedia.com/blog/flash-as3-onenterframe-event-changed/#comments</comments>
		<pubDate>Mon, 11 May 2009 19:16:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Workarounds]]></category>
		<category><![CDATA[attach]]></category>
		<category><![CDATA[enter frame]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[onEnterFrame]]></category>
		<category><![CDATA[onInterFrame]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=530</guid>
		<description><![CDATA[Actionscript 3.0 onEnterFrame has changed a bit from the old classic AS2 onEnterFrame event function. I'll illustrart the old and new way of preforming animations using the Enter Frame event. The classic way of attaching an onEnterFrame event to a &#8230; <a href="http://newsourcemedia.com/blog/flash-as3-onenterframe-event-changed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Actionscript 3.0 onEnterFrame has changed a bit from the old classic AS2 onEnterFrame event function. I'll illustrart the old and new way of preforming animations using the Enter Frame event. <span id="more-530"></span>The classic way of attaching an onEnterFrame event to a stage or movie clip was done this way:

<pre lang="actionscript">myMovieClip.onEnterFrame = function(){
trace("do something repetitive");
}</pre>

In AS3, you'll have to use an event listener method to preform a frame event like so:
<pre lang="actionscript">
myMovieClip.addEventListener(Event.ENTER_FRAME,enterFrameFunction);
function enterFrameFunction(event:Event) {
trace("do something repetitive");
}</pre>

Like most functions in AS3, it's a little more involved than AS2, however when your done, your flash should load and run faster.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/flash-as3-onenterframe-event-changed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
