<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: MGAS3FD 5: Enter the frame</title>
	<atom:link href="http://prototyprally.com/mgas3fd-5-enter-the-frame/feed/" rel="self" type="application/rss+xml" />
	<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/</link>
	<description>rapid prototyping of games using flash</description>
	<lastBuildDate>Tue, 09 Mar 2010 23:48:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jens</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7197</link>
		<dc:creator>Jens</dc:creator>
		<pubDate>Wed, 24 Feb 2010 23:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7197</guid>
		<description>This is my code, if it would help:

package com.grapefrukt.tutorial.supergame {
 
	import com.grapefrukt.tutorial.supergame.enemies.Enemy;
	import flash.display.Sprite;
	import flash.events.Event
	
	public class Main extends Sprite {
		
		public var enemy:Enemy;
				
		 	private function handleEnterFrame(e:Event):void {
				enemy.x += 1;
				enemy.y = mouseY
				}
		
		public function Main():void {
			enemy = new Enemy();
			addChild(enemy)
			this.x = Math.random() * 500
			this.y = 300;
			enemy.rotation = 90
			addEventListener(Event.ENTER_FRAME, handleEnterFrame);
		}
		
	}
 
}</description>
		<content:encoded><![CDATA[<p>This is my code, if it would help:</p>
<p>package com.grapefrukt.tutorial.supergame {</p>
<p>	import com.grapefrukt.tutorial.supergame.enemies.Enemy;<br />
	import flash.display.Sprite;<br />
	import flash.events.Event</p>
<p>	public class Main extends Sprite {</p>
<p>		public var enemy:Enemy;</p>
<p>		 	private function handleEnterFrame(e:Event):void {<br />
				enemy.x += 1;<br />
				enemy.y = mouseY<br />
				}</p>
<p>		public function Main():void {<br />
			enemy = new Enemy();<br />
			addChild(enemy)<br />
			this.x = Math.random() * 500<br />
			this.y = 300;<br />
			enemy.rotation = 90<br />
			addEventListener(Event.ENTER_FRAME, handleEnterFrame);<br />
		}</p>
<p>	}</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ohno</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7193</link>
		<dc:creator>Ohno</dc:creator>
		<pubDate>Sun, 21 Feb 2010 02:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7193</guid>
		<description>Yeah, ditto, I can&#039;t get mine to move either. Really wish you had uploaded the project for this one, I&#039;m totally lost.</description>
		<content:encoded><![CDATA[<p>Yeah, ditto, I can&#8217;t get mine to move either. Really wish you had uploaded the project for this one, I&#8217;m totally lost.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: w33n</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7192</link>
		<dc:creator>w33n</dc:creator>
		<pubDate>Sat, 20 Feb 2010 13:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7192</guid>
		<description>Gah, another thing, I can&#039;t get my gnome to move.
Doesn&#039;t do anything.</description>
		<content:encoded><![CDATA[<p>Gah, another thing, I can&#8217;t get my gnome to move.<br />
Doesn&#8217;t do anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: w33n</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7191</link>
		<dc:creator>w33n</dc:creator>
		<pubDate>Sat, 20 Feb 2010 13:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7191</guid>
		<description>Nevermind, I realized I had to place &quot;private function handleEnterFrame(e:Event):void {
	trace(&quot;enter the frame!&quot;);
}&quot; above the constructor.</description>
		<content:encoded><![CDATA[<p>Nevermind, I realized I had to place &#8220;private function handleEnterFrame(e:Event):void {<br />
	trace(&#8220;enter the frame!&#8221;);<br />
}&#8221; above the constructor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: w33n</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7190</link>
		<dc:creator>w33n</dc:creator>
		<pubDate>Sat, 20 Feb 2010 13:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7190</guid>
		<description>I don&#039;t know what I&#039;m doing wrong, but no matter how many times I start over, it keeps giving me the &quot;The private attribute may be used only on class property definitions.&quot; error.

What am I doing wrong?
I already imported flash.events.Event, and I followed the tutorial 100%.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know what I&#8217;m doing wrong, but no matter how many times I start over, it keeps giving me the &#8220;The private attribute may be used only on class property definitions.&#8221; error.</p>
<p>What am I doing wrong?<br />
I already imported flash.events.Event, and I followed the tutorial 100%.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vik</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7168</link>
		<dc:creator>vik</dc:creator>
		<pubDate>Mon, 25 Jan 2010 18:56:49 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7168</guid>
		<description>okay got it
I had to add &quot;import flash.events.Event&quot;</description>
		<content:encoded><![CDATA[<p>okay got it<br />
I had to add &#8220;import flash.events.Event&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vik</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7167</link>
		<dc:creator>vik</dc:creator>
		<pubDate>Mon, 25 Jan 2010 17:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7167</guid>
		<description>I actually did everything but it gives me this error: 
The private attribute may be used only on class property definitions.
private function handleEnterFrame(e:Event):void {</description>
		<content:encoded><![CDATA[<p>I actually did everything but it gives me this error:<br />
The private attribute may be used only on class property definitions.<br />
private function handleEnterFrame(e:Event):void {</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnthegaylizard</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7157</link>
		<dc:creator>Johnthegaylizard</dc:creator>
		<pubDate>Tue, 05 Jan 2010 20:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7157</guid>
		<description>@ Siyano

the &quot;addEventListener&quot; goes into the constructor of Main.as, or &quot;public function Main():void {&quot; below the enemy x and y positions

The &quot;private function handleEnter....&quot; goes outside the constructor, within the class.
---
I was trying to figure out how to use Mouse.hide() so we don&#039;t see that accursed pointer, but I only know how to do that in actual flash :(</description>
		<content:encoded><![CDATA[<p>@ Siyano</p>
<p>the &#8220;addEventListener&#8221; goes into the constructor of Main.as, or &#8220;public function Main():void {&#8221; below the enemy x and y positions</p>
<p>The &#8220;private function handleEnter&#8230;.&#8221; goes outside the constructor, within the class.<br />
&#8212;<br />
I was trying to figure out how to use Mouse.hide() so we don&#8217;t see that accursed pointer, but I only know how to do that in actual flash <img src='http://prototyprally.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siyano</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7154</link>
		<dc:creator>Siyano</dc:creator>
		<pubDate>Tue, 05 Jan 2010 19:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7154</guid>
		<description>&quot;I don’t where you put that line&quot;
I meant to say &quot;I dont see where&quot;</description>
		<content:encoded><![CDATA[<p>&#8220;I don’t where you put that line&#8221;<br />
I meant to say &#8220;I dont see where&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siyano</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7153</link>
		<dc:creator>Siyano</dc:creator>
		<pubDate>Tue, 05 Jan 2010 19:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7153</guid>
		<description>I don&#039;t understand really this part, where do you type the addEventListener? Even the prepared project from part 6 I don&#039;t where you put that line</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand really this part, where do you type the addEventListener? Even the prepared project from part 6 I don&#8217;t where you put that line</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefano</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-7123</link>
		<dc:creator>Stefano</dc:creator>
		<pubDate>Thu, 12 Nov 2009 16:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-7123</guid>
		<description>I&#039;m finally overcoming my phobia and understanding OOP.
It&#039;s actually pretty fun and easier than just stuffing everything in frames.
Yay!

As for the &quot;added challenge&quot; bit:
Is there a better (and not too complicated) way to change graphics registration points in AS3?
I moved the &quot;gfx&quot; child bitmap inside its &quot;Enemy&quot; container so the gnome nose was properly aligned.</description>
		<content:encoded><![CDATA[<p>I&#8217;m finally overcoming my phobia and understanding OOP.<br />
It&#8217;s actually pretty fun and easier than just stuffing everything in frames.<br />
Yay!</p>
<p>As for the &#8220;added challenge&#8221; bit:<br />
Is there a better (and not too complicated) way to change graphics registration points in AS3?<br />
I moved the &#8220;gfx&#8221; child bitmap inside its &#8220;Enemy&#8221; container so the gnome nose was properly aligned.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drazzke</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-6822</link>
		<dc:creator>Drazzke</dc:creator>
		<pubDate>Mon, 06 Jul 2009 19:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-6822</guid>
		<description>Really great tutorial, it&#039;s a really nice introduction to actionscript!</description>
		<content:encoded><![CDATA[<p>Really great tutorial, it&#8217;s a really nice introduction to actionscript!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hallonduell</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-6247</link>
		<dc:creator>Hallonduell</dc:creator>
		<pubDate>Thu, 23 Apr 2009 20:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-6247</guid>
		<description>After using FD you realize how crappy the flash IDE is when it comes to coding.</description>
		<content:encoded><![CDATA[<p>After using FD you realize how crappy the flash IDE is when it comes to coding.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernard</title>
		<link>http://prototyprally.com/mgas3fd-5-enter-the-frame/comment-page-1/#comment-6245</link>
		<dc:creator>Bernard</dc:creator>
		<pubDate>Tue, 21 Apr 2009 02:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://prototyprally.com/?p=268#comment-6245</guid>
		<description>Hey, thanks for the tutorials, helped me a lot!</description>
		<content:encoded><![CDATA[<p>Hey, thanks for the tutorials, helped me a lot!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
