dispatchEvent code does not work in Flash 8
Hello, what changed in flash 8 so my dispatchEvent code does not workanymore, here is what I do in brief, in class module:
private var dispatchEvent:Function;
....
mx.events.EventDispatcher.initialize(this);
....
dispatchEvent({type:"klik", target:this, link:Tekst});
.....
In fla I do this:
var o:Object;
o.klik=function(obj)
{
trace("AAAAAAAAAAAAAAAAAA");
}
test.addEventListener("klik", o);
This code works in Flash player 7 and does not work in flash player 8,
anyone knows why????