Flasher Archive

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


Subject: Re: FLASH: LOOP AND TIMER ???????
From: Marc Hoffman
Date: Fri, 12 Mar 1999 01:27:55 GMT

At 01:26 PM 3/11/99 +0100, you wrote:
>Hi,
>
>I need to make a traditional Flash movie wich in interactive - so far
>no problem
>I also need to make a timer function/script that trough the whole movie
>cheks for a time out period
>of some minutes.
>So if the user didn't touch the mouse for a period, a "loop-mode" of the
>movie happens.
>When the user touches the mouse, we come back to the mainscreen or
>something.

There was a similar question last week that I responded to. Was it yours?
See if you can adapt this, it's similar in principle to what you need:

>I need to check out if the mouse isn't touched for some time, (in a
>Flash presentatie)
>If the time-out occours, then some sort of looping animation must
>happen.(another movie)
>When the mouse is than touched again, you come back again on the place
>you where.

This is one of those complex things that can be done in Flash but you may
find it tedious.

Create a timer MC (as many frames as you want the timer to last). In the
last frame have a frame action that makes the time-out animation occur.
This could be a TellTarget to the main timeline, making it move to the
animation, or it could be a TellTarget to another MC that is stopped in a
blank frame.

Drag the timer MC to the stage and give it the instance name timeout.

Create a small rectangular invisible button (that is, make a button with a
rectangle in the hit area and no graphics in the up, over, and down
frames), drag it onto the stage, double-click it and give it this action:
On RollOut
Begin Tell Target (target: /timeout)
GoTo and Play frame 1
End Tell Target
End On

Now copy this invisible button so that the copies cover the entire stage area.

Whenever the mouse rolls out of one of these invisible buttons, the timer
will reset to zero. If the mouse doesn't roll out, the timer MC will play
to the end and start the animation.




Marc Hoffman
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
marcatdartfrogmedia [dot] com (mailto:marcatdartfrogmedia [dot] com)
My home site is now featured in Ken Milburn's book, Flash 3 Web Animation f/x
and Design. Play a virtual marimba there: <www.dartfrogmedia.com/dartfrog>.
View my Flash3 samples: <http://www.jps.net/dartfrog/sampler>.
Read about Flash: <http://www.jps.net/dartfrog/sampler/flashinf.htm>

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  FLASH: LOOP AND TIMER ???????, Erwin Geens

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