Highlighted

AIR load swf cash problem

Explorer ,
Nov 21, 2014

Copy link to clipboard

Copied

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

TOPICS
Development

Views

255

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

AIR load swf cash problem

Explorer ,
Nov 21, 2014

Copy link to clipboard

Copied

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

TOPICS
Development

Views

256

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 21, 2014 0
Advocate ,
Nov 25, 2014

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 25, 2014 0
Explorer ,
Nov 25, 2014

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 25, 2014 0