<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tarek Mahmud Apu - Latest Comments in Custom Event in actionscript 3</title><link>http://apueee.disqus.com/</link><description></description><language>en</language><lastBuildDate>Sat, 02 May 2009 01:21:22 -0000</lastBuildDate><item><title>Re: Custom Event in actionscript 3</title><link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/#comment-8916810</link><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("myCustomEvent");&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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">apueee</dc:creator><pubDate>Sat, 02 May 2009 01:21:22 -0000</pubDate></item><item><title>Re: Custom Event in actionscript 3</title><link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/#comment-8906819</link><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:'tma',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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Oliver</dc:creator><pubDate>Fri, 01 May 2009 16:27:50 -0000</pubDate></item><item><title>Re: Custom Event in actionscript 3</title><link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/#comment-7408473</link><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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Purwanto</dc:creator><pubDate>Sat, 21 Mar 2009 23:30:01 -0000</pubDate></item><item><title>Re: Custom Event in actionscript 3</title><link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/#comment-7308513</link><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("Hello ..."));  // 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("myCustomEvent", 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'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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">apueee</dc:creator><pubDate>Wed, 18 Mar 2009 01:06:51 -0000</pubDate></item><item><title>Re: Custom Event in actionscript 3</title><link>http://www.apueee.com/2008/10/26/custom-event-in-actionscript-3/#comment-7307411</link><description>I'm still confused about custom event. I have search many many sample but it's still make me don't get it. I like the sample that you have above, but I don't know which code will act as document class. Thus, in the part ..."dispatchEvent("new MyCustomEvent("Hello...."));  &amp;gt;&amp;gt; it'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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Purwanto</dc:creator><pubDate>Tue, 17 Mar 2009 23:59:27 -0000</pubDate></item></channel></rss>