[haXe] Avoiding cached content SWHX
Edwin van Rijkom
lists at screenweaver.com
Tue Feb 20 17:32:11 CET 2007
Nicolas Cannasse wrote:
>>> SWHX doesn't cache content. Maybe the Flash Player does.
>>> You can override the swhx.Flash.getURL method in order to define
>>> your own behavior (for example by stripping the ?nocache part before
>>> loading the file).
>>>
>>>
>>
>> No,this is a swf being loaded form within the main swhx swf (with the
>> loader class). Are you aware if the instance of the flash player
>> used by swhx would create its own cache someplace - perhaps i can
>> delete the files from there...
>
> All files loaded by the Flash Player are handled through the
> swhx.Flash.getURL method, so that you can define your own security and
> caching. Try to add traces() to see if the request is made several
> times by the Flash player, or if it has an internal cache. This cache
> might be in memory.
>
> Nicolas
>
If this cache indeed turns out to be Flash's own, you should be able to
revert to the "?nocache="+Math.random" trick you described earlier, but
then un-mangle the URL in an override on the swhx.Flash.getURL method
before passing it to the original method.
Cheers,
Edwin
More information about the Haxe
mailing list