(_seb_),
[quoted text, click to view] >I have read that to disable a button, I should use
> the following code:
>
> myButton.enable = false;
I'm guessing you read this online somewhere, perhaps in this very forum?
[quoted text, click to view] > But this does not seem to work for a MC. How
> to do the same thing with ann MC?
The other three (so far), w m d, Rothrock, and Wolf van Ween, have all
succinctly given the correct answer, so I can't add anything there. The
only thing to express is my surprise -- almost shock -- that your first step
wasn't simply to look in the ActionScript Language Reference. Buttons and
movie clips do share some features, but ultimately, each object is its own
datatype. In this case, both objects feature an enabled property, but one
should never make the assumption that a given object performs a certain way.
Objects are defined by their classes. The "Button class" entry of the
ActionScript Language Reference lists all the features of a button --
properties (characteristics), methods (things it can do), and events (things
it can react to). The "MovieClip class" lists all the features of a movie
clip. The TextField class lists all the features of a dynamic text field,
and so on. It's all conveniently laid out in neatly organized class
listings. :)
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/ "Luck is the residue of good design."