Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1051641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:58:01+00:00 2026-05-16T16:58:01+00:00

Very strange one. Our air application loads multiple swfs, which together make up a

  • 0

Very strange one.

Our air application loads multiple swfs, which together make up a lesson.

If we load them serial, rather than parallel, the code inside all swfs is broken. (There’s a previous stackoverflow q on this issue). If they are loaded in parallel all timeline top level code works.

On Mac, all code works, including deeply nested code inside MCs inside MCs, all the time, regardless of the order in which loading of the swfs completes and inits.

On PC, top level (of each swf timeline) code always works, but deeply nested code is only running dependent on the order in which the loading of the swfs completes and inits.

Referring to the swfs as A,B,C and D, if the init order is A,B,C,D then code in swf A (deeply nested code only) does not function – even stop() is not working. This only happens on PC.

If the swfs init in the order B,A,C,D or even C,B,A,D then everything is as it should be. (It has been a fairly long process identifying this pattern!)

On occasion more than one loaded swf is having problems – I haven’t been able to spot an obvious pattern behind this.

All 4 swfs run fine as stand-alones. All 4 swfs run fine in the Mac version. All 4 swfs should be loading into their own application domain as Air doesn’t permit anything else, and the application domain is also being specified as a new domain each time. There are no detectable domain problems – no errors are being thrown.

Clearly something is borked. I don’t believe the borked thing is in my code, as the application functions perfectly on Mac, and is only broken dependent on load complete order in the PC version, and only deeply nested code is borked.

The items which are borked (MCs with non functioning code) are not exported in the library as symbols.

Has anyone come across this, or anything similar to it?

Some variations I will experiment with:

1) Exporting the symbols for MCs with code in the library so that they load in frame1 (before the init event fires) even though they don’t need this.

2) Not manually specifying the application domain but letting it default (to the same value)

I’ll document my findings here. Can anyone think of anything else worth varying to see if there’s an impact?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:58:01+00:00Added an answer on May 16, 2026 at 4:58 pm

    I think I’ve found the source of the problem.

    The load order and the broken movieclip code are both symptoms of the same problem: the swf has not loaded into memory correctly.

    The broken swfs are usually the largest, and when they INIT ahead of much smaller swfs it’s probably a sign of incomplete loading, hence the correlation with Level-1 code not running. (Level-0 is timeline, level-1 is code inside MCs on that timeline etc).

    Having run the tests hundreds of times I’ve found that this problem occurs approximately 50% of the time in a Parallels-XP virtual PC, and occasionally on a Windows 7 machine that has been down-versioned to windows XP (and hiccups in many other areas). So far it does not happen on a Mac book pro bootcamp XP install, or a stable Vista install.

    I guess it’s a genuine thread crash in the Air app, most likely some sort of memory issue?

    I have not been able to find a way to prevent the problem from happening. Instead I have a work around:

    Each swf contains a MC on the timeline on frame 1 with a line of code with the sole purpose of notifying the application (via the sandbox bridge) that level-1 code has been loaded correctly. If this notification is not received for a particular swf by the time the ‘COMPLETE’ event fires, the swf is deemed to have loaded incorrectly, and is unloaded from memory and loaded again.

    This process is repeated until the load is correct. The files are local so the delay to the user is minimal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have very strange problem, one of our applications is continually querying server by
One of our clients has logged a very strange issue with us- We launched
I am getting a very strange error message at one of our client sites
I am having a very strange requirement, Our client is having one network management
I am seeing a very strange problem on one of my production boxes. We
I spent few hours trying to resolve one very strange issue, but I really
I have a very strange issue with facebook-connect within my PHP-Webapplication. From one day
I have tried to create one-to-many connection, but it works very strange. I suspect
I'm having a very strange issue, it looks like my application can't create file
I have a very strange problem. Under some elusive circumstances I fail to apply

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.