This content has been marked as final. Show 3 replies
If you have changing information that you display inside a swf then normally you would get the swf to make requests periodically to avoid the html page refreshes.
You would normally have the swf request data in either name/value pair encoded format (LoadVars) or XML (XML class) as an example.
In flash/actionscript you can append a random or timer based querystring parameter to the url that returns the updates to avoid browser cacheing.
e.g. something like the following in actionscript
the problem is that I dont use any xml, php or external files. I just want the swfs to be reloaded from the original file from the server every time someone re-enders the page.
Do you mean that the 'news' or 'updates' are actually made to the swf file itself?
That would be unusual for a data driven site although its not impossible. There's even a reasonably 'new' data exchange format based on a simplified swf format that is used for loading data. But it doesn't sound like that's what you're doing.. it seems like you want to reload the original swf itself. I hope thats via some CMS or something that's generating the swf files. Its seems impractical for a 'news' type site otherwise.
Either way I imagine you can reload the swf into the _root level. You might need to use the same type of anti-cacheing approach as before.
How often you do that... well that would depend on how often you think it would change. AFAIK there's no way to know if the file on the server has physically changed without polling the server separately e.g. via LoadVars .