<?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: AS3 Flash Games for Beginners: Firing Weapons with Delays</title>
	<atom:link href="http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/feed" rel="self" type="application/rss+xml" />
	<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays</link>
	<description>Learn to Make Flash Games, Applications, and Websites</description>
	<pubDate>Sat, 31 Jul 2010 11:43:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Confuzzled</title>
		<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/comment-page-1#comment-4886</link>
		<dc:creator>Confuzzled</dc:creator>
		<pubDate>Mon, 26 Apr 2010 07:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=141#comment-4886</guid>
		<description>fixed this problem now, needed to add stageRef to my mouse coords call, sorry for the wasted message!</description>
		<content:encoded><![CDATA[<p>fixed this problem now, needed to add stageRef to my mouse coords call, sorry for the wasted message!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Confuzzled</title>
		<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/comment-page-1#comment-4885</link>
		<dc:creator>Confuzzled</dc:creator>
		<pubDate>Mon, 26 Apr 2010 07:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=141#comment-4885</guid>
		<description>Hello! 
Congratulations on a fantastic tutorial! Have been trying to tweak things to match my idea but am having trouble making something work and wondered if would be able to advise?
Im trying to add to the code to make the ship point at the mousepointer, Ive added the following to the loop event handler but rather than facing the pointer my movieclip just behaves incredibly erraticly (moves fine but rotates really randomly):

var distanceX : Number = mouseX - x;
var distanceY : Number = mouseY - y;
var angleInRadians : Number = Math.atan2(distanceY, distanceX);
var angleInDegrees : Number = angleInRadians * (180 / Math.PI) + 90;
rotation = angleInDegrees;

Any advice you could give me would be massivley appreciated :)

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hello!<br />
Congratulations on a fantastic tutorial! Have been trying to tweak things to match my idea but am having trouble making something work and wondered if would be able to advise?<br />
Im trying to add to the code to make the ship point at the mousepointer, Ive added the following to the loop event handler but rather than facing the pointer my movieclip just behaves incredibly erraticly (moves fine but rotates really randomly):</p>
<p>var distanceX : Number = mouseX - x;<br />
var distanceY : Number = mouseY - y;<br />
var angleInRadians : Number = Math.atan2(distanceY, distanceX);<br />
var angleInDegrees : Number = angleInRadians * (180 / Math.PI) + 90;<br />
rotation = angleInDegrees;</p>
<p>Any advice you could give me would be massivley appreciated <img src='http://asgamer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sumit</title>
		<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/comment-page-1#comment-4841</link>
		<dc:creator>sumit</dc:creator>
		<pubDate>Fri, 26 Mar 2010 04:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=141#comment-4841</guid>
		<description>hey, im up to the bit with the timer and when i put the timer code on to my ship.as, it gives me an error

it says

ship.as       LINE 115              1158:Syntax Error: missing left brace ({) before the function body and its on the private function fireTimerHandler(e:TimerEvent) : void. 

it still happens if i copy the code from the website and do it, so it couldnt be a mistake i made or sometthing but im confused help please guys?</description>
		<content:encoded><![CDATA[<p>hey, im up to the bit with the timer and when i put the timer code on to my ship.as, it gives me an error</p>
<p>it says</p>
<p>ship.as       LINE 115              1158:Syntax Error: missing left brace ({) before the function body and its on the private function fireTimerHandler(e:TimerEvent) : void. </p>
<p>it still happens if i copy the code from the website and do it, so it couldnt be a mistake i made or sometthing but im confused help please guys?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kingram</title>
		<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/comment-page-1#comment-4674</link>
		<dc:creator>kingram</dc:creator>
		<pubDate>Wed, 16 Dec 2009 14:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=141#comment-4674</guid>
		<description>hello everyone,

First of all i am new to this section so i want to thank you for the tutorial and all the questions answers from everybody...! which is helping a lot for my learning experience of AS3.
But i have a "dumb" question if i may, as i never used ActionScript before! How you "Create a new file under directory and fill it with the code".I am a bit confused and it is not making sense for so far...! I am having headaches learning for the moment but i believe it is for the better...!
Thank you so much to every on and keep up the good work...!

Happy Christmas to you guys.</description>
		<content:encoded><![CDATA[<p>hello everyone,</p>
<p>First of all i am new to this section so i want to thank you for the tutorial and all the questions answers from everybody&#8230;! which is helping a lot for my learning experience of AS3.<br />
But i have a &#8220;dumb&#8221; question if i may, as i never used ActionScript before! How you &#8220;Create a new file under directory and fill it with the code&#8221;.I am a bit confused and it is not making sense for so far&#8230;! I am having headaches learning for the moment but i believe it is for the better&#8230;!<br />
Thank you so much to every on and keep up the good work&#8230;!</p>
<p>Happy Christmas to you guys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Par</title>
		<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/comment-page-1#comment-4581</link>
		<dc:creator>Par</dc:creator>
		<pubDate>Tue, 17 Nov 2009 14:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=141#comment-4581</guid>
		<description>Aro is correct. It's not the swf with the problem it's your computer :(</description>
		<content:encoded><![CDATA[<p>Aro is correct. It&#8217;s not the swf with the problem it&#8217;s your computer <img src='http://asgamer.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maelyn</title>
		<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/comment-page-1#comment-4579</link>
		<dc:creator>Maelyn</dc:creator>
		<pubDate>Mon, 16 Nov 2009 23:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=141#comment-4579</guid>
		<description>I am getting the same problem with moving up+left and shooting at the same time, though every other direction combination + shoot work as well. And I tested by swapping the y up and down in the if statements.

HOWEVER, this is only an issue with using the arrow keys. Using the numpad arrows (8,4,6,3) allows movement Up+left and shooting at the same time.

Also, when I try and use Keyboard.Z for shoot instead of space.... nothing happens, running Test Movie doesn't draw the ship or the stars...</description>
		<content:encoded><![CDATA[<p>I am getting the same problem with moving up+left and shooting at the same time, though every other direction combination + shoot work as well. And I tested by swapping the y up and down in the if statements.</p>
<p>HOWEVER, this is only an issue with using the arrow keys. Using the numpad arrows (8,4,6,3) allows movement Up+left and shooting at the same time.</p>
<p>Also, when I try and use Keyboard.Z for shoot instead of space&#8230;. nothing happens, running Test Movie doesn&#8217;t draw the ship or the stars&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aro</title>
		<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/comment-page-1#comment-4576</link>
		<dc:creator>Aro</dc:creator>
		<pubDate>Mon, 16 Nov 2009 02:20:20 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=141#comment-4576</guid>
		<description>Hi Joseh and B, your problem is not the swf but your keyboard! Some keyboards (my laptop does this) have a limited number of keys that can be pressed at the same time within a group of keys. I don't have to worry about this on my desktop keyboard though... I guess more powerful keyboards handle more keys?...

-Aro</description>
		<content:encoded><![CDATA[<p>Hi Joseh and B, your problem is not the swf but your keyboard! Some keyboards (my laptop does this) have a limited number of keys that can be pressed at the same time within a group of keys. I don&#8217;t have to worry about this on my desktop keyboard though&#8230; I guess more powerful keyboards handle more keys?&#8230;</p>
<p>-Aro</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: B</title>
		<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/comment-page-1#comment-3929</link>
		<dc:creator>B</dc:creator>
		<pubDate>Thu, 09 Jul 2009 04:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=141#comment-3929</guid>
		<description>Hey Par, I'm seeing the same problem as Joseph. If I start moving diagonal upward left (up/left keys at the same time) then press and hold spacebar no firing comes out. All other directions work perfect. This happens in your example as well on this page. The weird thing is that Joseph says down/left doesn't work for him and I say up/left doesn't work for me (on your example on this page), so what could be the problem? It must not be a programming error if we're having different results with the same code (your version on this page), or Joseph could have just typed down/left on accident.</description>
		<content:encoded><![CDATA[<p>Hey Par, I&#8217;m seeing the same problem as Joseph. If I start moving diagonal upward left (up/left keys at the same time) then press and hold spacebar no firing comes out. All other directions work perfect. This happens in your example as well on this page. The weird thing is that Joseph says down/left doesn&#8217;t work for him and I say up/left doesn&#8217;t work for me (on your example on this page), so what could be the problem? It must not be a programming error if we&#8217;re having different results with the same code (your version on this page), or Joseph could have just typed down/left on accident.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weird</title>
		<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/comment-page-1#comment-2769</link>
		<dc:creator>Weird</dc:creator>
		<pubDate>Fri, 05 Jun 2009 07:27:13 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=141#comment-2769</guid>
		<description>I was getting error 1136 as well, there is just a little typo above, we are told to make BlueLaser.as, but it's actually LaserBlue.as. 

this is totally a rad tutorial, seriously blowing my mind.

thanks!</description>
		<content:encoded><![CDATA[<p>I was getting error 1136 as well, there is just a little typo above, we are told to make BlueLaser.as, but it&#8217;s actually LaserBlue.as. </p>
<p>this is totally a rad tutorial, seriously blowing my mind.</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://asgamer.com/2009/as3-flash-games-for-beginners-firing-weapons-with-delays/comment-page-1#comment-2250</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Fri, 22 May 2009 17:11:26 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=141#comment-2250</guid>
		<description>I keep getting an error in regards to line 111 of the Ship.as file. I'm not quite sure what I missed and why I am getting this (must less how to correct it).


1136: Incorrect number of arguments.  Expected 0.</description>
		<content:encoded><![CDATA[<p>I keep getting an error in regards to line 111 of the Ship.as file. I&#8217;m not quite sure what I missed and why I am getting this (must less how to correct it).</p>
<p>1136: Incorrect number of arguments.  Expected 0.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
