I'm currently developing a game in FlashMX and I'd like there to be a pause of a few seconds before a button/character becomes active/clickable. Instead of adding a load of frames to create the effect, I'd like to use actionscript to create the pause. I know that this should be possible using setInterval function, but all the tutorials I've found are usually in a different context or don't explain where or on what the script should be put.
i am not sure what you want but...
sounds like getTimer() will be better solution for you.
post your fla or code if you have something..
we need more info for us to help you better..
__________________
"If a man does not keep pace with his
companions, perhaps it is because he hears a different drummer." Thoreau
I don't have any script to show yet, but maybe I can explain what I'd like to do more clearly.
Basically I'd like my playhead to stay on frame 1 for three seconds before going to frame 2.
I know that it is possible to do this with the getTimer, but from what I've read it seems that setInterval would be a more direct, less buggy way of doing such a (seemingly) simple thing.
thanks for all the suggestions, however, I'm not quite sure where
to put that code. I'm assuming that it goes on a frame in the main timeline, however, it's not working.
I would consider using getTimer but I will already be using a timer for the overall game and I'm just a bit hesitant to have two timers running.
Sorry for all the hesitancy, but I'm fairly new to coding.
Both of those are pretty slick. It seems like the one line code would be perfect if you just wanted to use it once and then never again. On the other hand, it would be pretty simple to just type in movie.pause(1000) if you used the stall technique repeatedly in a movie.
Are there other differences, good or bad, between the two?