开发者

Is it possible to start an Adobe Flex app on OS X with just the AIR runtime and the .swf

I know it is possible to run an Adobe Flex compiled .swf from the command-line using the adl command-line tool.

Is there an equivalent way to run a Flex .swf from the command-line using the system installed AIR runtime?

My question applies to OS X, but I'd interested to know about other platforms also.

UPDATE: This question is now somewhat obsolete. As of AIR 3, there is now an 'officially supported' 开发者_运维知识库way to bundle the AIR runtime with an application, using the 'captive runtime' deployment option.


I just tested to run an AIR app without the need to install the application.

Copy the following folders from your Flex SDK

  • bin
  • runtimes\air

as well as all files from your "release" (bin-debug) folder of your project.(Don't build a release build!).

now you can run the application with "adl app.xml".

Though there was AIR runtime installed on the PC I think it should be possible without it too. The original question was a bit different though, maybe it's helpful anyway.


I say No! A SWF is not the same as an AIR application. If you take that SWF's code and compile it into an AIR application; then you should be able to install and run it independent of the browser or any development tools.

I suppose in theory you could create an AIR application where you give it the location of a SWF and use SWFLoader to load the actual SWF. I don't think that is quite what you're after.

There is a stand alone Flash Player which is different from AIR and different from the browser plugin. You can get it here. You can use that to run the SWF as if it were a local app. I wouldn't count on your users having that, though.

You can also load a local SWF in the browser and let the flash player plugin handle it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜