Is ActionScript 3.0 strong enough to finally become the only server-side language?

ActionScript 3.0 is much more powerful than previous versions. Does this mean that I can start using it as my only server-side language? can it connect to the database in the same way as coldfusion or php? What can he not do on the server side?

thanks

+6
flex coldfusion php flash actionscript-3
source share
5 answers

Short answer: NO, ActionScript 3 is the client side, since Flash is a client technology.

Long Answer: Haxe

+6
source share

short answer: YES

use redtamarin

http://code.google.com/p/redtamarin/

redtamarin allows you to run AS3 code on the command line as well as on the server side

you will have your own API for accessing the file system, sockets, standard streams (stdout / stderr / stdin), information about the operating system, etc.

Now it depends on what you need to do on the server side.

If you need to access databases, redtamarin does not have an API for this (in a future version).

But you need to do CGI, start your own HTTP server or socket server, yes, redtamarine can do it all.

change

proof here http://www.burrrn.com

this website is fully programmed with ActionScript 3.0 for the backend

  • he runs the program ABC (ActionScript Bytecode) as CGI
  • processes HTTP verbs GET / POST / PUT / DELETE / etc.
  • It connects to 5 CouchDB databases.
  • all navigation, pages, etc. generated by adding code to templates and then displaying HTML pages
  • it processes form data, makes a RESTful API in JSON / XML, and also performs basic / digest authentication
  • and much more

All this, again, in ActionScript 3.0 with redtamarin as the runtime

so I can definitively answer yes

+4
source share

RedRocket Server is an example of AS3 running on the server side. I don’t know how far the project has come, but you can check it out.

+3
source share

Of course, you can use ActionScript 3 as a server language. Check out www.components4developers.com. We have an n-level tool that allows an application server to host AS3 functionality, Java functionality, C ++ and Delphi functionality on the same server at the same time. Functionality (called services) can make interservice calls (for other services on the application server).

Similarly, they can be called from clients written in C ++, Delphi, PHP, Java, ActionScript 3, pure C, and more.

Regards Kim Madsen

+1
source share

How much it depends to a large extent on your own needs and work.

What you can do is list the requirements that are important to you, such as documentation, ease of debugging, community support, vendor support, ease of deployment, etc. For each language that you want to compare, evaluate how each of these requirements.

If you typed ActionScript 3, you will answer your question :)

However, one of your requirements is to "create server-side code to generate HTML such as PHP," and you will find that ActionScript is a bit overpriced. Although a limited server-side ActionScript is available on Flash Media Server, it is more designed to provide services to Flash client applications than to deliver HTML.

0
source share

All Articles