Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-22-2001, 11:10 AM   #1
Ganjart
Registered User
 
Join Date: Jan 2001
Posts: 3
Default

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..????
Ganjart is offline   Reply With Quote
Old 01-22-2001, 11:36 PM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is offline   Reply With Quote
Old 01-23-2001, 08:49 AM   #3
Ganjart
Registered User
 
Join Date: Jan 2001
Posts: 3
Default

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....


??
Ganjart is offline   Reply With Quote
Old 01-23-2001, 08:55 AM   #4
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 01:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.