Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: reload variables |
From: | Muzak |
Date: | Sat, 9 Dec 2000 01:25:56 GMT |
I thinnk it has been addressed here a few days ago, might have been another list though.
Anyway, if you add a random number to the file you're loading, the browser will consider this a new file every time.
loadVariablesNum ("highscore.cfm?randomVar="+random(10000), 0);
Just saw it on another list :-)
hth,
Muzak
----- Original Message -----
From: "avex" <listobjekt [dot] com [dot] au>
To: <flasherchinwag [dot] com>
Sent: Saturday, December 09, 2000 2:26 AM
Subject: FLASH: reload variables
> HI everyone....
>
> I just made my first little flash game and was very excited.........but then
> I discovered by High Score Feature doesn't work.
>
> In the first frame it does a load variables command
> loadVariablesNum ("highscore.cfm", 0);
>
> From a text file and imports the highest score, name, and email.
> If you play the game and get a high score you enter your details and it uses
> geturl to post these to a database.
>
> You then click "play again", it goes back to frame 1 and SHOULD load the NEW
> variables with the new high score from the database.
>
> THe problem is that it doesn't insert the new variable data into flash so it
> still displays the old high score.
>
> Is there anyway to flush out old variables and to force flash to load new
> variables in with the Load variables command?
>
> thanks for you help...
>
> chad
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: reload variables, avex
Replies
RE: FLASH: Site Check - www.nancyhoney.c, Mats Persson
Re: FLASH: Site Check - www.nancyhoney.c, Danny Ferry
FLASH: reload variables, avex
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]