all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

event handlers for objects within objects


event handlers for objects within objects jaminPitt
11/17/2004 9:58:41 PM
flash actionscript:
I created two classes as extensions of the MovieClip class. I then attached
class A to the root, and attached class B to class A. However, the event
handlers within class B don't work. If I attach class B to the root, they do
work. If class B has an event handler as such: function onPress() {
trace('press'); } How can I get this to work?
Re: event handlers for objects within objects katieluv
11/18/2004 1:05:15 AM
I have been unable to locate exact information on the event model for Flash,
but in my most recent project capturing an 'onRollOver' in a parent MC
precluded it from triggering the 'onRollOver' in a child MC. As far as I know,
(please correct me anyone if you know) you have to manually either add a
listener from the child MC (which does not trigger only over the child MC) or
manually trigger the event in the child mc based on mouseX, Y. - Katie
Re: event handlers for objects within objects Jeckyl
11/18/2004 9:16:14 AM
Please show exactly how you have 'attached' the class to the root, and how
you 'attached' a class to another class.

Re: event handlers for objects within objects jaminPitt
11/18/2004 1:49:05 PM
AddThis Social Bookmark Button