Flasher Archive

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


Subject: FLASH: Remembering variables after leaving a swf
From: Jurus
Date: Wed, 5 Apr 2000 01:28:15 +0100

Does a Flash swf remember a variable after you leave it using the GET URL
which goes a separate HTML link?

I still can't get an animation to play once, then go to an HTML page (after
pressing a link), then return back to a static frame using the "back" button.
Every time I hit back, it starts the whole animation over again. Any ideas
would be greatly appreciated.


I tried to set a variable before getting the HTML link (set variable html=1),
then in the 1st frame of the whole animation I check this variable to see if
it is equal to 1. If it is, I jump to the static frame. Then, in this
frame I reset the variable and go on. It doesn't seem to recognize the
variable after I leave the swf.

This is what I did:

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]