Actually using a random string is not a good idea because there is a
chance, however small, that it will fail. Using new Date().getTime(),
as the OP mentioned (and erroneously called "random"), will work every
time (unless, of course, the user resets their clock during the
session--and even then you'd need a coincidence for failure to occur).

On 3/2/07, Mike and Stephie <[EMAIL PROTECTED]> wrote:
Hi David !
Yes this mostly seems to work quite well. The thing is to make sure that
all assets are called using this random string-- that none sneaks
through unintentionally
Kind regards
Prema

David Bellerive wrote:
> I've read that appending a random query string ( example : new Date.getTime() 
) to the URL of assets (images, sounds, XML files, etc.) loaded at runtime in the 
Flash Player ensures that these assets are always loaded from the server instead 
of being loaded from the cache.
>
> I've tested this on Windows XP in IE5, IE5.5, IE6, FF1, FF1.5, FF2, Opera 8, 
Opera 8.5, Opera 9, Netscape 7 and Netscape 8 and it seems to work very well.
>
> However, I haven't been able to test this on a Mac or on Linux.
>
> Is this method bulletproof (it works in all browsers on all operating 
systems)?
>
> Is this something that you would really rely on for big projects?
>
> Has anyone ever used this method and had big problems with it or even minor 
glitches?
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to