1 Reply Latest reply on Jan 26, 2008 5:31 AM by niki tsanov

    dispatchEvent not working in debug mode


      I have a localconnection, and when I receive a message from the local connection I dispatch an event. However, the dispatch event does not work. I step into the code and go into some Macromedia code for the "mx.events.EventDispatcher.dispatchEvent" and "mx.events.EventDispatcher.dispatchQueue", and when I inspect my variables the eventObj has both a target and a type set, but when the code tries to access them through eventObj.target and eventObj.type it returns null.

      Also, this only happens in debug mode (Debug -> Debug Movie) and not in test mode (Control -> Test Movie). In test movie the exact same code works flawlessly.