Compiler for actionscript 3 on Linux? - linux

I want to compile a tiny actionscript file. Is there something out there that exists and works?
I tried compiling and installing swftools without success. I also read about Flex SDK on all other posts. However all links are either broken or outdated. Seems like there isn't a package for Linux?

The easiest way to compile and test out ActionScript is to use Wonderfl. It is a web-based Flash IDE that will compile ActionScript and allow you to view and download the resulting SWF.
To develop on your own machine, you can use the Flex SDK, which can be downloaded from Adobe Open Source. This includes mxmlc, the command-line ActionScript compiler. You can find more information on using mxmlc in the Flex documentation. You could also try FB4Linux, a project that ports the Flash Builder IDE to Linux.

checkout redbean
http://redtamarin.com/tools/redbean
it is a command line tool written in AS3 that reuse the asc.jar
to compile AS3 to ABC (ActionScript ByteCode)
download the redtamarin SDK
http://download.redtamarin.com/
it will gives you redshell, redbean, etc. for Linux
alternatively you can also install as3shebang
which will allow you to run AS3 as shell scripts
https://github.com/Corsaair/as3shebang

Related

Unity 3d installing Standard assets for Linux/Ubuntu

I have installed Unity 3d on my Linux system.I have downloaded the Window version of the standard assets (.exe) since there is no option for installation in Linux, I tried installing the Standard assets(.exe) through wine... but im getting an error that unity requires windows 7 or more... But since this is Linux i cant help it.Is there any other way?
You can't expect .exe program to work on Linux out of the Box without the help of visual machine or some other software such as Wine. You don't even need the exe program to install the Standard Assets. You can get it directly from the Asset store from your Linux.
It's recommended that you use other OS at this time because the Linux version of Unity is still in experimental mode and you may have problems with it in the future.
You just download unity using the following link,
Unity 5.1 for Linux
It will contains standard asset also. Don't forget to select standard assets while installing.

How to compile library for multiple platforms

I'm Windows user, and I'm using VS2015 to compile my ะก++ projects for Windows.
But I need to compile my library for multiple platfroms, such as Linux, Android, HTML5, PlayStation 4, iOS.
But I have no any experience with this.
My target is uploading to market plugin for Unreal Engine 4 and I want to see my plugin worked on all platforms.
How to do it? Many of these platforms are based on Unix. Does this mean that compile enough under Linux?
For cross-compilation you have to followed instructions
Also for compiling by Mac and HTML5 you have to clone source code from git. More details here

Compile actionscript to swf file (*not* on an Intel platform computer)

Essentially, my question is the same as Is it possible to compile swf files (Flash) from a linux command line?, except I need to perform the compilation on a machine with an ARM processor. Is there a build of the Flex SDK that can run on ARM machines, or is there some other alternative approach that I can use?
The Flex SDK runs in a Java virtual machine, and even in the Windows version includes shell scripts that are appropriate to launch it on any Unix-like system, so all that is required to use it is to install an appropriate JVM, copy the files from either the Windows or MacOS X distribution of Flex, and change the paths in the configuration files to something appropriate.
There are also alternatives that could be compiled to run as native code (which may be more appropriate for memory-constrained devices like many embedded targets), although these are generally less capable than the official Flex SDK. I looked at "libming" which has an associated actionscript compiler, but this only supports actionscript 2 (I needed actionscript 3). SWFTools has a compiler that supports actionscript 3, but it does not appear to be complete, unfortunately, and lacked support for embedding objects which I required. The same package, however, also has a number of other utilities, including one that can read in a source swf, and rewrite it with an embedded object replaced by the contents of an external file. As this is all I actually needed to do, I determined that doing it this way is more efficient than recompiling the entire actionscript project each time I need a new file.

SWF building through API

I want to build my project by using a custom program. Does the Flash Professional CS5 give support to some API that i can use to build the FLA project from outside the IDE to build the project?
You can use JSFL scripts to send open and build commands to Flash Professional, but you'll need to have it installed, and there is no commandline compiler, each script will be run by the IDE itself.

What tools do I need to develop in ActionScript (in Linux)

I've never developed Flash before but I have a project where I want to use an ActionScript 3 library and I'm not sure what tools I need to start. To further complicate things my main development box is an Ubuntu box. Are there any necessary packages I need to install? Or any .deb's I can buy?
A Windows or Mac box. :-)
just kidding, actually you can use the Flex 3 SDK mentioned above and compile using the CLI. If these AS3 Libraries are indeed Flex libraries (sometimes there are discrepancies between what works in Flex, what works in CS3, and what works in both) then you should be able to import them and use them.
Also, I've never tried it myself, but Flex Builder is based on Eclipse and I believe there's a way to configure Eclipse to compile with the opensource Flex compile if you'd rather work in a graphical IDE.
I have written a blog entry on how to setup Eclipse + AXDT + Flex SDK to prepare your mxml/actionscript (as3) development environment on Linux. If you are interested, you can have a look here:
http://netpatia.blogspot.com/2009/09/flash-development-on-linux.html
It looks like the Flex 3 sdk (http://www.adobe.com/products/flex/flexdownloads/index.html) is a good place to start. Any other suggestions?
I've had very good experiences with Sprouts. It is a ruby wrapper for the Flex SDK that allows building with Rake and easily hooks into continuous integration engines.
http://www.projectsprouts.com/
I've been using Flex Builder Linux recently and can recommend it. It's straightforward to get going and, for an alpha, is stable and has all the features you could want.
JetBrains IntelliJ IDEA (not free)
http://www.jetbrains.com/idea/features/flex_ide.html
JetBrains Astella (free but beta)
http://blog.jetbrains.com/astella/
http://confluence.jetbrains.com/display/AS/Astella+EAP
Project Sprouts is probably going to be the quickest way to get up and running with ActionScript or Flex development on any operating system, but especially on Linux.
You'll need to install Ruby and RubyGems, other than that, it's a couple of terminal commands and you should have an application building and displaying.
You should be able to build ActionScript 2, ActionScript 3, AIR or Flex Projects without any manual system configuration at all. Because Sprouts is inherently a CLI application, you can use any development environment you prefer and initiate your builds with simple commands like:
Compile and run debug build
rake debug
Compile and run test harness
rake test
Compile an optimized build for deployment
rake deploy
Compile your application as a library
rake swc
Generate documentation for your application
rake doc
Of course you can easily create or customize your build scripts using Rake, an amazingly simple and flexible build script engine.
Like Rails, Sprouts also comes standard with code generators that automatically create classes, test cases, test suites and even MXML components.
Unlike many open-source projects, Sprouts includes some pretty extensive and detailed documentation.
Let us know what you think.
http://projectsprouts.org
You could try Haxe. It isn't really ActionScript but it is very similar (and you could also compile to the server side or JavaScript).
While FlexBuilder is good, it lacks many of the features that Powerflasher includes in FDT (Flash Developer Tools) for Eclipse. FlexBuilder is missing things like Templates, better formatting, auto-fixing of warnings and errors. It runs on Eclipse making it cross platform, but be warned that they do not test in a linux environment (however people have had no significant complaints).
See all the features here: http://solutions.powerflasher.com/index.php?id=136#feature_03
I use the Flex SDK, Emacs (Sub your editor of choice) and Ant as my build tool. I blogged about how to get everything set up here:
http://blog.apterainc.com/software/setting-up-a-flex-development-enviroment-in-gnulinux/
Adobe has an free alpha release of FlexBuilder for Linux, I thought it was quite unstable when editing MXML files, but if your doing strict actionscript work, you may find it useful. you can get that here:
http://labs.adobe.com/technologies/flex/flexbuilder_linux/
You might like to have a look at MTASC
http://www.mtasc.org/
An open source action script compiler. I've been meaning to get around to looking at it but not had the chance yet. Heard great things about it tho.
Hopefully when I do get around to it and have questions you'll be around to answer them

Resources