[Red5] Re d5 has Actionscript support?
Charlie Hubbard
charlie.hubbard at coreconcept.com
Mon Jun 2 07:50:21 PDT 2008
ActionScript3 is exactly like Java. In fact I have a theory that
Adobe secretly wants a language like Java, but they don't want to
build the Java stack because of the fear of Sun forcing them to do
something they don't want to do. Like participate in JCP, open their
APIs to other vendors, or something like that. If you look at how
Actionscript has evolved it was originally more Javascript like and
they choose to radically change it towards a more Java-like
language. They have more in common than they don't.
Things they both have:
They both have classes
They both have the concept of extends
They both have the concept of interface
They both have static members
Things that are only slightly different, but really close to each other:
Java is statically typed
ActionScript is opt in typing, but it's clear that Adobe expects you
to use static typing
Java has static members
Actionscript has static members
Java has true reflection (runtime typing)
Actionscript doesn't have anything close to true runtime typing
Java has method overloading
Actionscript does not, but you can approximate with tricks
Java has multiple constructors
Actionscript does not, but you can approximate with tricks
Things they differ on:
Java has Abstract Classes
Actionscript does not have Abstract Classes
Java doesn't have first class functions
Actionscript has first class functions
Actionscript has runtime variable construction (so new bitmapClass()
where bitmapClass is a variable pointing to a class)
Java you have to use clever design patterns to do this
I just can't imaging the learning curve being that steep between
these two languages. I came from the other direction, and it wasn't
hard. The main compliant I had was Flexbuilder IDE stinks when
compared against great IDE's like IntelliJ, and that the Flex
component library (which is not Actionscipt) does not follow
principle of least surprise. The Flex component library was my main
hurdle which you wouldn't have in a Server Side situation.
Charlie
On May 30, 2008, at 5:24 PM, Tyler Kocheran wrote:
> *very interested*
> To this point, Java has been the learning curve for me. It would be
> totally rad to see Red5 ported to AS3.
>
> On Tue, May 27, 2008 at 8:31 AM, Dominick Accattato
> <daccattato at gmail.com> wrote:
> correct, I meant SSAS support. sorry for the confusion. I'll try
> to get a screencast up, but I can't atm.
>
>
> On Tue, May 27, 2008 at 4:27 AM, terbooter
> <dmitry.zinovyev at gmail.com> wrote:
>
> AS1 not suitable for server-side language
> he has no such classes as Client etc
> But his server analog SSAS (Server-side AS) has.
>
> And how do you plan made AS3 suitable for server-side?
> I mean could you show part of psevdo - code in AS3?
>
>
> Dominick Accattato wrote:
> >
> > I'm going to start a new thread on this one! I was also allowed
> to show
> > off
> > a very cool feature that will be a part of Red5 soon! Thanks to
> David
> > Foley
> > for building the initial actionscript interpreter layer! I was
> able to
> > demonstrate a Jedai Application that ran both agains a Java
> serverside and
> > an Actionscript serverside. This is obviously a very big deal
> for all the
> > groups out there that don't know how to port there current FMS
> code to
> > Red5. Currently David has added support for AS1, but we plan on
> adding
> > AS3
> > support rapidly afterwards. At this point, you could do all
> sorts of cool
> > stuff like have an AS3 model that lives both on the client and on
> the
> > server
> > ;). Additionally, Chris Allen pointed out how AS3 could tap into
> all the
> > 3rd party libraries that we as Java developers take for granted.
> Think
> > about this.... AS3 using hibernate, JDBC, etc... How cool is that!!!
> >
> > --
> > Dominick Accattato, CTO
> > Infrared5 Inc.
> > www.infrared5.com
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Red5-has-
> Actionscript-support--tp17481779p17485501.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> --
> Dominick Accattato, CTO
> Infrared5 Inc.
> www.infrared5.com
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> And do this, knowing the time, that now it is high time to awake
> out of sleep;
> for now our salvation is nearer than when we first believed.
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080602/d27814c1/attachment-0001.html
More information about the Red5
mailing list