I am thinking of creating an online application using an XML file as it's primary data source. The XML file on the web server will be refreshed via FTP a few times a week. Will users get the latest version of the XML file each time they visit the page, or will they use what is already in their cache? I want to make sure that they get the latest version each time. Is there a way I can do that? Thanks Mathias
here is another option that i know works.. the only problem is i dont really know how to implement it.. so if someone can tell me that you would help 2 people at once.. when you call the xml file you can give it a random number (usually the time and date) after the file name so each time the person loads the flash file they will load a fresh version of the xml file. the code to do this is myXml.load("somefile.xml?nocache=" + newDate().getTime()); that is the code if you are using actionscript, i am hopeing someone can show me how to use this trick using the xmlconnector data component because i am not that good with actionscript and the data components make is sooooo much easier for us designers..
can this be used in conjunction with the xml connector component? do i just type that in on the same frame that i put the xml connector and just leave the URL field in the property inspector blank.. sorry for all the ?'s .. i just was curious were to insert the code..
The following worked for me // load XML //a random number at the end of the URL to prevent caching: var dynamicURL:String = "http://wsp709226/menu1.xml?noCache=" + ( new Date().getTime() ); menu_xml.load(dynamicURL);
Don't see what you're looking for? Try a search.
|