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

Issues with Air 20 Testing, Child SWF's root Sprite can't be unloaded.

New Here ,
Jan 16, 2016 Jan 16, 2016

Copy link to clipboard

Copied

Hi all,

I got a problem.

when I set applicationDomain = ApplicationDomain.currentDomain to loader.

And The child SWF's root Sprite had a Class,but parent SWF without this Class.

Do Repeat reloading and watching profiler.

Profiler indicates the number of SWF's root Sprite which is Continuously rising.

This represents a memory leak.

81 times to reload & this profile is shown below.

All other memory can be controlled well, except for SWF's root Sprite & related objects.

123.jpg

this behavior is normal?

Or Is there any way to solve?

(This testing is on desktop platform with Air 20  & releas mode.)

The same test is good working for setting applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain).

TOPICS
Development

Views

636

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
New Here ,
Jan 25, 2016 Jan 25, 2016

Copy link to clipboard

Copied

Has any staff checked this case?

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
Community Beginner ,
Jan 26, 2016 Jan 26, 2016

Copy link to clipboard

Copied

Hi, I usually never add something to the root of loaded SWFs as they seems to be played right after the load complete even if you don't use them.

I prefer keep the root empty and export all needed clips for actionscript with linkage name, this way I can use the objects I want when I want.

After that maybe you have other errors as I see you have lot of Loader instance to.

Can you post the code you use to load and unload your swfs ?

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
Advocate ,
Jan 26, 2016 Jan 26, 2016

Copy link to clipboard

Copied

The problem is (to my knowledge) that you can not give linkage names on iOS for remotely hosted swf files, so putting the content on the root is the only way to remotely load graphical assets into the application. So this might indeed pose a 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
Community Beginner ,
Jan 26, 2016 Jan 26, 2016

Copy link to clipboard

Copied

As I see dai1231 don't use IOS platform, and it's possible to strip swfs when compiling for IOS.

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
New Here ,
Apr 24, 2016 Apr 24, 2016

Copy link to clipboard

Copied

LATEST

This practice is introduced to cross-platform(Including ios that is right).

But Now my alternative is never to destroy them.

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