Is there a way to run a swf file through the terminal?
Like the php -f file.php function?
Join Stack Overflow to learn, share knowledge, and build your career.
|
|
|||||
|
|
Sort of. You can open the Standalone Flash Player application and pass a swf file as an argument, something like:
You might find as3term interesting. If you look through the source code, you'll notice the compiled swf gets loaded, but not added to the display list, still, the whole application as it's root is a swf. Note that you will always have a window open. For example, any Document/Main as3 class extends Sprite, which is a displayable object, kind of like extending Applet in Java - you will end up with something on screen. You can't execute a swf just as text like a typical command line application AFAIK. Speaking of Java, Joa Ebert's JITB project is quite impressive. I'm not sure how feasible it is, but maybe it would be possible to use/modify the project to run actionscript bytecode without a GUI. Still, it doesn't look like something easy/straightforward. What exactly do you need done in actionscript that doesn't need an interface ? Maybe the same functionality can be achieved with a script you can run from the command line (like php,python, etc.) ? |
|||||||||||||
|
|
|
||||
|
|