Flasher Archive

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


Subject: FLASH: Remembering variables after leaving a swf
From: Jurus
Date: Thu, 6 Apr 2000 04:41:39 +0100

In a message dated 4/5/00 7:53:31 PM Pacific Daylight Time,
vonbrevernatgmx [dot] net writes:

<< do you mean something like a 'backtrack' button in a flash mc? yes, that's
also something i'm looking for to place it into a web menu (flash) and have
users click on a back-track button which records the url's......


Something like that. This is the ultimate goal:

+ The user enters the site
+ The animation plays and stops at the end
+ The user presses a button which goes to an HTML link
+ When they hit back, it needs to go to an identical swf without the
animation (static)
+ When then hit back again, or when they re-access the site, the animation
should start from the beginning. Then the cycle should be repeated.


It was suggested in a previous post that the actions (listed below) would
solve
the problem, and it seems very logical:

+ set a variable before getting the html link (set variable html=1),
+ then in the 1st frame of the whole animation check this variable to see if
it is equal to 1.
+ If it is, jump to the static frame.
+ Then, in this frame reset the variable and go on.


But for some reason it is not working. I am thinking that it has to be
something
very simple, or that the actions or variables are not written correctly.


> ON THE BUTTON THAT LOADS THE HTML LINK:
>
> On (Release)
> Set Variable: "html" = 1
> Get URL ("http://www.xxx.com/page.html")
> End On
>
>
>
> AT FRAME ONE:
>
>
> If (html = 1)
> Go to and Stop (149)
> Else
> End If
>
>
>
>
> ON THE STATIC FRAME (149)
>
>
> Stop
> Set Variable: "html" = 0
>
>



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
the new Flasher list books section, check it out
at http://www.chinwag.com/flasher/books.shtml
send suggestions for inclusions to helpatchinwag [dot] 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]