For what it's worth, I've often shared the opinion that AS3 would be an ideal 
server language.  Strongly structured, native events which in my opinion is a 
world better than java.  In my mind the language itself is mature, and elegant 
and the only thing missing is a strong set of database access libs to work as a 
web service.

as far as how you would implement it as a platform, I always pictured that the 
ideal situation would be a worker based solution, using workers for db access 
and a mxml approach for html files, similar to how php can script a page, with 
the mxml components implemented similar to how CakePHP implements an "element". 
 we can use a flag like <?mx ..... ?>

ie:

index.mhtm:
<html>
  <?mx
      this.addHere(
        HeadElementFactory.getHeadFor(this)
     );
  ?>
  ...
</html>

sure this is a fast ugly incomplete example, but what i have defined more clear 
in my head is how we would do the server

inside an mhtm file we can directly call a server component like:

(Server.getService(FacebookService) as 
IFacebookService).getFriends(onFriendsResult);

we would then be able to pass the data to an mhtm element and using jQuery-ish 
selectors inject the data into the dom of the parent page, or better yet invent 
some kind of "anchor" class that we can use in the result handler to build html 
directly on the server, inserting content at a given tagged point of the dom. 
and build out the dom prior to serving the page to the browser.

In terms of mapping a REST (for instance) call,

Server.mapService('{locale}/{controller}/{method}/[named]/{argv}')

again, much, much definition is lacking... but i've given this great thought 
over the years.

I have long thought that AS3 as a language has a UNIQUE advantage over other 
server languages.  The SWF encapsulation is a tricky technical challenge, and 
the creation of a stable and robust web service framework would obviously be a 
big task.

but I just thought that maybe, just maybe, it's worth just throwing this out 
there for anyone who might have similar ideas to build on!

So anyway, hope you all like my fantasy server idea...  maybe i'm full of it... 
maybe i'm actually on to something.  but I've always had this idea kicking 
around and it seems i'm not the only one!

Best Regards!
Dave


> Subject: Re: AS3 on the server
> From: harbs.li...@gmail.com
> Date: Mon, 2 Dec 2013 15:49:26 +0200
> To: dev@flex.apache.org
> 
> Of course, the links on that blog post seem to indicate that it was supposed 
> to have been rolled into Coldfusion.
> 
> So I assume that's a non-starter…
> 
> On Dec 2, 2013, at 3:43 PM, Harbs wrote:
> 
> > It was MAX 2008:
> > http://www.jonnymac.com/blog/2008/11/18/max-2008-sneak-peek-actionscript-3-as-a-server-side-language/
> > 
> > On Dec 2, 2013, at 3:29 PM, jude wrote:
> > 
> >> I'm glad to see there are others out there but from what I remember it was
> >> an Adobe project. I think it was mentioned at an Adobe Max or 360 Flex
> >> conference. The point was that node js is gaining popularity and it's using
> >> JS. I thought if there was something on on the server in AS3 then maybe
> >> node.js could use that.
> >> 
> >> 
> >> On Sun, Dec 1, 2013 at 6:55 AM, Petr Svoboda <wor...@gmail.com> wrote:
> >> 
> >>> or maybe this:
> >>> https://code.google.com/p/redtamarin/wiki/RunningShellScripts
> >>> 
> >>> 
> >>> On Sat, Nov 30, 2013 at 11:06 PM, jude <flexcapaci...@gmail.com> wrote:
> >>> 
> >>>> At one time there was talk about AS3 on the server. With node.js you can
> >>>> use JS on the server. What happened to that project? Is it something can
> >>> be
> >>>> donated to Apache?
> >>>> 
> >>> 
> > 
> 
                                          

Reply via email to