Flasher Archive

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


Subject: Re: FLASH: get timer not working right
From: Jon Williams
Date: Mon, 10 Jul 2000 17:19:18 +0100

hmm...code looks right.

double-check that the startTime variable is
being set at the right time and not 13 secs early
(say at the beginning of the load sequence instead
of at the end of it).

if that doesn't help, drop in some textboxes and
watch the variables change...standard story...

-jon

Helen Triolo wrote:

> I'm working on a Flash projector project, in which the viewer is
> supposed to be bumped to the next frame in 5 seconds if they don't click
> a Continue button. I'm using a timer mc to do this (ala Branden Hall),
> but it waits for 18 seconds, not 5, before going to the next frame. My
> question is -- is the code wrong, or is the gettimer function that
> inaccurate, or is this that dependent on processor speed (WinNT,
> 367MHz), or what?
>
> on main timeline, mc instance timer in one frame with these actions:
>
> Set Variable: "nsecs" = 5
> Set Variable: "startTime" = getTimer
> Stop
>
> mc timer has 2 frames. on each, the code is:
>
> If ((getTimer-/:startTime)>/:nsecs*1000)
> Begin Tell Target ("/")
> Play
> End Tell Target
> End If
>
> Thanks,
> Helen
> ---------------------------------------------------
> helen triolo � http://i-technica.com � 301-424-6037
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and the Flash(tm) Film Festival
> July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
> www.flashforward2000.com
> Produced by United Digital Artists and lynda.com
> Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
> shockwave.com and Electric Rain.
> 1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
> Register before June 30 and save $200!!-- www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- 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: get timer not working right, Helen Triolo

Replies
  FLASH: get timer not working right, Helen Triolo

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