# Event handling

**URL:** <https://forum.kirupa.com/t/event-handling/263790>\
**Category:** flash\
**Created:** [June 19, 2008, 8:59am UTC](https://forum.kirupa.com/t/event-handling/263790 "2008-06-19T08:59:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfsiddiq](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@mfsiddiq](https://forum.kirupa.com/u/mfsiddiq)\
**Post date:** [June 19, 2008, 8:59am UTC](https://forum.kirupa.com/t/event-handling/263790/1 "2008-06-19T08:59:43Z")

</div>

Hi

I am pretty new to the world of AS3.0.I have a problem listening to an event.My problem is as follows i have a main application file from which i m dispatching an event with the following syntax  
Application.application.dispatchEvent(e).I intend to catch this event from an actionscript file using the same syntax  
Application.application.addEventListener(e,eventHa ndler);

But the actionscript file throws null pointer exception on Application.application

Any sugestion will be appreciated

---

<div class="post-metadata">

**Author:** ![DiamondDog](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@DiamondDog](https://forum.kirupa.com/u/DiamondDog)\
**Post date:** [June 19, 2008, 11:54am UTC](https://forum.kirupa.com/t/event-handling/263790/2 "2008-06-19T11:54:16Z")

</div>

Any chance you could attach your .fla file and/or class files?  
Going to be easier to see what’s happening that way.  
Cheers.
