<?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: Lifting the Veil:&#160; Debugging</title>
	<link>http://www.quip.net/blog/2006/flash/actionscript-20/lifting-the-veil-debugging</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Wed, 19 Nov 2008 04:20:28 +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/lifting-the-veil-debugging#comment-120706</link>
		<pubDate>Tue, 15 Jan 2008 01:13:04 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/lifting-the-veil-debugging#comment-120706</guid>
					<description>pal,

Just so you know, the article linked from this page deals with ActionScript 2.0, which is significantly different from ActionScript 3.0.  (I'm glad you read the article &amp;#8212; assuming you did! &amp;#8212; and hope it was useful to you, but just note that it may only be useful in AS2 projects.)

The &quot;Duplicate function definition&quot; error sounds to me like you're declaring the same function, &lt;code&gt;Scene1()&lt;/code&gt;, in more than one location.  This is no longer allowed in AS3 (neither is declaring the same variable more than once in the same scope), so try using a different function name each time.

Your &lt;code&gt;on(release)&lt;/code&gt; code isn't allowed in ActionScript 3.0 at all &amp;#8212; &lt;code&gt;on()&lt;/code&gt; and &lt;code&gt;onClipEvent()&lt;/code&gt; aren't supported in the new language &amp;#8212; so you'll have to place your code in keyframes only, rather than attached to objects.</description>
		<content:encoded><![CDATA[<p>pal,</p>
<p>Just so you know, the article linked from this page deals with ActionScript 2.0, which is significantly different from ActionScript 3.0.  (I&#8217;m glad you read the article &mdash; assuming you did! &mdash; and hope it was useful to you, but just note that it may only be useful in AS2 projects.)</p>
<p>The &#8220;Duplicate function definition&#8221; error sounds to me like you&#8217;re declaring the same function, <code>Scene1()</code>, in more than one location.  This is no longer allowed in AS3 (neither is declaring the same variable more than once in the same scope), so try using a different function name each time.</p>
<p>Your <code>on(release)</code> code isn&#8217;t allowed in ActionScript 3.0 at all &mdash; <code>on()</code> and <code>onClipEvent()</code> aren&#8217;t supported in the new language &mdash; so you&#8217;ll have to place your code in keyframes only, rather than attached to objects.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: pal</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/lifting-the-veil-debugging#comment-119308</link>
		<pubDate>Thu, 10 Jan 2008 14:59:51 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/lifting-the-veil-debugging#comment-119308</guid>
					<description>Hi,

I am new to Flash. I am working on my school project.  
I am using Flash 9 action script 3.
I have 3 scenes: 1st scene is Home. Other 2 has Home button. Home button works fine for Scene 2 but not for Scene3.
Scene 2 has this code for home button:
home1_btn.addEventListener(MouseEvent.CLICK, Scene1);

function Scene1(event:MouseEvent):void {
										 gotoAndPlay(1,&quot;Scene1&quot;);
}

If I copy or write it manually this code for Scene 3 home button it gives me compiler error:Duplicate function definition

If I write new code for Scene3 button as:
on(release){
gotoAndPlay(&quot;Scene1&quot;,1)
}

It says an Error:extra characters at the end
 

Any help would be appreciated.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am new to Flash. I am working on my school project.<br />
I am using Flash 9 action script 3.<br />
I have 3 scenes: 1st scene is Home. Other 2 has Home button. Home button works fine for Scene 2 but not for Scene3.<br />
Scene 2 has this code for home button:<br />
home1_btn.addEventListener(MouseEvent.CLICK, Scene1);</p>
<p>function Scene1(event:MouseEvent):void {<br />
										 gotoAndPlay(1,&#8221;Scene1&#8243;);<br />
}</p>
<p>If I copy or write it manually this code for Scene 3 home button it gives me compiler error:Duplicate function definition</p>
<p>If I write new code for Scene3 button as:<br />
on(release){<br />
gotoAndPlay(&#8221;Scene1&#8243;,1)<br />
}</p>
<p>It says an Error:extra characters at the end</p>
<p>Any help would be appreciated.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
