# Event Dispatcher very annoying

**URL:** <https://forum.kirupa.com/t/event-dispatcher-very-annoying/266771>\
**Category:** flash\
**Created:** [July 24, 2008, 5:18am UTC](https://forum.kirupa.com/t/event-dispatcher-very-annoying/266771 "2008-07-24T05:18:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [July 24, 2008, 5:18am UTC](https://forum.kirupa.com/t/event-dispatcher-very-annoying/266771/1 "2008-07-24T05:18:10Z")

</div>

Hello

I cant believe that just a simple process of dispatching a custom event can be so annoying.

I am trying to dispatch a custom complete event but its not working and I have tried everything now. CAN ANYone please help me. I am giving the code of Dispatcher class and the timeline script below.

Dispatcher class

```auto

package 
{
	import flash.events.*;
	import flash.net.*;
	import flash.xml.*;

	public class Dispatcher extends EventDispatcher
	{
		// Class Constructor
		public function Dispatcher()
		{

			dispatchEvent(new Event(Event.COMPLETE));

		}
	}
}

```

Time line code to catch event.

```auto

var d:Dispatcher = new Dispatcher();
 d.addEventListener(Event.COMPLETE,onComplete);

		function onComplete(e:Event):void
		{
			trace("COMpleted parsing");
			
		}

```

Thanks in advnace
