:: flash help ::
Out of context: Reply #5
- Started
- Last post
- 8 Responses
- lvl_thirteen0
okay this is what i use:
make a movie clip with 8 frames
frame one:
play();
tellTarget ("../") {
stop();
}frame two:
start = Number(getTimer()/1000);
end = start+pause-3;
//you can change -3 to anything you want to reflect your total time you want it to pauseframe three (with a frame label "checktime"):
current = Number(getTimer()/1000);
if (current >= end) {
tellTarget ("../") {
play();
}
} else {
play();
}frame 4-7: leave blank
frame eight:
gotoAndPlay("checktime");then right click or control click on the movieclip you just created in the library window.
go to 'component definition...' in menu.
press the '+' and change 'varName' to 'pause' and 'defaultValue' to '5'
now place this compontent anywhere on your movie.
this is a long way to do it, and there is probably a easier way, but this works everytime for me and once it is created once, you can just always copy and paste it and change the value to whatever you want.