<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Why Doesn&#8217;t _root.gotoAndPlay() Work with Scenes?</title>
	<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Thu, 28 Aug 2008 15:31:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-115508</link>
		<pubDate>Fri, 28 Dec 2007 00:10:05 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-115508</guid>
					<description>Paul,

Glad to hear that!</description>
		<content:encoded><![CDATA[<p>Paul,</p>
<p>Glad to hear that!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Paul</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-115215</link>
		<pubDate>Wed, 26 Dec 2007 20:50:00 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-115215</guid>
					<description>Thanks for the discussion.  I was struggling to figure this out on my own.  Reading these comments saved me a lot of time and aggravation!</description>
		<content:encoded><![CDATA[<p>Thanks for the discussion.  I was struggling to figure this out on my own.  Reading these comments saved me a lot of time and aggravation!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Menzoic</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-53271</link>
		<pubDate>Mon, 11 Jun 2007 01:55:50 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-53271</guid>
					<description>unlike what magical unicorn said above, _root shouldn't be avoided, especially when your making a game where a global variabels such as those containing points need to be referenced.</description>
		<content:encoded><![CDATA[<p>unlike what magical unicorn said above, _root shouldn&#8217;t be avoided, especially when your making a game where a global variabels such as those containing points need to be referenced.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-45092</link>
		<pubDate>Mon, 14 May 2007 01:12:39 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-45092</guid>
					<description>Pablo, Chad ...

Glad to help!  :)</description>
		<content:encoded><![CDATA[<p>Pablo, Chad &#8230;</p>
<p>Glad to help!  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Chad B</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-43347</link>
		<pubDate>Mon, 07 May 2007 17:15:33 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-43347</guid>
					<description>Very Helpful, trying to pass a string variable from one keyframe to another so i could use it in gotoAndPlay() was driving me nuts.</description>
		<content:encoded><![CDATA[<p>Very Helpful, trying to pass a string variable from one keyframe to another so i could use it in gotoAndPlay() was driving me nuts.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Pablo</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-34309</link>
		<pubDate>Thu, 12 Apr 2007 16:41:29 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-34309</guid>
					<description>Thanx A lot man!! 
i was really needing this expl.!!! 
thanx Again!</description>
		<content:encoded><![CDATA[<p>Thanx A lot man!!<br />
i was really needing this expl.!!!<br />
thanx Again!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-10</link>
		<pubDate>Wed, 29 Mar 2006 02:55:34 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-10</guid>
					<description>Ahh, my bad.  You're right, I misunderstood ... when I read &quot;It’s better to forego scenes (like _root!),&quot; I took that to mean you were saying &lt;code&gt;_root&lt;/code&gt; was a Scene.</description>
		<content:encoded><![CDATA[<p>Ahh, my bad.  You&#8217;re right, I misunderstood &#8230; when I read &#8220;It’s better to forego scenes (like _root!),&#8221; I took that to mean you were saying <code>_root</code> was a Scene.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: magical unicorn</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-9</link>
		<pubDate>Wed, 29 Mar 2006 02:39:08 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-9</guid>
					<description>Very well aware of what both features are - I think you misunderstood my comment. I meant it's best to avoid both of those - like I say, both lead to bad practices or problems, and both are discouraged (officially, and general community/Flash best practice).  And actually, the fact that all scenes are compiled to a single timeline is what causes many of the problems for users (their code, etc) in the first place.  And when this occurs, it is very hard for them to figure out why - hence, avoiding scenes whenever possible.

There are many existing blog entries on avoiding _root, many of which are an interesting read, indeed.</description>
		<content:encoded><![CDATA[<p>Very well aware of what both features are - I think you misunderstood my comment. I meant it&#8217;s best to avoid both of those - like I say, both lead to bad practices or problems, and both are discouraged (officially, and general community/Flash best practice).  And actually, the fact that all scenes are compiled to a single timeline is what causes many of the problems for users (their code, etc) in the first place.  And when this occurs, it is very hard for them to figure out why - hence, avoiding scenes whenever possible.</p>
<p>There are many existing blog entries on avoiding _root, many of which are an interesting read, indeed.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-8</link>
		<pubDate>Tue, 28 Mar 2006 20:08:09 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-8</guid>
					<description>magical unicorn,

For sake of clarity, I'll mention that Scenes and _root aren't the same thing.

_root is a global property that refers &quot;to the root movie clip Timeline,&quot; what people often refer to as the main timeline, and if multiple levels are used (&lt;code&gt;_level1&lt;/code&gt;, &lt;code&gt;_level2&lt;/code&gt;, etc.), the &quot;root movie clip Timeline is on the level containing the currently executing script.  For example, if a script in level 1 evaluates _root, _level1 is returned&quot; (_root property entry, ActionScript 2.0 Language Reference).

Scenes, on the other hand, are not represented by objects in ActionScript at all (p. 713, Moock's &lt;em&gt;ActionScript for Flash MX:  The Definitive Guide, Second Edition&lt;/em&gt;).  When a SWF is compiled, Scenes collapse into a single timeline.  All ActionScript knows at that point are frames and frame labels.

That said, it's true that &lt;code&gt;_root&lt;/code&gt; usage is often discouraged.  In fact, the documentation makes mention of this under the &quot;Avoiding absolute targets (_root)&quot; topic of &quot;Learning ActionScript 2.0 in Flash.&quot;  Personally, I don't so much avoid &lt;code&gt;_root&lt;/code&gt; as make sure that &lt;em&gt;when&lt;/em&gt; I use it, I do so on purpose and know the reason(s) why.  Sounds like the makings of a blog entry.  Thanks for the input!</description>
		<content:encoded><![CDATA[<p>magical unicorn,</p>
<p>For sake of clarity, I&#8217;ll mention that Scenes and _root aren&#8217;t the same thing.</p>
<p>_root is a global property that refers &#8220;to the root movie clip Timeline,&#8221; what people often refer to as the main timeline, and if multiple levels are used (<code>_level1</code>, <code>_level2</code>, etc.), the &#8220;root movie clip Timeline is on the level containing the currently executing script.  For example, if a script in level 1 evaluates _root, _level1 is returned&#8221; (_root property entry, ActionScript 2.0 Language Reference).</p>
<p>Scenes, on the other hand, are not represented by objects in ActionScript at all (p. 713, Moock&#8217;s <em>ActionScript for Flash MX:  The Definitive Guide, Second Edition</em>).  When a SWF is compiled, Scenes collapse into a single timeline.  All ActionScript knows at that point are frames and frame labels.</p>
<p>That said, it&#8217;s true that <code>_root</code> usage is often discouraged.  In fact, the documentation makes mention of this under the &#8220;Avoiding absolute targets (_root)&#8221; topic of &#8220;Learning ActionScript 2.0 in Flash.&#8221;  Personally, I don&#8217;t so much avoid <code>_root</code> as make sure that <em>when</em> I use it, I do so on purpose and know the reason(s) why.  Sounds like the makings of a blog entry.  Thanks for the input!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: magical unicorn</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-7</link>
		<pubDate>Tue, 28 Mar 2006 19:40:23 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes#comment-7</guid>
					<description>It's better to forego scenes (like _root!) - there are very few cases where they are a good practice, often lead to bad practices or problems as described above, and they have been discouraged for several versions now. Let go of _root, and let go of scenes whenever possible (most of the time), and you'll be a happier in the long run who won't have to keep track of all the gotchas.</description>
		<content:encoded><![CDATA[<p>It&#8217;s better to forego scenes (like _root!) - there are very few cases where they are a good practice, often lead to bad practices or problems as described above, and they have been discouraged for several versions now. Let go of _root, and let go of scenes whenever possible (most of the time), and you&#8217;ll be a happier in the long run who won&#8217;t have to keep track of all the gotchas.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
