Flasher Archive

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


Subject: RE: FLASH: Idle
From: Calin Sandici
Date: Mon, 14 Feb 2000 13:19:34 GMT

>>Hi!
>>
>>I wonder if someone has a solution to this:
>>
>>I have done a Flash site and it's going to be displayed in
>>stores here in
>>Stockholm. I'd like to have the function where if no one
>>touches the mouse
>>or clicks on a link, for let say 15 minutes, I want the movie
>>to return to
>>the first screen again.

Int(GetTimer) returns the number of miliseconds elapsed since the movie
started playing.
In a certain frame of the main movie (preferably where you have your main
menus, etc. and the movie waits for the user's input) you could assign the
value Int(GetTimer) to a variable called say referenceTime.
Then you should create a two frame movie, with no symbols on the frames but
only frame actions. In the second frame, you should read the Int(GetTimer)
again and assign it to a "currentTime" variable and compare it to the
referenceTime variable. Thismovie will loop continuously and read the time.
If currentTime - referenceTime > 15*60*100 miliseconds, send the main movie
to the first frame. Then you have to draw a transparent button symbol which
should cover all your stage minus your symbols (buttons, MCs, etc). To its
on RollOver event you should assign an action that resets the
"referenceTime" variable.
You should also reset the current time if the user rolls over any of your
button symbols.
The only problem is that you will permanently have a "hand cursor" when you
move the mouse over the stage. Unfortunately, you don't have (to my
knowledge) any other way of tracking the mouse movement.

HTH,
Calin

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 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


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