This is the strangest most unexplainable and frustratng thing I've experienced with flash and I have no Idea how to solve the problem.
Consider this function
public function trackDownloadHandler(event:MP3DownloadEvent):void
{
dispatchEvent(event);
//dispatchEvent(new MP3DownloadEvent(MP3DownloadEvent.OPEN,event.channelPadID))
}
I've done this a million times. A particular event arrives in a handler had a dispatch it again from the class it arrived to.
But for some bizarre reason I'm getting an error saying
TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@a06ebe1 to com.rocudo.audioEngine.events.MP3DownloadEvent.
I don't see where I'm trying to convert anything anywhere?
So I tried next to maybe just dispatch a brand new event instead and see how that worked out. The implementation is here below.
public function trackDownloadHandler(event:MP3DownloadEvent):void
{
//dispatchEvent(event);
dispatchEvent(new MP3DownloadEvent(MP3DownloadEvent.OPEN,event.channelPadID))
}
But in that case the original type error message goes away and I get a new error saying
Type was not found or compile time constant :Vector
What the hell is going on ??