I thought I better post this incase someone else is having similar issues,
awhile ago I made a post that flash 8 was crashing on FLV events in Flash 8.
Finally I tracked it down, its not the media crashing it, its event
dispatcher, I'm listening for the same event in my super class, like this...
Im just putting the methods in here...
addEventListener("onVideoComplete", this);
public function onVideoComplete (e:Object) :Void
{
}
pretty standard stuff, but then Im also doing this...
private function addVideoHandler (label:String, method:Function) :Function
{
var handler:Function = Delegate.create(this, method);
eventHandlers[label] = handler;
addEventListener("onVideoComplete", handler);
return handler;
}
private function removeVideoHandler (label:String) :Boolean
{
if (eventHandlers[label] == undefined) {
return false;
}
else
{
var handler:Function = eventHandlers[label];
delete eventHandlers[label];
removeEventListener("onVideoComplete", handler);
return true;
}
}
this is done so I can just add and remove handlers, actually later I found
an even better way of doing this, but i wont go into that now.
these methods get called from the child class, it seems in flash 8, because
its a lot faster these can both be called concurrently, causing intermittent
crashing.
I'd just like to thank macromedia for the hell ive been through, and for
absolutly no technical support. You should really look into asynchronous
locking.
goodnight :)
MaTT
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders