Skip to main content
Lorenzo Nuvoletta
Inspiring
January 28, 2013
Pregunta

What happened to local File loading?

  • January 28, 2013
  • 4 respuestas
  • 1747 visualizaciones

Local file loading in iOS seems to be broken in 3.6 when testing in adHoc mode.

Error says:

[Fault] exception, information=Error: Error #3764: Reloading a SWF is not supported on this operating system.

I just found a thread that talks about the same issue: http://forums.adobe.com/message/4920638

I really hope this is a bug and not a feature...

On this blog post http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/ you can read:

Loader.unload() & Loader.unloadAndStop()

The behavior of Loader.unload() and Loader.unloadAndStop() on iOS is below. When either of these functions is called the following will happen:

  1. The contentLoaderInfo property of the Loader object will become null
  2. Any assets that are loaded with the secondary SWF will be unloaded.
  3. Any references to AS classes in the loaded SWF remain in memory, and new objects of those AS classes can be created. This is different from the behavior on other platforms.

SWF Reloading

In AIR apps on iOS running in AOT mode there is a problem when a SWF is reloaded. Therefore reloading a SWF will not be allowed for AIR apps for iOS in AOT mode and attempting to do so will result in following error:

Error 3764: Reloading a SWF is not supported on this operating system

Note:If a SWF is accessed using different URLs like different paths referring to the same SWF, or using app:// and app-storage:// URI schemes to access the same SWF, then the two SWFs would be considered different and the SWF will be re-loaded. However, the behavior in such cases would be undefined.

So you can unload a swf but you can never load it back?

Este tema ha sido cerrado para respuestas.

4 respuestas

Participating Frequently
February 14, 2013

this is also a problem for us. Is there no work-around for this? Makes local storage of swfs useless as it is

Participating Frequently
April 1, 2013

I was able to re-load multiple swf from local disk because they do not contain code. If it contains code you can only load it once and never unload it. Still, you should try the AIR 3.7 workflow proposed at: http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air-apps-on-ios/. It seems that if yoy package the app by stripping the code from the swf assets and hosting the file on a server, then downloaded to disk should allow reloading of swf assets with code.  I might have to use this workflow, a small hinderance is that you will have to compile the app from adt tool.

Nimisha1
Participating Frequently
April 2, 2013

Hi jd.perez-diaz,

As you have said that "It seems that if yoy package the app by stripping the code from the swf assets and hosting the file on a server, then downloaded to disk should allow reloading of swf assets with code."

so i just want to make clear that :

When you use feature "External SWF hosting of Secondary SWFs on iOS " then SWFs which get generated are stripped SWFs not the pure asset SWFs.

Please don't get confused between stripped SWFs and pure asset SWFs; they are completely different.

Reloading of only pure asset SWFs is allowed and will not work for the stripped SWFs.

Thanks,

Nimisha