i have been reading book Essential actionscript 3.0 , and basically as far as i understand allmost all events propagate.
so lets say i have class A,B,C which all extend Sprite , and some cotstume event called CostumeEvent which defines public static const SOMETHING .
somewhere inside a i wanna do:
addEventListener(CostumeEvent.SOMETHING, testIfitGotWithTrace);
a.addChild(b);
b.addChild©;
so now if i use dispatchEvent(new CostumeEvent()); somwhere inside c i never get the tesitIfItGotWithTrace(e:CostumeEvent) for some reason to run, however c is child of b and b is child of a, so if my CostumeEvent propagates a should eventually get the event right?
on the other hand if i do inside a:
b.addEventListener(CostumeEvent.SOMETHING)
and inside b this.DispatchEvent(new CostumeEvent()); everything works just fine and i get the trace and all, so can som1 please tell me is that what i am trying to do impossible or how to do it?
nvm i haven’t bubbles=true in CostumeEventClass