ok i know that this is probably a very noob question, but im just learning AS so bear with me.
if i wanted to disable something like a movie clip from being clickbale (i have already linked it to a function)
if i want to diable the movie clip form being clicked unless something else has been pushed how would i do this and where would i put it?
also if its not too much trouble could you explain the code a little bit
Put this into your main timeline
[AS]
mymovieclip._visible = false
mymovieclip2.onRelease = function() {
mymovieclip._visible = !mymovieclip._visible
}
[/AS]
mymovieclip._visible = false
this makes mymovieclip invisible
mymovieclip2.onRelease = function() {
mymovieclip._visible = !mymovieclip._visible
}
this makes mymovieclip the opposite of what it currently is. If you just want it to turn on once then replace:
mymovieclip._visible = !mymovieclip._visible
to
mymovieclip._visible = false
hopes that good enough explaination and what you wanted
or you could use the enabled property instead of the _visible property.
Actually you SHOULD use enabled