Search  

XML CACHE PROBLEM

HomeForumsHelp Neededxml cache problem
Default-profile hyperdesign
5 posts

i realise this has been covered over and over again, i have read various posts and still cant seem to find the solution..

i am using the full xml website v3 and it continuously persists with caching the xml file..

let me get this right, i open the fla file, go to actions and go to the section that calls on the xml file.. then add randNum=Math.floor(Math.random()*1000000); to the file name..

i tried this over and over again and i cant get it to work – even online ?

is it just main.fla i should be playing with??

here is a link to the fla file www.hyperdesign.com.au/main.zip

any help would be GREATLY appreciated

Posted about 1 month ago
57948 agraddy
20 posts

After you add the code, you will need to create a new SWF file by publishing the movie – if you are on windows, just press ctrl+enter when you have the FLA open – you then need to upload the swf to your server (if you are doing that, then I’m not sure what else to tell you – I didn’t look at the FLA ).

Posted about 1 month ago
Default-profile hyperdesign
5 posts

yeah did that, this message come up

” this type of quotation mark is not allowed in actionscript. please change it to a standard(straight) double quote”

Posted about 1 month ago
57948 agraddy
20 posts

You probably copied the text directly from the web – websites have tendency to alter quotes to be angled – all you need to do is replace the angled quotes with normal quotes (highlight the angled quote and then press the double quote key on your keyboard).

Posted about 1 month ago
Default-profile hyperdesign
5 posts

that seems to have fixed the error message, but am still having cache issues…

Posted about 1 month ago
54138 Pdesignx
445 posts
Exclusive author Author was featured Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

open the related .fla files and add a time stamp at the end of the xml file path… so it won’t be cached…

for example

myXML.load("xmlNews/news.xml");

should be

myXML.load("xmlNews/news.xml?nocache=" + new Date().getTime());

best wishes…

Posted about 1 month ago
44491 Chuckanucka
984 posts
Exclusive author Author was featured Referred at least one person Sold between 50 000 and 100 000 dollars Bought between 1 and 9 items

problem with that is is you file will stop working locally.

try this:

http://www.shockwave-india.com/blog/?archive=2004_01_01_archive.xml#107303703281432223

Posted about 1 month ago
54138 Pdesignx
445 posts
Exclusive author Author was featured Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

and i think you sould not make public the .fla file like that…

Posted about 1 month ago
50143 MSFX
297 posts
Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

yeah this is a pain in the ass problem, way I do it is the same as Pdesignx but due to the working locally problem for every call to an external URL such as XML , CSS or SWF I do this:

if(addCacheKiller) { url =”blahblahblah” + ”?cacheKiller=” + date.getTime(); } else { url = “blahblahblah”; }

Do you guys include this sort of thing in your flashden files cause it will obviously not work on the users system unless they test server side/apache and many wont know how to…

Posted about 1 month ago
50143 MSFX
297 posts
Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

how can I get code to display properly, there was line breaks in that :(

Posted about 1 month ago