<?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: Making a Complete Flash Game: Menus, UI, Screens, or Windows</title>
	<atom:link href="http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/feed" rel="self" type="application/rss+xml" />
	<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows</link>
	<description>Learn to Make Flash Games, Applications, and Websites</description>
	<lastBuildDate>Fri, 16 Dec 2011 19:32:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cool math</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/comment-page-1#comment-6282</link>
		<dc:creator>cool math</dc:creator>
		<pubDate>Fri, 16 Dec 2011 19:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=429#comment-6282</guid>
		<description>Great tutorial!, this save me a lot of time thinking on how to separate some component in my game and screens clases for less coupling between presentation and logic of the game code. :D</description>
		<content:encoded><![CDATA[<p>Great tutorial!, this save me a lot of time thinking on how to separate some component in my game and screens clases for less coupling between presentation and logic of the game code. <img src='http://asgamer.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JRF</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/comment-page-1#comment-6244</link>
		<dc:creator>JRF</dc:creator>
		<pubDate>Wed, 23 Nov 2011 03:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=429#comment-6244</guid>
		<description>I got it!
Just follow this tutorial just as if your game didn&#039;t exist yet.
Make sure you get each of the 3 parts working and your game loading before you get to the next part.
Also I used the Stage document background color set to black,instead of using the rectangle in the very beginning.Since I could not change my games document without breaking it.
Then I just set it up using Pete says:
February 7, 2010 at 9:56 am-
in the play game function:
private function playGame(e:MouseEvent) : void
{
this.stageRef.dispatchEvent(new Event(”gameSTART”));

}
and in the Engine.as, under the preLoader.addEventListener…stuff, add the following:
stage.addEventListener(”gameSTART”, fGameStart);

then in the Engine.as, create the following function:

private function fGameStart(evt:Event):void {

//code to start your game goes here…
myPerson = new Person(stage);
myPerson.x = stage.stageWidth / 2;
myPerson.y = stage.stageHeight / 2;
stage.addChild(myPerson);
			
scoreHUD = new ScoreHUD(stage); //create our HUD
stage.addChild(scoreHUD); //and display it.
 			
myGerm = new Germ(stage, myPerson);
stage.addChild(myGerm);
			
trace(GermRemoved );
if (GermRemoved == 0)	
{
addEventListener(Event.ENTER_FRAME, loop, false, 0, true);
trace(&quot;Yesloop&quot;);
//GermRemoved = 1;
trace(GermRemoved );
}
else
{
trace(&quot;Noloop&quot;);
}

}
Basically I waited to add anything to stage form my game until I was ready to press the play button.
Finally to get rid of the Main Menu I just added:
unload();
to
private function playGame(e:MouseEvent) : void
		{
 		unload();
		this.stageRef.dispatchEvent(new Event(&quot;gameSTART&quot;));
		}
  And now to continue with my game development!
Hope this helps someone.</description>
		<content:encoded><![CDATA[<p>I got it!<br />
Just follow this tutorial just as if your game didn&#8217;t exist yet.<br />
Make sure you get each of the 3 parts working and your game loading before you get to the next part.<br />
Also I used the Stage document background color set to black,instead of using the rectangle in the very beginning.Since I could not change my games document without breaking it.<br />
Then I just set it up using Pete says:<br />
February 7, 2010 at 9:56 am-<br />
in the play game function:<br />
private function playGame(e:MouseEvent) : void<br />
{<br />
this.stageRef.dispatchEvent(new Event(”gameSTART”));</p>
<p>}<br />
and in the Engine.as, under the preLoader.addEventListener…stuff, add the following:<br />
stage.addEventListener(”gameSTART”, fGameStart);</p>
<p>then in the Engine.as, create the following function:</p>
<p>private function fGameStart(evt:Event):void {</p>
<p>//code to start your game goes here…<br />
myPerson = new Person(stage);<br />
myPerson.x = stage.stageWidth / 2;<br />
myPerson.y = stage.stageHeight / 2;<br />
stage.addChild(myPerson);</p>
<p>scoreHUD = new ScoreHUD(stage); //create our HUD<br />
stage.addChild(scoreHUD); //and display it.</p>
<p>myGerm = new Germ(stage, myPerson);<br />
stage.addChild(myGerm);</p>
<p>trace(GermRemoved );<br />
if (GermRemoved == 0)<br />
{<br />
addEventListener(Event.ENTER_FRAME, loop, false, 0, true);<br />
trace(&#8220;Yesloop&#8221;);<br />
//GermRemoved = 1;<br />
trace(GermRemoved );<br />
}<br />
else<br />
{<br />
trace(&#8220;Noloop&#8221;);<br />
}</p>
<p>}<br />
Basically I waited to add anything to stage form my game until I was ready to press the play button.<br />
Finally to get rid of the Main Menu I just added:<br />
unload();<br />
to<br />
private function playGame(e:MouseEvent) : void<br />
		{<br />
 		unload();<br />
		this.stageRef.dispatchEvent(new Event(&#8220;gameSTART&#8221;));<br />
		}<br />
  And now to continue with my game development!<br />
Hope this helps someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JRF</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/comment-page-1#comment-6235</link>
		<dc:creator>JRF</dc:creator>
		<pubDate>Mon, 21 Nov 2011 15:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=429#comment-6235</guid>
		<description>Same question as rob-If any one got this to work with their game please post your code. So we have some idea of how it is done-please!</description>
		<content:encoded><![CDATA[<p>Same question as rob-If any one got this to work with their game please post your code. So we have some idea of how it is done-please!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/comment-page-1#comment-6096</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Wed, 26 Oct 2011 19:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=429#comment-6096</guid>
		<description>hi, does any one have a finished game with a menu linked to the game, in the method describe in these tutorials. cause i cant figure out what code starts my game and how to remove the menu ect.</description>
		<content:encoded><![CDATA[<p>hi, does any one have a finished game with a menu linked to the game, in the method describe in these tutorials. cause i cant figure out what code starts my game and how to remove the menu ect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/comment-page-1#comment-6046</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sun, 21 Aug 2011 01:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=429#comment-6046</guid>
		<description>Yup, same problem as Daniel. I put all this work into the game and now I can&#039;t even get a preloader working. Also, I&#039;m getting errors with the Tweener in your downloaded final files before I even touch them.</description>
		<content:encoded><![CDATA[<p>Yup, same problem as Daniel. I put all this work into the game and now I can&#8217;t even get a preloader working. Also, I&#8217;m getting errors with the Tweener in your downloaded final files before I even touch them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BamLib</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/comment-page-1#comment-5974</link>
		<dc:creator>BamLib</dc:creator>
		<pubDate>Sat, 04 Jun 2011 03:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=429#comment-5974</guid>
		<description>I&#039;m really enjoying your tutorials so far and I&#039;m extremely grateful that they&#039;re here.
Just a quick question though, when about&#039;s is the next part of the series of tutorials coming?
Also my friend has few good tutorials of his own, would it be alright if he gave them to you to put up here?</description>
		<content:encoded><![CDATA[<p>I&#8217;m really enjoying your tutorials so far and I&#8217;m extremely grateful that they&#8217;re here.<br />
Just a quick question though, when about&#8217;s is the next part of the series of tutorials coming?<br />
Also my friend has few good tutorials of his own, would it be alright if he gave them to you to put up here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/comment-page-1#comment-5936</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Thu, 28 Apr 2011 18:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=429#comment-5936</guid>
		<description>Please finish this tutorial. What a monster cliffhanger you have left us. I need to know what goes in the Play button.</description>
		<content:encoded><![CDATA[<p>Please finish this tutorial. What a monster cliffhanger you have left us. I need to know what goes in the Play button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dash</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/comment-page-1#comment-5915</link>
		<dc:creator>dash</dc:creator>
		<pubDate>Mon, 11 Apr 2011 18:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=429#comment-5915</guid>
		<description>hello there i just wondering can this games or the codes be used for flash lite...and i stupid NOOB(me) question where do u put these codes is it on the first frame ..or on actions layer or on the items

im a new beginner for flash need ur help pls email me ur answer
to 
devildash47@yahoo.com 

ur tutorial is the best!!!!</description>
		<content:encoded><![CDATA[<p>hello there i just wondering can this games or the codes be used for flash lite&#8230;and i stupid NOOB(me) question where do u put these codes is it on the first frame ..or on actions layer or on the items</p>
<p>im a new beginner for flash need ur help pls email me ur answer<br />
to<br />
<a href="mailto:devildash47@yahoo.com">devildash47@yahoo.com</a> </p>
<p>ur tutorial is the best!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/comment-page-1#comment-5529</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 26 Feb 2011 10:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=429#comment-5529</guid>
		<description>I have implemented your solution into my game and it worked absolutely fine except even though I un-ticked all the &quot;Export to frame 1&quot; I still get all my assets loading on the first frame thus making the preloader taking a while to appear. I tried creating a new game from scratch following your tuts but get the same error. Really confusing, read your tut over and over but still don&#039;t get why??</description>
		<content:encoded><![CDATA[<p>I have implemented your solution into my game and it worked absolutely fine except even though I un-ticked all the &#8220;Export to frame 1&#8243; I still get all my assets loading on the first frame thus making the preloader taking a while to appear. I tried creating a new game from scratch following your tuts but get the same error. Really confusing, read your tut over and over but still don&#8217;t get why??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RamenNoodles</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-menus-ui-screens-or-windows/comment-page-1#comment-5442</link>
		<dc:creator>RamenNoodles</dc:creator>
		<pubDate>Mon, 14 Feb 2011 16:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=429#comment-5442</guid>
		<description>I got it work fine, make sure you have this

	private function showMenu(e:Event):void
	{
		new MainMenu(stage).load();
	}

in the Engine or whatever you named your main script.  That was the problem I had when the screen would just be blank after the sponsers frame.

The problem I&#039;m having now is what to do next lol.  I tried loading the game scene link a menu but I keep getting an object null reference error, and all the game objects would load right away during the preroll.  I even set the all new scripts and movie clips I to NOT export on frame 1.

Does this mean I would have to insert a new keyframe and have the game in there and just have the &quot;Play Game&quot; button have

gotoAndPlay(3);

Or is there a better way?

With the way the tutorials are going I would assume just making a new keyframe with the game is not good flash practice.

I hope the next tutorial comes up soon :D</description>
		<content:encoded><![CDATA[<p>I got it work fine, make sure you have this</p>
<p>	private function showMenu(e:Event):void<br />
	{<br />
		new MainMenu(stage).load();<br />
	}</p>
<p>in the Engine or whatever you named your main script.  That was the problem I had when the screen would just be blank after the sponsers frame.</p>
<p>The problem I&#8217;m having now is what to do next lol.  I tried loading the game scene link a menu but I keep getting an object null reference error, and all the game objects would load right away during the preroll.  I even set the all new scripts and movie clips I to NOT export on frame 1.</p>
<p>Does this mean I would have to insert a new keyframe and have the game in there and just have the &#8220;Play Game&#8221; button have</p>
<p>gotoAndPlay(3);</p>
<p>Or is there a better way?</p>
<p>With the way the tutorials are going I would assume just making a new keyframe with the game is not good flash practice.</p>
<p>I hope the next tutorial comes up soon <img src='http://asgamer.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

