This seems like a really basic AS3 question, and possibly it is, but I
can't figure it out for the life of me.

I'm calling

sign3d.addOnMouseDown(onMouseDown);

where sign3d is a MovieClipSprite - but I'm getting a compiler error
of

1061: Call to a possibly undefined method addOnMouseDown through a
reference with static type away3d.sprites:MovieClipSprite.

Firstly, this is a defined method of MovieClipSprite - it's in the
reference and the source code (I'm compiling from a swc rather than
the source code, but still, I can't believe it's just been taken
out).  So why can't the compiler see it?

Secondly, what is the advantage of calling addOnMouseDown over just
adding a listener in the usual manner?

Thanks.

Reply via email to