Skip to main content
May 31, 2012
Answered

Display external swf?

  • May 31, 2012
  • 1 reply
  • 738 views

Hello Everyone

I am new to Adobe AIR development.

I have following code to display external SWF on iPad. I have not tested it on simulator. Will it actually work on the device? Has anyone displayed external swf files on iOS?

I am using Flahsbuilder 4.6 for development. I created "New ActionScript Mobile Project".

var request:URLRequest = new URLRequest("http://<domainname>/test3.swf");

                              loader = new Loader()

                              loader.load(request);

Thanks

This topic has been closed for replies.
Correct answer Colin Holgate

AIR is Flash, so Flash apps do work on iOS. It's just that you can't run swfs inside Safari.

1 reply

Colin Holgate
Inspiring
May 31, 2012

It should work ok if the swf you are loading has no ActionScript in it.

May 31, 2012

Hi Colin

Thanks for the quick reply.

The out of the project is .swf.

I am wondering, if the app will actually run on iOS, since iOS does not support flash?

Thanks

Colin Holgate
Colin HolgateCorrect answer
Inspiring
May 31, 2012

AIR is Flash, so Flash apps do work on iOS. It's just that you can't run swfs inside Safari.