Skip to main content
Participating Frequently
April 25, 2013
Question

how Air 3.7 load pure graphic swfs freely without using AOT mode

  • April 25, 2013
  • 2 replies
  • 2453 views

Hi Nimisha1,

I made an ios app which loaded pure graphics swfs from remote server. I cannot use AOT mode because the new pure graphics swfs increasing every day.   AIR 3.5 works very well, but I wonder how to make it work in the same way in AIR 3.7?

thanks in advance,

Jackie

This topic has been closed for replies.

2 replies

Participating Frequently
June 4, 2013

have you READ the  Adobe official Document???

IF YOU ARE  LOAD PURE graphics SWF , Without ANY AS/ABC code, 

YOU DON'T NEED  CALL ADT 

you  only need  ,and  you  MUST define LoaderContex

as:

ldrContext=new LoaderContext(false,ApplicationDomain.currentDomain,null);

loader.load(urlRequest, ldrContext);

IT'S JUST FINE. 

Nimisha1
Participating Frequently
April 25, 2013

Hi Jackie,

You can load pure graphics swfs from remote server in AOT mode with AIR 3.7 like you have done with AIR 3.5 as the behavior has not changed for the pure graphics SWFs. What error are you getting or what problem are you facing? Please provide some more details.

Also there is a new feature introduced  in AIR 3.7 for loading SWFs(which contain ActionScript code) remotely and you can find details for same @http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air-apps-on-ios/.

Thanks,

Nimisha

chiangwenAuthor
Participating Frequently
April 25, 2013

Thanks, Nimisha.

in AOT mode I  have to create asset file before I publish the ios app. but the problem is I don't know how many swf files and what the swf file name is when I build the ios app. I want all the pure graphics swfs  to be loaded dynamically into  my app based on one xml file which is created by server on the fly.

Loading a swf from remote server in Air 3.7 must be in AOT mode? How to  load a pure graphics swf from remote server NOT using  AOT mode in Air 3.7?

thanks,

Jackie

Nimisha1
Participating Frequently
April 28, 2013

Loading a swf from remote server in Air 3.7 must be in AOT mode?

I think i should first make some terms clear to you:

AOT mode here applies to the target ipa-app-store which is supposed to published at Apple App Store.(And offcourse for testing purposes there are ipa-ad-hoc, ipa-test and ipa-debug and these all create IPA in AOT mode).

Till AIR 3.5 on iOS - It was not possible to load child SWFs(containing ABC code) neither locally or remotely. But yes pure assets SWFs can be loaded remotely and locally as well.

In AIR 3.6 on iOS- Loading of child SWFs(containing ABC code) locally was made possible. More info@  http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/

And behavior for loading pure asset SWFs remain unchanged.

In AIR 3.7 on iOS-

Loading of child SWFs(containing ABC code) remotely was made possible. More info @ http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air-apps-on-ios/

And behavior for loading pure asset SWFs remain unchanged.


But in the following screenshot I can see that publishing in AIR 3.7 is getting failed and this must be happening because some of your child SWFs must be containing ABC code and that is not getting compiled properly.

Can you please narrow down which SWF(s) is creating this problem?