I have a button that when It’s clicked it starts a movie within the maintime playing, if it is clicked a second time, it restarts that movie from the beginning, is there a way to detect if a movie is already running and if so, ignore the mouse click?
on(release) {
this._enabled = false;
}
That will disable the button after is has been clicked. Then in the last frame of you MovieClip you can have:
myButton._enabled = true;
So that the button becomes avtive again.
There are other ways, like using a variable, but this was the first i thought of.
Regards,
Viru.
Here’s one simple way. On the button apply this action:
on (release){
_root.myButton.enabled = false;
}
That would disable that button after it is clicked. To renable it, place this on the last frame of the movie that is being played:
_root.myButton.enabled = true;
Now that’s a simple way of doing it, I’m sure you can set up some kind of function to do it as well.
EDIT: aww man korn beat me to it.
How about that, we have the same idea. Just mine a minute faster!! I win, whats my prize…?
V.
Awesome! Very cool.
Thanks both of you.
You get to be super duper cool for about 5 seconds. Starting now, enjoy!
hey EG … gotta know how you do that gradient thing in your title. i.e. on the forum it says
electrongeek
Forum Wanderer
and the ‘Forum Wanderer’ is a gradient from light to dark red
how’d you do that? =)
thx
Shuga, I’m not suppose to tell you this, but since you’ve been here for awhile, I’ll let you in on a secret…
It’s HTML!!
thanks that was helpful
blockhead:block:
HTML? did you just give each letter a seperate color? or did you use a css tag to give it some silly text effect?
thx =)
Yup each letter was assigned a color.