Flasher Archive

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


Subject: Re: FLASH: Reach elapse time then close
From: Darren Critchley
Date: Fri, 21 Apr 2000 16:33:19 +0100

Daniel Guerrier wrote:

> Im trying to close an object based on how much time
> has passed. Here's what I'm doing; in my
> Scripts library I have this:
>
> Set Variable: "BaseLine" = Int (
> GetTimer / 1000 )
> Loop While (OverState = False)
> If ( ( ( Int(GetTimer /1000) ) -
> BaseLine) > 5)
> Call ("/scripts:CloseAll")
> Set Variable: "OverState" = True
> End If
> End Loop
>
> When I call it I do this:
> On (Roll Over)
> Set Variable: "/scripts:OverState" =
> False
> Call ("/scripts:TimeClose")
> End On
>
> I set the OverState variable to
> False and let it run. If I don't rollover the
> resulting PopUp menu
> which resets the OverState to True
> with in 5sec the TimeClose will close all popups. The
> code
> seems OK but I'm getting an error
> for an infinite loop. How can I accomplish this?
>
> __________________________________________________
> Do You Yahoo!?
> Send online invitations with Yahoo! Invites.
> http://invites.yahoo.com
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Get the last 100 messages from the flasher list NOW
> http://www.chinwag.com/flasher/last100.shtml
>
> Flash books http://www.chinwag.com/flasher/books.shtml
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com

See previous reply from me on this. Basically the problem is that your
are looping all in one frame. Time Wait loops like that don't work in a
single loop as flash complains (however, you could still publish that
SWF and it Would work) Anyways make your loop a three frame loop and you
will be fine.



--
http://www.aurorainformationsystems.com/

http://persweb.direct.ca/darrenc/

http://persweb.direct.ca/darrenc/KVR/TheKVR.htm



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Reach elapse time then close, Daniel Guerrier

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