是否有可能创建一个“命令行”的SWF? [英] Is it possible to create a 'command line' swf?

查看:223
本文介绍了是否有可能创建一个“命令行”的SWF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够写一个.swf文件,该文件是可运行一个命令行程序。换句话说,我将能够创建可与标准输入和标准输出交互动作类,并可能然后直接在命令行中执行该瑞士法郎。

I'd like to be able to write a .swf file that is runnable as a command line app. In other words, I would be able to create actionscript classes which can interact with stdin and stdout, and could then execute that .swf directly in the command line.

我怀疑这是不是真的有可能。谁能证实?

I suspect that this isn't really possible. Can anyone confirm that?

编辑: 一对夫妇的答案指出,使用Flash命令行的工作可能不是最好的选择。我完全同意在大多数情况下。我问这个的原因是因为我想要做一些AS3 code生成,并反映在运行时内AS3类会比解析code或步行的ASDoc的生产中介XML更容易。我做的XML方法现在在Ruby中,但很想有一个清洁的解决方案!

A couple of the answers pointed out that using Flash for command line work probably isn't the best choice. I wholeheartedly agree in most situations. The reason I am asking about this is because I want to do some AS3 code generation, and reflecting on AS3 classes within the runtime would be easier than parsing the code or walking the intermediary XML that asdoc produces. I'm doing the XML approach now in Ruby, but would love to have a cleaner solution!

推荐答案

都能跟得上 - 不可能的。你能做的最好的是一个独立的应用程序(可以在Flash或Flash Player中的投影机版本进行,可从Adobe网站)。

Nope--not possible. The best you can do is a standalone app (which can be made in Flash or with a Projector version of flash player, available from the Adobe website).

和你为什么会想 - Flash是因为伟大的GUI功能真棒。有很多是在命令行(Python或Ruby或者,上帝保佑,即使是Perl)

And why would you want to--Flash is awesome because of the great GUI capabilities. There are plenty of other programming languages that are much better suited for the command line (Python or Ruby or, god forbid, even Perl)

这篇关于是否有可能创建一个“命令行”的SWF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆