PDA

View Full Version : xetreme noobness, need help



holy_cheese
May 26th, 2003, 01:36 AM
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

JuXtA
May 26th, 2003, 08:26 AM
Put this into your main timeline


mymovieclip._visible = false
mymovieclip2.onRelease = function() {
mymovieclip._visible = !mymovieclip._visible

}


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

kode
May 26th, 2003, 08:31 AM
or you could use the enabled property instead of the _visible property. ;)

pom
May 26th, 2003, 11:42 AM
Actually you SHOULD use enabled :)