I second that, only I tend to pass it in via FlashVars so I can leave it to
cache if I want to.

Adrian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Steven
Sacks | BLITZ
Sent: 30 March 2007 01:33
To: [email protected]
Subject: RE: [Flashcoders] SWF Only Loads Once


XML almost always caches.  Use a noCache param.


var path:String = "some.xml";
var d:Date = new Date();
var p:String = (path.indexOf("?") > -1) ? "&noCache=" : "?noCache=";
var noCache:String = (_root._url.indexOf("http://";) > -1) ? p +
d.getTime() : "";
var xmlPath:String = path + noCache;
myXML.load(xmlPath);

_______________________________________________
[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