Yeah date's better, I was in a hurry.  Awesome you got it to work!
 
----- Original Message -----
From: sinatosk
Sent: Friday, April 14, 2006 5:15 PM
Subject: Re: [flexcoders] Re: [Flex2.0] How can I control cache of HTTPService inside FlashPlayer?

yeah thats what I do but I use this method instead
 
var d:Date = new Date();
 
 url  += "?"  + d.getTime().toString();
 
that way I know for sure the number will always be different :p
 
and it is the flash player that caches it ( only if you use the flash player alone otherwise yes it does use your browser ). if you run the SWF file on it's own ( using flash player but not within a browser ) it remembers it.
 
My guess is that the flash player remembers the URL and the contents it recieved.

 
On 4/14/06, JesterXL <[EMAIL PROTECTED]> wrote:
Via code you can append a random number to the URL.  Since it's generally
unique each time, it almost never reads from the cache.  I reckon if you
build your URL dynamically for HTTPService, you can ensure it'll never be
cached.

var url : String = "http://www.server.com/file.php";
url += "?" + String ( Math.random() * 9999) ;



----- Original Message -----
From: "Dave Wolf" < [EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Thursday, April 13, 2006 7:58 PM
Subject: [flexcoders] Re: [Flex2.0] How can I control cache of HTTPService
inside FlashPlayer?


Set the proper cache control headers on the server side.  The player
is not caching this, the browser is.  The player piggy backs on the
browsers HTTP stack generally.

--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY


--- In flexcoders@yahoogroups.com, "sn197412" <[EMAIL PROTECTED]>
wrote:
>
> Hi.
>
> I have a question.
> How can I control cache of HTTPService inside FlashPlayer?
>
> I get XML file that is always different contents each request.
> But HTTPService show content that was got at first access.
>
> How should I?
>
> --Shigeru
>
> http://Shigeru-Nakagaki.com
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to