PDA

View Full Version : event handling help


mfsiddiq
06-19-2008, 08:08 AM
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