-
loadMovie, but only once!
Hey,
The code is as follows:
on(release) {
loadMovie(movie, level);
}
Text appears below the button. How do I now disable the button so that the movie cannot be "reloaded"? Thanks.
-
code: on (release) {
this.enabled = false;
}
-
Thanks Man
Thanks for that appreciated! I'm a MASSIVE newbie, so bare with me!
Cheers.
-
By the way the correct syntax to load a movie on a level is...
loadMovieNum("movie.swf", 5);
-
Disabling JUST the down state
Newbie - i have only been here a couple of weeks and already i can see you being me best friend! LOL.
Anyway, is there a way to disable JUST the DOWN state? I have an MC running in the over state that I would like to keep!
-
Not really!
What I'd do is set a variable to true and check it on your release script...
Set a variable on the first frame of your movie...
_level0.movie_played = false;
Then on your script...
on(release) {
if(_level0.movie_played == false){
loadMovieNum("movie.swf", 5);
_level0.movie_played = true;
} else {
stop();
}
}
This will have the movie load once, and when it has the variable being set to true, the else is executed, and the movie ain't loaded once again. The button just does nothing on the release actionscript.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|