<?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: Flash Hyperspace Star Field Tutorial</title>
	<atom:link href="http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/</link>
	<description>Web developing in the middle of the night.</description>
	<lastBuildDate>Sat, 17 Dec 2011 15:01:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<item>
		<title>By: Dominique</title>
		<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/comment-page-1/#comment-2993</link>
		<dc:creator>Dominique</dc:creator>
		<pubDate>Sat, 25 Jun 2011 13:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/#comment-2993</guid>
		<description>Hi, I hope someone is still on looking on this page.
Anyway I am making a flash game and it features a similiar kind of starfield generator that is being made in a container and then loaded onto the stage. However the problem is that whenever your are game over or go to any other frame for that matter. The star field is still there and isnt removed from the stage even though the next frame doesnt have that code. So why is it still there and moving? Ive tried to fix it, but I cant seem to find an answer on that problem. Also when I press my restart button after game over you go back to the stage but then the old starfield that was there is sitting still in the background and a new starfield is then moving. 

The starfield is made in such a matter that it moves when the player moves it&#039;s ship. 

I hope anyone kinda understands my problem and could help me with it. 
btw this is really a good tutorial for a star field.</description>
		<content:encoded><![CDATA[<p>Hi, I hope someone is still on looking on this page.<br />
Anyway I am making a flash game and it features a similiar kind of starfield generator that is being made in a container and then loaded onto the stage. However the problem is that whenever your are game over or go to any other frame for that matter. The star field is still there and isnt removed from the stage even though the next frame doesnt have that code. So why is it still there and moving? Ive tried to fix it, but I cant seem to find an answer on that problem. Also when I press my restart button after game over you go back to the stage but then the old starfield that was there is sitting still in the background and a new starfield is then moving. </p>
<p>The starfield is made in such a matter that it moves when the player moves it&#8217;s ship. </p>
<p>I hope anyone kinda understands my problem and could help me with it.<br />
btw this is really a good tutorial for a star field.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tilqo</title>
		<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/comment-page-1/#comment-2992</link>
		<dc:creator>Tilqo</dc:creator>
		<pubDate>Thu, 16 Jun 2011 05:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/#comment-2992</guid>
		<description>Hey!

I&#039;ve come across your tutorial and i must say it&#039;s great! Everything works beautifully. But i went a step further. I wanted to ad two more shapes to the warp motion. Let&#039;s say a triangle and a square. I tried that with a multiple AS files (with changed names for MovieClips) and i tried to triple the code in one AS (each code for each MovieClip). Every code had a line for it&#039;s own universe MovieClip. Nothing worked. Infect, the original star field doesn&#039;t work then ether. :\

I&#039;m not a code master. I do animation, but in this situation animating star field by hand would be a pain in the... So i used my &quot;logic&quot; at this and i guess i made a mistake somewhere.
Do you have any idea how could i approach this problem?

Thank you for your time.
Tilen (Slovenia)</description>
		<content:encoded><![CDATA[<p>Hey!</p>
<p>I&#8217;ve come across your tutorial and i must say it&#8217;s great! Everything works beautifully. But i went a step further. I wanted to ad two more shapes to the warp motion. Let&#8217;s say a triangle and a square. I tried that with a multiple AS files (with changed names for MovieClips) and i tried to triple the code in one AS (each code for each MovieClip). Every code had a line for it&#8217;s own universe MovieClip. Nothing worked. Infect, the original star field doesn&#8217;t work then ether. :\</p>
<p>I&#8217;m not a code master. I do animation, but in this situation animating star field by hand would be a pain in the&#8230; So i used my &#8220;logic&#8221; at this and i guess i made a mistake somewhere.<br />
Do you have any idea how could i approach this problem?</p>
<p>Thank you for your time.<br />
Tilen (Slovenia)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul David Fisher</title>
		<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/comment-page-1/#comment-2969</link>
		<dc:creator>Paul David Fisher</dc:creator>
		<pubDate>Tue, 03 Aug 2010 13:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/#comment-2969</guid>
		<description>Thank you so much for the starfield tutorial (I mean thanks for providing the code).
Just added a couple things and voila!:http://wildfire.gigya.com/facebook/preview.aspx?fb_sig_api_key=f7667e9ebccf2157d6f15f991a5e3ce9&amp;wid=383174191&amp;p=bHQ9MTI4MDc1NjMzNzQwMyZwdD%2AxMjgwNzU2MzQwNzk5JnA9Njk2MDUxJmQ9Jm49ZmFjZWJvb2smZz%2AyJm89NWJjYjlkZmZlYjQ1NDU5MmExM2IwOTgyMWM5MTA1ZWImb2Y9MA%3D%3D&amp;s=1</description>
		<content:encoded><![CDATA[<p>Thank you so much for the starfield tutorial (I mean thanks for providing the code).<br />
Just added a couple things and voila!:http://wildfire.gigya.com/facebook/preview.aspx?fb_sig_api_key=f7667e9ebccf2157d6f15f991a5e3ce9&amp;wid=383174191&amp;p=bHQ9MTI4MDc1NjMzNzQwMyZwdD%2AxMjgwNzU2MzQwNzk5JnA9Njk2MDUxJmQ9Jm49ZmFjZWJvb2smZz%2AyJm89NWJjYjlkZmZlYjQ1NDU5MmExM2IwOTgyMWM5MTA1ZWImb2Y9MA%3D%3D&amp;s=1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://orangesplotch.com/blog/wp-content/plugins/rpx/images/openid.png'/> mattc</title>
		<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/comment-page-1/#comment-2967</link>
		<dc:creator><img src='http://orangesplotch.com/blog/wp-content/plugins/rpx/images/openid.png'/> mattc</dc:creator>
		<pubDate>Mon, 21 Jun 2010 14:48:46 +0000</pubDate>
		<guid isPermaLink="false">http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/#comment-2967</guid>
		<description>At the top of the &lt;code&gt;AddStar&lt;/code&gt; function you&#039;ll see this line:
&lt;pre&gt;	var curStar:MovieClip = universe_mc.attachMovie(&quot;star&quot;, &quot;star_&quot;+i, i);&lt;/pre&gt;

This is where it attaches a new star to the universe_mc MovieClip and is the reason that this only works if the clip is named universe_mc.

I&#039;m guessing that the stars are being generated about 200 px off to the right of the stage because your universe_mc is not located at the extreme left edge of the screen, but instead starts about 200 px over to the right. If you move it to the left edge of the stage it should work.

As for doing two starfields simultaneously, that&#039;s a little trickier. I&#039;ll send you an email so we can go over it offline.</description>
		<content:encoded><![CDATA[<p>At the top of the <code>AddStar</code> function you&#8217;ll see this line:</p>
<pre>	var curStar:MovieClip = universe_mc.attachMovie("star", "star_"+i, i);</pre>
<p>This is where it attaches a new star to the universe_mc MovieClip and is the reason that this only works if the clip is named universe_mc.</p>
<p>I&#8217;m guessing that the stars are being generated about 200 px off to the right of the stage because your universe_mc is not located at the extreme left edge of the screen, but instead starts about 200 px over to the right. If you move it to the left edge of the stage it should work.</p>
<p>As for doing two starfields simultaneously, that&#8217;s a little trickier. I&#8217;ll send you an email so we can go over it offline.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: van</title>
		<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/comment-page-1/#comment-2966</link>
		<dc:creator>van</dc:creator>
		<pubDate>Sat, 19 Jun 2010 20:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/#comment-2966</guid>
		<description>mattc, thanks a million for this. I searched far and wide and this is the only starfield tut out there that both works and makes sense.

I had the same problem as leah and CyrilB. It seems that if you create a MC it doesn&#039;t work at all unless you name the instance &#039;universe_mc&#039; as well. This produces stars, but they&#039;re generated about 200 pixels off to the right of the stage, so most of them never make it to the stage and live their short lives without ever being seen. Only the lucky few make it a few pixels onto the stage before petering out.

I&#039;ve looked at the code and traced some things but can&#039;t figure this out. I&#039;d really like to run two starfields simultaneously so....any ideas?

Thanks,
Van</description>
		<content:encoded><![CDATA[<p>mattc, thanks a million for this. I searched far and wide and this is the only starfield tut out there that both works and makes sense.</p>
<p>I had the same problem as leah and CyrilB. It seems that if you create a MC it doesn&#8217;t work at all unless you name the instance &#8216;universe_mc&#8217; as well. This produces stars, but they&#8217;re generated about 200 pixels off to the right of the stage, so most of them never make it to the stage and live their short lives without ever being seen. Only the lucky few make it a few pixels onto the stage before petering out.</p>
<p>I&#8217;ve looked at the code and traced some things but can&#8217;t figure this out. I&#8217;d really like to run two starfields simultaneously so&#8230;.any ideas?</p>
<p>Thanks,<br />
Van</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Jobs</title>
		<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/comment-page-1/#comment-2953</link>
		<dc:creator>Steve Jobs</dc:creator>
		<pubDate>Thu, 18 Feb 2010 02:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/#comment-2953</guid>
		<description>&quot;Space the final frontier...&quot;</description>
		<content:encoded><![CDATA[<p>&#8220;Space the final frontier&#8230;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://orangesplotch.com/blog/wp-content/plugins/rpx/images/openid.png'/> mattc</title>
		<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/comment-page-1/#comment-2903</link>
		<dc:creator><img src='http://orangesplotch.com/blog/wp-content/plugins/rpx/images/openid.png'/> mattc</dc:creator>
		<pubDate>Tue, 25 Aug 2009 13:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/#comment-2903</guid>
		<description>It sounds like the code isn&#039;t finding the universe_mc MovieClip. Try adding a trace statement to your code to make sure the universe_mc is a valid object. Something like
&lt;code&gt;trace(&#039;universe_mc = &#039; + universe_mc);&lt;/code&gt;

My guess is that it will show up as &lt;code&gt;null&lt;/code&gt;. Go ahead and &lt;a href=&quot;/contact/&quot; rel=&quot;nofollow&quot;&gt;contact me offline&lt;/a&gt; and I&#039;ll see if I can help you get it working.</description>
		<content:encoded><![CDATA[<p>It sounds like the code isn&#8217;t finding the universe_mc MovieClip. Try adding a trace statement to your code to make sure the universe_mc is a valid object. Something like<br />
<code>trace('universe_mc = ' + universe_mc);</code></p>
<p>My guess is that it will show up as <code>null</code>. Go ahead and <a href="/contact/" rel="nofollow">contact me offline</a> and I&#8217;ll see if I can help you get it working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CyrilB</title>
		<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/comment-page-1/#comment-2902</link>
		<dc:creator>CyrilB</dc:creator>
		<pubDate>Tue, 25 Aug 2009 06:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/#comment-2902</guid>
		<description>Hello.
First, excuse me for my english.
I&#039;ve the same problem than Leah but, even following your tips, i can&#039;t make it work.
I&#039;ve created a layer in wich i&#039;ve inserted a movieclip named universe_mc ; i&#039;ve tested it inserting an action in the movieclip (with #include &quot;StarField.as&quot; or the complete script (excepting the line this.createEmptyMovieClip(&quot;universe_mc&quot;, 10);).
In this state, no stars appears.
Could you help me ?
Thanks</description>
		<content:encoded><![CDATA[<p>Hello.<br />
First, excuse me for my english.<br />
I&#8217;ve the same problem than Leah but, even following your tips, i can&#8217;t make it work.<br />
I&#8217;ve created a layer in wich i&#8217;ve inserted a movieclip named universe_mc ; i&#8217;ve tested it inserting an action in the movieclip (with #include &#8220;StarField.as&#8221; or the complete script (excepting the line this.createEmptyMovieClip(&#8220;universe_mc&#8221;, 10);).<br />
In this state, no stars appears.<br />
Could you help me ?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leah</title>
		<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/comment-page-1/#comment-2850</link>
		<dc:creator>Leah</dc:creator>
		<pubDate>Thu, 23 Apr 2009 18:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/#comment-2850</guid>
		<description>Thanks for ur help :)</description>
		<content:encoded><![CDATA[<p>Thanks for ur help <img src='http://orangesplotch.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://orangesplotch.com/blog/wp-content/plugins/rpx/images/openid.png'/> mattc</title>
		<link>http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/comment-page-1/#comment-2849</link>
		<dc:creator><img src='http://orangesplotch.com/blog/wp-content/plugins/rpx/images/openid.png'/> mattc</dc:creator>
		<pubDate>Wed, 22 Apr 2009 21:06:57 +0000</pubDate>
		<guid isPermaLink="false">http://orangesplotch.com/blog/flash-hyperspace-star-field-tutorial/#comment-2849</guid>
		<description>The reason the stars are showing up on top of everything is because we are creating the &lt;code&gt;universe_mc&lt;/code&gt; dynamically and adding it to the stage. To keep the stars isolated to a specific layer, you&#039;ll need to place a MovieClip in that layer and name it &lt;code&gt;universe_mc&lt;/code&gt; and remove the following lines of the code:
&lt;pre&gt;// create a container for all of our new stars
this.createEmptyMovieClip(&quot;universe_mc&quot;, 10);&lt;/pre&gt;

Any layers above the layer you have the universe_mc on will show up over the stars. You can use this method to mask the star layer as well.

If you are still having problems, feel free to &lt;a href=&quot;/contact/&quot; rel=&quot;nofollow&quot;&gt;contact me offline&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>The reason the stars are showing up on top of everything is because we are creating the <code>universe_mc</code> dynamically and adding it to the stage. To keep the stars isolated to a specific layer, you&#8217;ll need to place a MovieClip in that layer and name it <code>universe_mc</code> and remove the following lines of the code:</p>
<pre>// create a container for all of our new stars
this.createEmptyMovieClip("universe_mc", 10);</pre>
<p>Any layers above the layer you have the universe_mc on will show up over the stars. You can use this method to mask the star layer as well.</p>
<p>If you are still having problems, feel free to <a href="/contact/" rel="nofollow">contact me offline</a>.</p>
]]></content:encoded>
	</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! -->
