Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Re: how to set getTimer ?????
From: Helen Triolo
Date: Tue, 24 Oct 2000 21:25:32 +0100

Cool, jd does code! I didn't try it (lazy me) but one thing I did
notice is

startTime = null;

which I think must be

delete startTime;

if you want to reset startTime to null. Telling it to be null doesn't
make it so. (Loose analogy: I tell my son to mow the lawn -> nothing
happens. I delete the dance on Friday if the lawn isn't mowed -> lawn
gets mowed. No idea what made me think of that, though all things
considered, I'd much rather write code than try to dream up new ways to
manipulate a 13-year-old...)

Regards,
Helen
---------------------------------------------------
Flash 5 Journal: http://i-technica.com/flash5
Flash Q&A archive: http://i-technica.com/flashlist

John Dowdell wrote:
>
> 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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 helpatchinwag [dot] com


Replies
  Re: FLASH: Re: how to set getTimer ?????, John Dowdell

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]