<?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: Building a Foundation For Your Games and Handling Screens</title>
	<atom:link href="http://cheezeworld.com/game-foundation-and-screens/feed/" rel="self" type="application/rss+xml" />
	<link>http://cheezeworld.com/game-foundation-and-screens/</link>
	<description>The Cheeze to Your Macaroni - Games, Open Source Programming, and Other Odd Ramblings.</description>
	<lastBuildDate>Sun, 27 Feb 2011 05:06:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sidar</title>
		<link>http://cheezeworld.com/game-foundation-and-screens/comment-page-1/#comment-4614</link>
		<dc:creator>Sidar</dc:creator>
		<pubDate>Wed, 29 Jul 2009 00:15:05 +0000</pubDate>
		<guid isPermaLink="false">http://cheezeworld.com/?p=84#comment-4614</guid>
		<description>Never mind I found it.

sorry =)</description>
		<content:encoded><![CDATA[<p>Never mind I found it.</p>
<p>sorry =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sidar</title>
		<link>http://cheezeworld.com/game-foundation-and-screens/comment-page-1/#comment-4612</link>
		<dc:creator>Sidar</dc:creator>
		<pubDate>Tue, 28 Jul 2009 19:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://cheezeworld.com/?p=84#comment-4612</guid>
		<description>Hi =)

Can you tell where the class StopWatch comes from?
Apparently i can&#039;t find it anywhere.

@Mark,
Download FlashDevelop its like Flex_Builder.
O and its free =).</description>
		<content:encoded><![CDATA[<p>Hi =)</p>
<p>Can you tell where the class StopWatch comes from?<br />
Apparently i can&#8217;t find it anywhere.</p>
<p>@Mark,<br />
Download FlashDevelop its like Flex_Builder.<br />
O and its free =).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colby Cheeze</title>
		<link>http://cheezeworld.com/game-foundation-and-screens/comment-page-1/#comment-4461</link>
		<dc:creator>Colby Cheeze</dc:creator>
		<pubDate>Wed, 22 Jul 2009 16:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://cheezeworld.com/?p=84#comment-4461</guid>
		<description>Thank you! I made the change in my code. Once I release my next article I&#039;ll update it for everyone.</description>
		<content:encoded><![CDATA[<p>Thank you! I made the change in my code. Once I release my next article I&#8217;ll update it for everyone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Montoya</title>
		<link>http://cheezeworld.com/game-foundation-and-screens/comment-page-1/#comment-4316</link>
		<dc:creator>Montoya</dc:creator>
		<pubDate>Fri, 17 Jul 2009 02:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://cheezeworld.com/?p=84#comment-4316</guid>
		<description>I changed the following on the Root class: 

&lt;pre&gt;&lt;code&gt;// these will get updated if a valid stage is passed 
public static var WIDTH:Number	=	550;
public static var HEIGHT:Number	=	400;&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code&gt;if( stage==null )
{
	Root.stage = this.stage;
} 
else 
{
	Root.stage = stage;	
	Root.WIDTH = stage.stageWidth; 
	Root.HEIGHT = stage.stageHeight; 
}&lt;/code&gt;&lt;/pre&gt;

These allow your screens to inherit a stage width &amp; height other than 550/400. There&#039;s still some other problems remaining... like I can&#039;t add event listeners on a screen, because they are not MovieClips :( But I think I can work around that by making a child of the screen that is a MovieClip.</description>
		<content:encoded><![CDATA[<p>I changed the following on the Root class: </p>
<pre><code>// these will get updated if a valid stage is passed
public static var WIDTH:Number	=	550;
public static var HEIGHT:Number	=	400;</code></pre>
<pre><code>if( stage==null )
{
	Root.stage = this.stage;
}
else
{
	Root.stage = stage;
	Root.WIDTH = stage.stageWidth;
	Root.HEIGHT = stage.stageHeight;
}</code></pre>
<p>These allow your screens to inherit a stage width &amp; height other than 550/400. There&#8217;s still some other problems remaining&#8230; like I can&#8217;t add event listeners on a screen, because they are not MovieClips <img src='http://cheezeworld.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  But I think I can work around that by making a child of the screen that is a MovieClip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Schmidt</title>
		<link>http://cheezeworld.com/game-foundation-and-screens/comment-page-1/#comment-778</link>
		<dc:creator>Mark Schmidt</dc:creator>
		<pubDate>Mon, 06 Apr 2009 18:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://cheezeworld.com/?p=84#comment-778</guid>
		<description>oops, this is the line I added, is missing from my previous post:

// added this line to get rid of error referencing Main:
var x:Main;</description>
		<content:encoded><![CDATA[<p>oops, this is the line I added, is missing from my previous post:</p>
<p>// added this line to get rid of error referencing Main:<br />
var x:Main;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Schmidt</title>
		<link>http://cheezeworld.com/game-foundation-and-screens/comment-page-1/#comment-669</link>
		<dc:creator>Mark Schmidt</dc:creator>
		<pubDate>Wed, 25 Mar 2009 02:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://cheezeworld.com/?p=84#comment-669</guid>
		<description>Got it to build and run in Flash CS4 by creating GameFoundation.fla that uses GameFoundation.as as it’s document class, and added the following line right after the stop statement in constructor function GameFoundation().</description>
		<content:encoded><![CDATA[<p>Got it to build and run in Flash CS4 by creating GameFoundation.fla that uses GameFoundation.as as it’s document class, and added the following line right after the stop statement in constructor function GameFoundation().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Schmidt</title>
		<link>http://cheezeworld.com/game-foundation-and-screens/comment-page-1/#comment-668</link>
		<dc:creator>Mark Schmidt</dc:creator>
		<pubDate>Tue, 24 Mar 2009 19:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://cheezeworld.com/?p=84#comment-668</guid>
		<description>I too do not have flexbuilder. I&#039;m using Flash CS4 and trying to set up a GameFoundation.fla that uses GameFoundation.as as it&#039;s document class. I get the following run time error:

ReferenceError: Error #1065: Variable Main is not defined.
	at global/flash.utils::getDefinitionByName()
	at GameFoundation/onRootLoaderComplete()

I&#039;m new to flash, not real familiar with the various publish and compile settings. Any help would be appreciated.

Thanks</description>
		<content:encoded><![CDATA[<p>I too do not have flexbuilder. I&#8217;m using Flash CS4 and trying to set up a GameFoundation.fla that uses GameFoundation.as as it&#8217;s document class. I get the following run time error:</p>
<p>ReferenceError: Error #1065: Variable Main is not defined.<br />
	at global/flash.utils::getDefinitionByName()<br />
	at GameFoundation/onRootLoaderComplete()</p>
<p>I&#8217;m new to flash, not real familiar with the various publish and compile settings. Any help would be appreciated.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://cheezeworld.com/game-foundation-and-screens/comment-page-1/#comment-657</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sun, 22 Mar 2009 07:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://cheezeworld.com/?p=84#comment-657</guid>
		<description>awesome... i can&#039;t describe it...</description>
		<content:encoded><![CDATA[<p>awesome&#8230; i can&#8217;t describe it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler Chesley</title>
		<link>http://cheezeworld.com/game-foundation-and-screens/comment-page-1/#comment-533</link>
		<dc:creator>Tyler Chesley</dc:creator>
		<pubDate>Wed, 25 Feb 2009 19:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://cheezeworld.com/?p=84#comment-533</guid>
		<description>Here&#039;s the link to the docs.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/uint.html</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the link to the docs.</p>
<p><a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/uint.html" rel="nofollow">http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/uint.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler Chesley</title>
		<link>http://cheezeworld.com/game-foundation-and-screens/comment-page-1/#comment-532</link>
		<dc:creator>Tyler Chesley</dc:creator>
		<pubDate>Wed, 25 Feb 2009 19:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://cheezeworld.com/?p=84#comment-532</guid>
		<description>Just for your information, there is a data type called uint in Actionscript 3 that only allows positive integers. So you could do this

        public static function set gameSpeed( value:uint ) : void
	{
		m_gameSpeed = value;
	}

	public static function get gameSpeed() : uint { return m_gameSpeed; }

and it would only allows values of 0 - n where n is any positive integer.</description>
		<content:encoded><![CDATA[<p>Just for your information, there is a data type called uint in Actionscript 3 that only allows positive integers. So you could do this</p>
<p>        public static function set gameSpeed( value:uint ) : void<br />
	{<br />
		m_gameSpeed = value;<br />
	}</p>
<p>	public static function get gameSpeed() : uint { return m_gameSpeed; }</p>
<p>and it would only allows values of 0 &#8211; n where n is any positive integer.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

