[haXe] Loader Issue

lee at designrealm.co.uk lee at designrealm.co.uk
Thu Apr 5 15:58:12 CEST 2007


Hi Nicolas,

Is it possible you could show a quick example of using  
loader.backupCache and how to then restore that cache?  I've tried  
setting a modules cache after it was loaded using:

myLoader.setCache( "data/somefile.n", null );

as I wanted to clear that particular items from the cache hash  
altogether, but this didn't work.

I've also tried:

var cache = myLoader.backupCache();

... load module here ...

myLoader.backupCache( cache );

but I don't think it's supposed to be used this way ;-)  I might just  
be being blonde, but the backing up a cache and restoring it isn't  
immediately obvious.

Thanks,
Lee






More information about the Haxe mailing list