<?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: Making Buttons Work in Flash CS3 (A Reply)</title>
	<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Wed, 19 Nov 2008 03:43:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-247011</link>
		<pubDate>Tue, 12 Aug 2008 03:00:38 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-247011</guid>
					<description>Ryan,

It sounds like you're referencing an object incorrectly, and it's probably due to your use of &lt;code&gt;this&lt;/code&gt; in your ActionScript.  From the point of view of your function there, &lt;code&gt;this&lt;/code&gt; refers to the timeline in which this code appears &amp;#8212; namely, the timeline of your nested &quot;menu&quot; movie clip.

The timeline of the &quot;menu&quot; clip doesn't contain &quot;sections,&quot; so you'll need to refer to the parent timeline of &quot;menu,&quot; which &lt;em&gt;does&lt;/em&gt; contain the &quot;sections&quot; clip.

Try this:

&lt;pre&gt;&lt;code&gt;button1.addEventListener(
  MouseEvent.MOUSE_UP,
  function(evt:MouseEvent):void {
    MovieClip(this.parent).sections.gotoAndStop(&amp;#34;spaCap&amp;#34;);
  }
);&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ryan,</p>
<p>It sounds like you&#8217;re referencing an object incorrectly, and it&#8217;s probably due to your use of <code>this</code> in your ActionScript.  From the point of view of your function there, <code>this</code> refers to the timeline in which this code appears &mdash; namely, the timeline of your nested &#8220;menu&#8221; movie clip.</p>
<p>The timeline of the &#8220;menu&#8221; clip doesn&#8217;t contain &#8220;sections,&#8221; so you&#8217;ll need to refer to the parent timeline of &#8220;menu,&#8221; which <em>does</em> contain the &#8220;sections&#8221; clip.</p>
<p>Try this:</p>
<pre><code>button1.addEventListener(
  MouseEvent.MOUSE_UP,
  function(evt:MouseEvent):void {
    MovieClip(this.parent).sections.gotoAndStop(&quot;spaCap&quot;);
  }
);</code></pre>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ryan</title>
		<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-240950</link>
		<pubDate>Tue, 05 Aug 2008 20:02:10 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-240950</guid>
					<description>Hey,

I have a nested movie clip called &quot;menu&quot;. In that mc I have another called &quot;button1&quot; that is only on frame 10. On frame 10 of the &quot;menu&quot; is a script:

button1.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
this.sections.gotoAndStop(&quot;spaCap&quot;);
}
);

Now I would like this script to go to a frame labeled &quot;spaCap&quot; of a movie clip called &quot;sections&quot; which is actually on the same level as &quot;menu&quot;.

This script runs and i get the error:

TypeError: Error #1010: A term is undefined and has no properties.
at MethodInfo-26()

I think it has something to do with the script being on frame 10, but I put it on frame 1 and it did the same thing. What should I do?</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I have a nested movie clip called &#8220;menu&#8221;. In that mc I have another called &#8220;button1&#8243; that is only on frame 10. On frame 10 of the &#8220;menu&#8221; is a script:</p>
<p>button1.addEventListener(<br />
MouseEvent.MOUSE_UP,<br />
function(evt:MouseEvent):void {<br />
this.sections.gotoAndStop(&#8221;spaCap&#8221;);<br />
}<br />
);</p>
<p>Now I would like this script to go to a frame labeled &#8220;spaCap&#8221; of a movie clip called &#8220;sections&#8221; which is actually on the same level as &#8220;menu&#8221;.</p>
<p>This script runs and i get the error:</p>
<p>TypeError: Error #1010: A term is undefined and has no properties.<br />
at MethodInfo-26()</p>
<p>I think it has something to do with the script being on frame 10, but I put it on frame 1 and it did the same thing. What should I do?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-233531</link>
		<pubDate>Tue, 29 Jul 2008 16:56:15 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-233531</guid>
					<description>David,

Thanks for the purchase!  Your question &lt;em&gt;is&lt;/em&gt; answered in the book, but it most certainly isn't staring you (or anybody) in the face.  In fact, we've had a number of readers ask where the files are &amp;#8212; both privately and through Amazon comments &amp;#8212; so we're breaking from the publisher's norm for the second edition by making it a note at the beginning of every chapter.

Meanwhile, in the case of the book you have in your hands, you can flip to the inside of the very first printed page (with the copyright info) and you'll see where to go ... but it's quite the hidden URL!  ;)

Here's what you want:

&lt;a href=&quot;http://www.friendsofed.com/download.html?isbn=159059861X&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.friendsofED.com/download.html?isbn=159059861X&lt;/a&gt;

or

&lt;a href=&quot;http://www.FoundationFlashCS3.com/sample-files.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.FoundationFlashCS3.com/sample-files.html&lt;/a&gt;

Thanks again for picking up a copy!  :)</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>Thanks for the purchase!  Your question <em>is</em> answered in the book, but it most certainly isn&#8217;t staring you (or anybody) in the face.  In fact, we&#8217;ve had a number of readers ask where the files are &mdash; both privately and through Amazon comments &mdash; so we&#8217;re breaking from the publisher&#8217;s norm for the second edition by making it a note at the beginning of every chapter.</p>
<p>Meanwhile, in the case of the book you have in your hands, you can flip to the inside of the very first printed page (with the copyright info) and you&#8217;ll see where to go &#8230; but it&#8217;s quite the hidden URL!  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Here&#8217;s what you want:</p>
<p><a href="http://www.friendsofed.com/download.html?isbn=159059861X" target="_blank" rel="nofollow">www.friendsofED.com/download.html?isbn=159059861X</a></p>
<p>or</p>
<p><a href="http://www.FoundationFlashCS3.com/sample-files.html" target="_blank" rel="nofollow">www.FoundationFlashCS3.com/sample-files.html</a></p>
<p>Thanks again for picking up a copy!  <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: David Pounds</title>
		<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-233520</link>
		<pubDate>Tue, 29 Jul 2008 16:45:53 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-233520</guid>
					<description>I bought your Foundation Flash book and it has been quite helpful. I am sure it is staring me in the face and I am missing it, but your book did not come with a CD and I don't see a website download reference for the files you mention. Where should I be getting those files?</description>
		<content:encoded><![CDATA[<p>I bought your Foundation Flash book and it has been quite helpful. I am sure it is staring me in the face and I am missing it, but your book did not come with a CD and I don&#8217;t see a website download reference for the files you mention. Where should I be getting those files?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-229209</link>
		<pubDate>Fri, 25 Jul 2008 19:36:53 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-229209</guid>
					<description>David,

Sure thing!  :)  Glad to help.  &lt;em&gt;&lt;a href=&quot;http://www.amazon.com/gp/product/159059861X?ie=UTF8&amp;tag=davistilsblog-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=159059861X&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Foundation Flash CS3 for Designers&lt;/a&gt;&lt;/em&gt; assumes you have no experience with programming.  The reviews on Amazon are mostly (as in, 99%) positive, and one or two folks have suggested that the ActionScript Basics chapter is worth the price of the book.

I happen to be self-taught, and over the years, I think that's had a positive effect on my writing style in terms of ActionScript tutorials.</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>Sure thing!  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Glad to help.  <em><a href="http://www.amazon.com/gp/product/159059861X?ie=UTF8&#038;tag=davistilsblog-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=159059861X" target="_blank" rel="nofollow">Foundation Flash CS3 for Designers</a></em> assumes you have no experience with programming.  The reviews on Amazon are mostly (as in, 99%) positive, and one or two folks have suggested that the ActionScript Basics chapter is worth the price of the book.</p>
<p>I happen to be self-taught, and over the years, I think that&#8217;s had a positive effect on my writing style in terms of ActionScript tutorials.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Pounds</title>
		<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-229199</link>
		<pubDate>Fri, 25 Jul 2008 19:29:02 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-229199</guid>
					<description>That worked David, thanks so much! 

I am a graphic design professor and I am having to teach Flash this coming semester, with my last experience with the program being Flash 4. I was always able to get around in Macromedia Director's Lingo, but ActionScript baffles me. How basic does your book start out? So many of the self help books assume some basic knowledge, and I don't have the basic knowledge, or the aptitude, for that matter.</description>
		<content:encoded><![CDATA[<p>That worked David, thanks so much! </p>
<p>I am a graphic design professor and I am having to teach Flash this coming semester, with my last experience with the program being Flash 4. I was always able to get around in Macromedia Director&#8217;s Lingo, but ActionScript baffles me. How basic does your book start out? So many of the self help books assume some basic knowledge, and I don&#8217;t have the basic knowledge, or the aptitude, for that matter.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-228098</link>
		<pubDate>Fri, 25 Jul 2008 00:28:50 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-228098</guid>
					<description>David,

If you check out my reply to wes, you'll find what you're after.  To go to a specific frame number or label, you need to invoke the &lt;code&gt;MovieClip.gotoAndPlay()&lt;/code&gt; (or &lt;code&gt;MovieClip.gotoAndStop()&lt;/code&gt;) method on a movie clip instance.  If you have the movie clip's instance name handy, you would specify that instance name, followed by a dot, then the method:

&lt;code&gt;someClip.gotoAndPlay(15)&lt;/code&gt;

Or you can leave off the movie clip reference and the method will apply to the timeline in which the frame script appears, such as the main timeline:

&lt;code&gt;gotoAndPlay(&amp;#34;someFrameLabel&amp;#34;)&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>If you check out my reply to wes, you&#8217;ll find what you&#8217;re after.  To go to a specific frame number or label, you need to invoke the <code>MovieClip.gotoAndPlay()</code> (or <code>MovieClip.gotoAndStop()</code>) method on a movie clip instance.  If you have the movie clip&#8217;s instance name handy, you would specify that instance name, followed by a dot, then the method:</p>
<p><code>someClip.gotoAndPlay(15)</code></p>
<p>Or you can leave off the movie clip reference and the method will apply to the timeline in which the frame script appears, such as the main timeline:</p>
<p><code>gotoAndPlay(&quot;someFrameLabel&quot;)</code>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Pounds</title>
		<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-228065</link>
		<pubDate>Fri, 25 Jul 2008 00:05:04 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-228065</guid>
					<description>I have been looking and looking, but I cannot find the method to go to a specific frame number, or frame name. Any suggestions?

Thanks!</description>
		<content:encoded><![CDATA[<p>I have been looking and looking, but I cannot find the method to go to a specific frame number, or frame name. Any suggestions?</p>
<p>Thanks!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-179163</link>
		<pubDate>Thu, 08 May 2008 04:18:27 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-179163</guid>
					<description>neille,

I believe the open-in-tabs issue, as opposed to open-in-a-window, is a user configurable browser setting.</description>
		<content:encoded><![CDATA[<p>neille,</p>
<p>I believe the open-in-tabs issue, as opposed to open-in-a-window, is a user configurable browser setting.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: neille</title>
		<link>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-162771</link>
		<pubDate>Mon, 14 Apr 2008 17:18:02 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/making-buttons-work-in-flash-cs3-reply#comment-162771</guid>
					<description>Actually the swf is embedded into an html file and is live now www.neille.com, and the two links are opening in new tabs, oddly ...</description>
		<content:encoded><![CDATA[<p>Actually the swf is embedded into an html file and is live now <a href='http://www.neille.com' rel='nofollow'>www.neille.com</a>, and the two links are opening in new tabs, oddly &#8230;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
