Skip to main content
Known Participant
May 17, 2013
Question

Fiexed! AIR 3.7 on ios load packaged swf problem

  • May 17, 2013
  • 1 reply
  • 1305 views

I have fixed this, thanks. It's because this:

<mxmlc file="${SOURCE_DIR}/${APP_NAME}.${APP_EXTENSION}"

output="${OUTPUT_DIR}/${APP_NAME}.swf"

static-rsls="true" It's the problem

accessible="true"

configname="air"

debug="${DEBUG_FLAG}"

failonerror="true"

fork="true"

maxmemory="512m">

Hi, nice guys

Thanks for your time to watch my proble!

I'm develop IOS App by AIR 3.7. I have seen this about load swf http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/  . Everything works fine in debug mode, but when I release it , everything is gone.

I'm using AIR 3.7 in GPU renderer mode, and load SWF with some code. I have add LoaderContext.

var l:LoaderContext=new LoaderContext(false, ApplicationDomain.currentDomain);

l.allowCodeImport=true;

When I debug in Fast mode, everything is ok, in Standard mode package get the Errors:

Error occurred while packaging the application:

java.lang.NegativeArraySizeException

          at com.adobe.air.ipa.SWFUtils.read(SWFUtils.java:205)

          at com.adobe.air.ipa.SWFUtils.inspect(SWFUtils.java:250)

          at com.adobe.air.ipa.SWFUtils.<init>(SWFUtils.java:181)

          at com.adobe.air.ipa.SWFSplitter.main(SWFSplitter.java:68)

Exception in thread "main" com.adobe.air.InvalidInputException: Invalid input. Not a valid swf file

          at com.adobe.air.ipa.SWFSplitter.main(SWFSplitter.java:105)

Compilation failed while executing : ADT

When I use a empty project to load a test swf, get the Error:

Main Thread (Suspended: Error: Error #3747: Multiple application domains are not supported on this operating system.)

Anybody know how to fix this ?

Thanks!

This topic has been closed for replies.

1 reply

July 18, 2013

i have same problem. but i did not understand where is this code? where should i look?

"""<mxmlc file="${SOURCE_DIR}/${APP_NAME}.${APP_EXTENSION}"

output="${OUTPUT_DIR}/${APP_NAME}.swf"

static-rsls="true" It's the problem

accessible="true"

configname="air"

debug="${DEBUG_FLAG}"

failonerror="true"

fork="true"

maxmemory="512m">""""