<?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: ActionScript 3.0 : Buttons and Drag &amp; Drop</title>
	<atom:link href="http://www.isgoodstuff.com/2008/06/10/actionscript-30-buttons-and-drag-drop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.isgoodstuff.com/2008/06/10/actionscript-30-buttons-and-drag-drop/</link>
	<description>For all the good things!</description>
	<lastBuildDate>Fri, 26 Feb 2010 11:24:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Uday</title>
		<link>http://www.isgoodstuff.com/2008/06/10/actionscript-30-buttons-and-drag-drop/comment-page-1/#comment-147</link>
		<dc:creator>Uday</dc:creator>
		<pubDate>Sat, 13 Dec 2008 21:53:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.isgoodstuff.com/?p=67#comment-147</guid>
		<description>Thanks Mr. Good Stuff for your quick reply. 
In your reply that it not a correct answer as I asked.
My requirement was that I want call the action of btn1.

e.g.

btn1.addEventListener(MouseEvent.CLICK, btn1_clicked)
function btn1_clicked(e:MouseEvent):void{
traceFunc(’you have clicked’);
// Here can be a lot of code related to btn1
}

btn2.addEventListener(MouseEvent.CLICK, btn2_clicked)
function btn2_clicked(e:MouseEvent):void{
// Here I want all the funtionality of btn1
}

See in AS 2.0.
e.g.

btn1.onPress = function(){
  traceFunc(’you have clicked’);
}

btn2.onPress = function(){
  btn1.onPress();
}

So, I want only the above functionality in AS3.0.

Thanks,
Uday
uday_sgh@yahoo.com</description>
		<content:encoded><![CDATA[<p>Thanks Mr. Good Stuff for your quick reply.<br />
In your reply that it not a correct answer as I asked.<br />
My requirement was that I want call the action of btn1.</p>
<p>e.g.</p>
<p>btn1.addEventListener(MouseEvent.CLICK, btn1_clicked)<br />
function btn1_clicked(e:MouseEvent):void{<br />
traceFunc(’you have clicked’);<br />
// Here can be a lot of code related to btn1<br />
}</p>
<p>btn2.addEventListener(MouseEvent.CLICK, btn2_clicked)<br />
function btn2_clicked(e:MouseEvent):void{<br />
// Here I want all the funtionality of btn1<br />
}</p>
<p>See in AS 2.0.<br />
e.g.</p>
<p>btn1.onPress = function(){<br />
  traceFunc(’you have clicked’);<br />
}</p>
<p>btn2.onPress = function(){<br />
  btn1.onPress();<br />
}</p>
<p>So, I want only the above functionality in AS3.0.</p>
<p>Thanks,<br />
Uday<br />
<a href="mailto:uday_sgh@yahoo.com">uday_sgh@yahoo.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr.GoodStuff</title>
		<link>http://www.isgoodstuff.com/2008/06/10/actionscript-30-buttons-and-drag-drop/comment-page-1/#comment-144</link>
		<dc:creator>Mr.GoodStuff</dc:creator>
		<pubDate>Thu, 11 Dec 2008 22:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.isgoodstuff.com/?p=67#comment-144</guid>
		<description>are you trying to simulate a double click event? if it is there&#039;s actually a special double click listener in MouseEvent.

if not event listener always listens to a MouseEvent obviously if btn1 is far away from your mouse to listen to the event onclick on btn2 when it is clicked. Just write a general function for btn2 and btn1

e.g.

btn1.addEventListener(MouseEvent.CLICK, btn1_clicked)
function btn1_clicked(e:MouseEvent):void{
  traceFunc(’you have clicked’);
}

btn2.addEventListener(MouseEvent.CLICK, btn2_clicked)
function btn2_clicked(e:MouseEvent):void{
  traceFunc(’you have clicked’);
}</description>
		<content:encoded><![CDATA[<p>are you trying to simulate a double click event? if it is there&#8217;s actually a special double click listener in MouseEvent.</p>
<p>if not event listener always listens to a MouseEvent obviously if btn1 is far away from your mouse to listen to the event onclick on btn2 when it is clicked. Just write a general function for btn2 and btn1</p>
<p>e.g.</p>
<p>btn1.addEventListener(MouseEvent.CLICK, btn1_clicked)<br />
function btn1_clicked(e:MouseEvent):void{<br />
  traceFunc(’you have clicked’);<br />
}</p>
<p>btn2.addEventListener(MouseEvent.CLICK, btn2_clicked)<br />
function btn2_clicked(e:MouseEvent):void{<br />
  traceFunc(’you have clicked’);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uday</title>
		<link>http://www.isgoodstuff.com/2008/06/10/actionscript-30-buttons-and-drag-drop/comment-page-1/#comment-143</link>
		<dc:creator>Uday</dc:creator>
		<pubDate>Thu, 11 Dec 2008 11:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.isgoodstuff.com/?p=67#comment-143</guid>
		<description>Hi All,
Can any one tell me how can I call the btn1 action on click btn2?
E.g. There are tow buttons on the stage named btn1 and btn2.
btn1.addEventListener(MouseEvent.CLICK, btn1_clicked)
function btn1_clicked(e:MouseEvent):void{
 trace(&#039;you have clicked&#039;);
}
btn2.addEventListener(MouseEvent.CLICK, btn2_clicked)
function btn2_clicked(e:MouseEvent):void{
 //???? Here I want to call btn1 action. Can you tell me???????
}

Thanks,
Uday
uday_sgh@yahoo.com</description>
		<content:encoded><![CDATA[<p>Hi All,<br />
Can any one tell me how can I call the btn1 action on click btn2?<br />
E.g. There are tow buttons on the stage named btn1 and btn2.<br />
btn1.addEventListener(MouseEvent.CLICK, btn1_clicked)<br />
function btn1_clicked(e:MouseEvent):void{<br />
 trace(&#8216;you have clicked&#8217;);<br />
}<br />
btn2.addEventListener(MouseEvent.CLICK, btn2_clicked)<br />
function btn2_clicked(e:MouseEvent):void{<br />
 //???? Here I want to call btn1 action. Can you tell me???????<br />
}</p>
<p>Thanks,<br />
Uday<br />
<a href="mailto:uday_sgh@yahoo.com">uday_sgh@yahoo.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr.GoodStuff</title>
		<link>http://www.isgoodstuff.com/2008/06/10/actionscript-30-buttons-and-drag-drop/comment-page-1/#comment-125</link>
		<dc:creator>Mr.GoodStuff</dc:creator>
		<pubDate>Mon, 10 Nov 2008 02:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.isgoodstuff.com/?p=67#comment-125</guid>
		<description>Either u make yourself a button or a movieclip with 4 frames and make it track as button. Then key in 2 more event listeners for this button for e.g.

MovieClipName/ButtonName.addEventListener(MouseEvent.MOUSE_OVER,MouseOverEffect);
function MouseOverEffect(evt:Event){
   //MovieClip.gotoAndPlay(&quot;EffectOn&quot;);
}

MovieClipName/ButtonName.addEventListener(MouseEvent.MOUSE_OUT,MouseOffEffect);
function MouseOffEffect(evt:Event){
   //MovieClip.gotoAndPlay(&quot;EffectOFF&quot;);
}</description>
		<content:encoded><![CDATA[<p>Either u make yourself a button or a movieclip with 4 frames and make it track as button. Then key in 2 more event listeners for this button for e.g.</p>
<p>MovieClipName/ButtonName.addEventListener(MouseEvent.MOUSE_OVER,MouseOverEffect);<br />
function MouseOverEffect(evt:Event){<br />
   //MovieClip.gotoAndPlay(&#8220;EffectOn&#8221;);<br />
}</p>
<p>MovieClipName/ButtonName.addEventListener(MouseEvent.MOUSE_OUT,MouseOffEffect);<br />
function MouseOffEffect(evt:Event){<br />
   //MovieClip.gotoAndPlay(&#8220;EffectOFF&#8221;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.isgoodstuff.com/2008/06/10/actionscript-30-buttons-and-drag-drop/comment-page-1/#comment-122</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sun, 09 Nov 2008 03:04:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.isgoodstuff.com/?p=67#comment-122</guid>
		<description>Great site. Is there any way to make buttons that can be dragged and dropped?

Basically I want button effects and scripting occuring when I drag it.</description>
		<content:encoded><![CDATA[<p>Great site. Is there any way to make buttons that can be dragged and dropped?</p>
<p>Basically I want button effects and scripting occuring when I drag it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
