<?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 Random Scene ActionScript</title>
	<atom:link href="http://websitedesign.websitesinaflash.com/2008/03/flash-random-scene-actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://websitedesign.websitesinaflash.com/2008/03/flash-random-scene-actionscript/</link>
	<description>Website Design, PHP, CSS and Humor</description>
	<lastBuildDate>Mon, 06 Feb 2012 22:15:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Arthur</title>
		<link>http://websitedesign.websitesinaflash.com/2008/03/flash-random-scene-actionscript/comment-page-1/#comment-298</link>
		<dc:creator>Arthur</dc:creator>
		<pubDate>Tue, 11 Oct 2011 23:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://webmaster.websitesinaflash.com/?p=105#comment-298</guid>
		<description>TYVM!  Exactly what I was looking for (like OmegaTech said).
Needed that to randomly show images on my website banner (school project)

Thanks very much!</description>
		<content:encoded><![CDATA[<p>TYVM!  Exactly what I was looking for (like OmegaTech said).<br />
Needed that to randomly show images on my website banner (school project)</p>
<p>Thanks very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olzki</title>
		<link>http://websitedesign.websitesinaflash.com/2008/03/flash-random-scene-actionscript/comment-page-1/#comment-263</link>
		<dc:creator>Olzki</dc:creator>
		<pubDate>Tue, 21 Jun 2011 18:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://webmaster.websitesinaflash.com/?p=105#comment-263</guid>
		<description>Sure this could be use for what I&#039;m currently working on - starts with cow wandering around a field for ten seconds, and it should then randomly select one of 11 scenes, each one with a cow pat in a different bit of the field - once the cow pat scene had finished, it then goes back to the cow wandering the field - all working fine apart from the randomly selecting which cow pat scene it plays - I&#039;ve named all the frame1s for each scene with scene 1, scene 2 etc because a different tutorial told me too, but I still can&#039;t get it to work... here&#039;s the script that I&#039;ve currently got in the last frame of the cow wandering about the field scene...


set(scenes, [&quot;scene 2&quot;, &quot;scene 3&quot;, &quot;scene 4&quot;, &quot;scene 5&quot;, &quot;scene 6&quot;, &quot;scene 7&quot;, &quot;scene 8&quot;, &quot;scene 9&quot;, &quot;scene 10&quot;, &quot;scene 11&quot;, &quot;scene 12&quot;]);
gotoAndPlay(scenes[random(12)]);

(on the first frame of the cow wandering about the field scene is the random movement script that makes the wander randomly)

the whole project is for a school fete, where my form want to run a poo-lette stall - people &quot;bet&quot; on which bit of the field the cow will poo in first - figured we can&#039;t get a real cow into school so this will have to do - anyone who can help I&#039;d be very grateful.</description>
		<content:encoded><![CDATA[<p>Sure this could be use for what I&#8217;m currently working on &#8211; starts with cow wandering around a field for ten seconds, and it should then randomly select one of 11 scenes, each one with a cow pat in a different bit of the field &#8211; once the cow pat scene had finished, it then goes back to the cow wandering the field &#8211; all working fine apart from the randomly selecting which cow pat scene it plays &#8211; I&#8217;ve named all the frame1s for each scene with scene 1, scene 2 etc because a different tutorial told me too, but I still can&#8217;t get it to work&#8230; here&#8217;s the script that I&#8217;ve currently got in the last frame of the cow wandering about the field scene&#8230;</p>
<p>set(scenes, ["scene 2", "scene 3", "scene 4", "scene 5", "scene 6", "scene 7", "scene 8", "scene 9", "scene 10", "scene 11", "scene 12"]);<br />
gotoAndPlay(scenes[random(12)]);</p>
<p>(on the first frame of the cow wandering about the field scene is the random movement script that makes the wander randomly)</p>
<p>the whole project is for a school fete, where my form want to run a poo-lette stall &#8211; people &#8220;bet&#8221; on which bit of the field the cow will poo in first &#8211; figured we can&#8217;t get a real cow into school so this will have to do &#8211; anyone who can help I&#8217;d be very grateful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OmegaTech</title>
		<link>http://websitedesign.websitesinaflash.com/2008/03/flash-random-scene-actionscript/comment-page-1/#comment-208</link>
		<dc:creator>OmegaTech</dc:creator>
		<pubDate>Sun, 08 Aug 2010 11:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://webmaster.websitesinaflash.com/?p=105#comment-208</guid>
		<description>Niiiiiiice!  Exactly what I was looking for. Using with GotoAndStop to randomly display different call-to-action hero images on a home page.  THX :-)</description>
		<content:encoded><![CDATA[<p>Niiiiiiice!  Exactly what I was looking for. Using with GotoAndStop to randomly display different call-to-action hero images on a home page.  THX <img src='http://websitedesign.websitesinaflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashton.Sanders</title>
		<link>http://websitedesign.websitesinaflash.com/2008/03/flash-random-scene-actionscript/comment-page-1/#comment-68</link>
		<dc:creator>Ashton.Sanders</dc:creator>
		<pubDate>Mon, 06 Apr 2009 16:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://webmaster.websitesinaflash.com/?p=105#comment-68</guid>
		<description>Hi Jeff,

Thanks for the question. Yes, to make the scenes not repeat, do not put the current scene in the randomizing code. 

For example, for the first scene, don&#039;t have &quot;GotoAndPlay(&quot;scenename&quot;, 1);&quot; You&#039;ll have to change the code to be for two scenes since you are removing one of them. That way, there is no chance to play the scene you are already in.

I hope that helps,
Ashton Sanders</description>
		<content:encoded><![CDATA[<p>Hi Jeff,</p>
<p>Thanks for the question. Yes, to make the scenes not repeat, do not put the current scene in the randomizing code. </p>
<p>For example, for the first scene, don&#8217;t have &#8220;GotoAndPlay(&#8220;scenename&#8221;, 1);&#8221; You&#8217;ll have to change the code to be for two scenes since you are removing one of them. That way, there is no chance to play the scene you are already in.</p>
<p>I hope that helps,<br />
Ashton Sanders</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://websitedesign.websitesinaflash.com/2008/03/flash-random-scene-actionscript/comment-page-1/#comment-67</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 06 Apr 2009 15:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://webmaster.websitesinaflash.com/?p=105#comment-67</guid>
		<description>Hi Ashton,

I added the code to the end of each scene (3 scenes total) where I previously had code to go to the next scene.  But this seems to repeat quite frequently.  Do you know a way to prevent repeating schne?</description>
		<content:encoded><![CDATA[<p>Hi Ashton,</p>
<p>I added the code to the end of each scene (3 scenes total) where I previously had code to go to the next scene.  But this seems to repeat quite frequently.  Do you know a way to prevent repeating schne?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashton Sanders</title>
		<link>http://websitedesign.websitesinaflash.com/2008/03/flash-random-scene-actionscript/comment-page-1/#comment-24</link>
		<dc:creator>Ashton Sanders</dc:creator>
		<pubDate>Fri, 14 Mar 2008 20:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://webmaster.websitesinaflash.com/?p=105#comment-24</guid>
		<description>Hi,&lt;br/&gt;&lt;br/&gt;Yes. Make the first scene a blank screen, and put this code in one of the frames.&lt;br/&gt;&lt;br/&gt;Then have the end of each of your scenes redirect back to the beginning of the first scene.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Yes. Make the first scene a blank screen, and put this code in one of the frames.</p>
<p>Then have the end of each of your scenes redirect back to the beginning of the first scene.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dizitalART</title>
		<link>http://websitedesign.websitesinaflash.com/2008/03/flash-random-scene-actionscript/comment-page-1/#comment-23</link>
		<dc:creator>dizitalART</dc:creator>
		<pubDate>Thu, 13 Mar 2008 23:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://webmaster.websitesinaflash.com/?p=105#comment-23</guid>
		<description>hi ashton, looks good i was looking some like this. where do we put this script? in the first scene?</description>
		<content:encoded><![CDATA[<p>hi ashton, looks good i was looking some like this. where do we put this script? in the first scene?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

