Skip to main content
Participant
July 11, 2013
Question

problem in loading secondary swf

  • July 11, 2013
  • 1 reply
  • 1133 views

Hi,

I am trying load a font as swf for IOS application.i tried load to it from both application directory and application storage directory.but it always throws the following error.

Fast debuging mode everything works fine.

Air Sdk 3.8

Flash Builder 4.7

swf version 20

Error 3747: Multiple application domains are not supported on the operating system.

Code i used to load the swf.

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

var loader:Loader = new Loader();

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fontLoadComplete);

loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);

var strPath:String = "assets/fonts/font.swf"

var urlReq: URLRequest = new URLRequest();

urlReq = strPath;

loader.load(urlReq, context);

please correct me if i am doing any thing wrong in loading swf with as3 code.

Regards,

Saravanan

This topic has been closed for replies.

1 reply

Adobe Employee
July 11, 2013
SaravansAuthor
Participant
July 11, 2013

Hi Nimitja,

I tried the same but still i got the same error.previously i used load the swf files without code in it.now only change i saw in the post to load the swf with code is LoaderContent.please check out my code in the above post.

Regards,

Saravanan

Adobe Employee
July 11, 2013

Thanks Saravanan, I am looking at it and could you please share sample project so that I can check the .swfs you are using or any other problem because this should have been worked.

Regards,

Nimit