<?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: Custom Event in actionscript 3</title>
	<atom:link href="http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/</link>
	<description>javascript, php, flash, engineer, electrical, electronic, xul, firefox, mysql, matlab, c, web, web developer,</description>
	<lastBuildDate>Sat, 27 Feb 2010 14:19:01 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: apueee</title>
		<link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/comment-page-1/#comment-105</link>
		<dc:creator>apueee</dc:creator>
		<pubDate>Sat, 02 May 2009 03:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/#comment-105</guid>
		<description>Dear Oliver,&lt;br&gt;&lt;br&gt;Thanks for ur comment. &lt;br&gt;&lt;br&gt;Have u changed at myCustomEvent ? in myCustomEvent  class i have set the type of myMessage as string. But you are passing the message as object. So its need to change the myMessage as Object or u can set * for any type.&lt;br&gt;&lt;br&gt;package wneeds.events{&lt;br&gt;&lt;br&gt;          import flash.events.Event;&lt;br&gt;&lt;br&gt;          public class myCustomEvent extends Event {&lt;br&gt;    &lt;br&gt;              public var myMessage:*;&lt;br&gt; &lt;br&gt;             public function myCustomEvent(msg) {&lt;br&gt;&lt;br&gt;                 super(&quot;myCustomEvent&quot;);&lt;br&gt;                 myMessage = msg;&lt;br&gt;            }&lt;br&gt;     }&lt;br&gt;}&lt;br&gt;&lt;br&gt;Try it . i think it should work.</description>
		<content:encoded><![CDATA[<p>Dear Oliver,</p>
<p>Thanks for ur comment. </p>
<p>Have u changed at myCustomEvent ? in myCustomEvent  class i have set the type of myMessage as string. But you are passing the message as object. So its need to change the myMessage as Object or u can set * for any type.</p>
<p>package wneeds.events{</p>
<p>          import flash.events.Event;</p>
<p>          public class myCustomEvent extends Event {</p>
<p>              public var myMessage:*;</p>
<p>             public function myCustomEvent(msg) {</p>
<p>                 super(&#8221;myCustomEvent&#8221;);<br />                 myMessage = msg;<br />            }<br />     }<br />}</p>
<p>Try it . i think it should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/comment-page-1/#comment-104</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Fri, 01 May 2009 18:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/#comment-104</guid>
		<description>Hi,&lt;br&gt;great tutorial, i got it so far working as i can send the one var back to e.myMessage&lt;br&gt;&lt;br&gt;But when i try you example line with multi values , i get stuck and only get erros.&lt;br&gt;&lt;br&gt;can you make a example how the  myCustomEvent class needs to look if i &lt;br&gt;dipatch this message.:&lt;br&gt;dispatchEvent(new myCustomEvent({Amode:&#039;tma&#039;,SID:this.SID,MYID:this.MYID,PRID:this.PRID,TYP:this.TYP}));&lt;br&gt;&lt;br&gt;where SID, MYID,PRID,TYP are all byte arrays.&lt;br&gt;Best regards Oliver</description>
		<content:encoded><![CDATA[<p>Hi,<br />great tutorial, i got it so far working as i can send the one var back to e.myMessage</p>
<p>But when i try you example line with multi values , i get stuck and only get erros.</p>
<p>can you make a example how the  myCustomEvent class needs to look if i <br />dipatch this message.:<br />dispatchEvent(new myCustomEvent({Amode:&#39;tma&#39;,SID:this.SID,MYID:this.MYID,PRID:this.PRID,TYP:this.TYP}));</p>
<p>where SID, MYID,PRID,TYP are all byte arrays.<br />Best regards Oliver</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Purwanto</title>
		<link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/comment-page-1/#comment-99</link>
		<dc:creator>Purwanto</dc:creator>
		<pubDate>Sun, 22 Mar 2009 01:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/#comment-99</guid>
		<description>Not from the timeline, but receive event from other class (that linkaged by a movieclip). Example, from first class after finished some tween, I want to control other movieclip that do something. To do that, I want to access other class from the first class. After access that class, I can control that Movieclip.</description>
		<content:encoded><![CDATA[<p>Not from the timeline, but receive event from other class (that linkaged by a movieclip). Example, from first class after finished some tween, I want to control other movieclip that do something. To do that, I want to access other class from the first class. After access that class, I can control that Movieclip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apueee</title>
		<link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/comment-page-1/#comment-98</link>
		<dc:creator>apueee</dc:creator>
		<pubDate>Wed, 18 Mar 2009 03:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/#comment-98</guid>
		<description>Dear Purwanto&lt;br&gt;&lt;br&gt;Thanks for ur comment.  &lt;br&gt;&lt;br&gt;The following code need to write where you want to call the event.  first u need to import the custom event class. then u need to call the dispatchEvent method to call ur custom event.  This is not a part of myCustomEvent Class. Here you just using the myCustomEvent class. :)&lt;br&gt;**************&lt;br&gt;import        wneeds.events.myCustomEvent;          //import ur class here&lt;br&gt;dispatchEvent(new myCustomEvent(&quot;Hello ...&quot;));  // call your custom event.&lt;br&gt;*******************&lt;br&gt;&lt;br&gt;To track the event in any where of ur code u need to put the following code:&lt;br&gt;**********&lt;br&gt;addEventListener(&quot;myCustomEvent&quot;, showMessage);&lt;br&gt;function showMessage(e:myCustomEvent):void {&lt;br&gt;    trace(e.myMessage);&lt;br&gt;}&lt;br&gt;*********************&lt;br&gt;I&#039;m not clear about your last question. Do you want to call a event from a movieclip and receive the event from main timeline?</description>
		<content:encoded><![CDATA[<p>Dear Purwanto</p>
<p>Thanks for ur comment.  </p>
<p>The following code need to write where you want to call the event.  first u need to import the custom event class. then u need to call the dispatchEvent method to call ur custom event.  This is not a part of myCustomEvent Class. Here you just using the myCustomEvent class. <img src='http://www.apueee.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />**************<br />import        wneeds.events.myCustomEvent;          //import ur class here<br />dispatchEvent(new myCustomEvent(&#8221;Hello &#8230;&#8221;));  // call your custom event.<br />*******************</p>
<p>To track the event in any where of ur code u need to put the following code:<br />**********<br />addEventListener(&#8221;myCustomEvent&#8221;, showMessage);<br />function showMessage(e:myCustomEvent):void {<br />    trace(e.myMessage);<br />}<br />*********************<br />I&#39;m not clear about your last question. Do you want to call a event from a movieclip and receive the event from main timeline?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Purwanto</title>
		<link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/comment-page-1/#comment-97</link>
		<dc:creator>Purwanto</dc:creator>
		<pubDate>Wed, 18 Mar 2009 01:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/#comment-97</guid>
		<description>I&#039;m still confused about custom event. I have search many many sample but it&#039;s still make me don&#039;t get it. I like the sample that you have above, but I don&#039;t know which code will act as document class. Thus, in the part ...&quot;dispatchEvent(&quot;new MyCustomEvent(&quot;Hello....&quot;));  &gt;&gt; it&#039;s still the same class with the myCustomEvent class or other new class??&lt;br&gt;Oh yeah, this custom Event can do something like accessing other movieclip object that have linkage with a class, can it?</description>
		<content:encoded><![CDATA[<p>I&#39;m still confused about custom event. I have search many many sample but it&#39;s still make me don&#39;t get it. I like the sample that you have above, but I don&#39;t know which code will act as document class. Thus, in the part &#8230;&#8221;dispatchEvent(&#8221;new MyCustomEvent(&#8221;Hello&#8230;.&#8221;));  &gt;&gt; it&#39;s still the same class with the myCustomEvent class or other new class??<br />Oh yeah, this custom Event can do something like accessing other movieclip object that have linkage with a class, can it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
