Skip to main content
vakhtangi
Inspiring
November 21, 2014
Question

AIR load swf cash problem

  • November 21, 2014
  • 1 reply
  • 435 views

hi folks

I am building android app.

I have a problem with loading several .swfs cache. this swf-s have almost same package and class structure/ names.

App stores ActionScript and assets of first loaded swf and when i try to load second swf, anyway it loads first swf.

I used

request.cacheResponse = false;

request.useCache = false;

loader.unload();

loader.unloadAndStop();

loader = null;

but no luck, any solutions, suggestions?

thanks

This topic has been closed for replies.

1 reply

natural_criticB837
Legend
November 25, 2014

Did you try adding a cachebuster to the url? Like "my.swf?v=" + Math.random()

Just to make sure that caching is your actual problem.

vakhtangi
vakhtangiAuthor
Inspiring
November 25, 2014

I solved problem, swfs that I loading in app have same package names and classes, I changed package names for each swf and everything works fine.

Main app stores in cash loaded swf-s AS code, I have't found solution how to clean this cash