Me and 1061: an unhappy marriage (stopImmediatePropagation();)

Hello!

I’ve been busy learning actionscript to create some cool object oriented programs. I’ve been able to solve earlier 1061 errors, but I can’t seem to fix this one.

My program creates an instance of NodeClass (which extends MovieClip), and by clicking on this instance, it creates new instances of NodeClass which are its children. When I try to fix the propagation problem that happens (I click on one of the children and it’s (grand)parent(s) also creates a new child) by using Event.stopImmediatePropagation(); or Event.stopPropagation(); I get 1061: Call to a possibly undefined method stopImmediatePropagation through a reference with static type Class.