Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Re: how to set getTimer ????? |
| From: | John Dowdell |
| Date: | Tue, 24 Oct 2000 21:01:58 +0100 |
At 7:32 PM 10/23/0, tomasz wrote:
> [How can I] stop on each frame for 10 seconds and then to move
> to the next frame and stop for another 10 seconds and so on
Assuming you're in the current version, try putting this in each frame
script where you want to pause for ten seconds:
// Set these two values for how long you want to loop, and
// how many frames to loop (10 seconds & 1 frame here):
pauseDuration = 10 * 1000;
framesInLoop = 1;
if (startTime == null) {
startTime = getTimer();
goToAndPlay (_currentFrame-framesInLoop);
} else {
lapsedTime = getTimer() - startTime;
if (lapsedTime < pauseDuration) {
goToAndPlay (_currentFrame-framesInLoop);
} else {
startTime = null;
}
}
jd
John Dowdell, Macromedia Tech Support, San Francisco CA US
Search technotes: http://www.macromedia.com/support/search/
Offlist email risks capture by the spam filters. I may not see your
email if it's not on the list. Private one-on-one email options are
available via Priority Access: http://www.macromedia.com/support/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
Re: FLASH: Re: how to set getTimer ?????, Helen Triolo
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

