| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jan 2001
Posts: 3
|
I have a swf file reading data from a txt file...
When i launch my swf from my desktop,and when it is read with my flash player...i have the perfect file,with updated values on the fly...,everything... But if i launch whether the html with the swf...or directly the swf,in my browser...i have a non-updated file!!! i try to refresh my html file... but nothing does the trick... what did I miss,where..???? |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Make sure first that the txt file is in the correct directory.
Also make sure that the browser is not caching your text file. Clear your cache before you begin. If you find that it is caching it, then you will need to add an anti-cache mechanism. Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jan 2001
Posts: 3
|
Yes...I actually already checked the caching process of my browser(I think...what could i do to..."counter attack" this ?
)and my txt file is in the right directory...the same than my swf and my htm.... ?? |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
To prevent loading from cache you add an arbitrary string to the end of your call on the file to make it unique. That way you never call the same file twice as the browser registers:
file.txt?1234 as different to file.txt?2345 So what make your loadVariables something like I have in my counter tutorial: loadVariables ("file.txt?" add random(2000), "/counter"); This way the file will be loaded fresh every time. Note this probably wont work in the Flash player, only through a browser. Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| strange behaviour could be eventlistner? | Syllogism | ActionScript 2.0 | 1 | 09-27-2006 07:38 PM |
| mouse acting strange | piwanek | Flash 8 General Questions | 2 | 05-02-2006 12:45 AM |
| Strange problem with arrays | Vector | ActionScript 2.0 | 5 | 07-11-2005 03:31 AM |
| strange problem with scripted movment | Paul Ferrie | ActionScript 1.0 (and below) | 8 | 12-27-2003 12:53 PM |
| Strange onLoad ! | Madokan | ActionScript 1.0 (and below) | 6 | 07-22-2002 11:52 AM |