• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AIR load swf cash problem

Explorer ,
Nov 21, 2014 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

354

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
community guidelines
Advocate ,
Nov 25, 2014 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.

Votes

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
community guidelines
Explorer ,
Nov 25, 2014 Nov 25, 2014

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines