Skip to content
Zwetan Kjukov edited this page Feb 3, 2017 · 3 revisions

An overview of all the Redtamarin libraries.

Embedded

An embedded library is something that is available by default in the Redtamarin runtimes (redshell, redshell_d and redshell_dd).

You don't need to load an eternal ABC or SWF file, you'll get the documentation in the general Redtamarin asdoc and get the syntax completion when using redtamarin.swc.

Any tools based on redshell like our tools like redbean, as3shebang, etc. benefits from those embedded libraries, and if you build your own tools you can benefit from those too.

clib

native / cross-platform / sources

The "C library"
based on the C standard library which

[...] is the standard library for the C programming language,
as specified in the ANSI C standard.

and POSIX (Portable Operating System Interface) which

[...] is a family of standards specified by the IEEE Computer Society for maintaining compatibility
between operating systems. POSIX defines the application programming interface (API),
along with command line shells and utility interfaces, for software compatibility with
variants of Unix and other operating systems.

We took the different functions, structures, constants, macros, etc.
that you can find for ISO C / ANSI C and POSIX, and we
implemented a good part of them (not all of them) for ActionScript 3.0.

It is a mix of native definitions and AS3 code structure
see the sources for yourself.

It is more or less "standard", a lot of things have been adapted to work in the AS3 logic, but still, if you know C or want to port some C functions in AS3.

This clib is embedded in the redshell runtime so you will have access to it without the need to load an ABC library.

rnlib

native / cross-platform / sources

The Redtamarin Native Library (RNL) is a cross-platform native API.

This library is similar to the "Flash API" or "AIR API" but in the Redtamarin world (eg. the command-line).

This library is defined in the shell package and define classes like Program, Domain, FileSystem, OperatingSystem, etc.

This rnlib is embedded in the redshell runtime so you will have access to it without the need to load an external ABC library.

avmglue

native / cross-platform / sources

This is our own implementation of the Flash Platform API, eg. the "Flash API" and the "AIR API".

This library is defined in the flash package and define classes based on their official definitions and signatures (from the Flash/AIR documentation).

This avmglue is embedded in the redshell runtime so you will have access to it without the need to load an ABC library.

External

An external library is something that is not present by default in Redtamarin, but that have been built with the libraries, API and features available to the Redtamarin runtimes.

betalib

actionscript-3 / sources

The beta library is an incubator for ActionScript 3.0 source code to be embedded in future releases of the redtamarin binaries (eg. the redshell).

This betalib once stable enough and tested is embedded in the redshell runtime so you will have access to it without the need to load an ABC library.

ansilib

actionscript-3 / sources

TODO

httplib

actionscript-3 / sources

TODO

markdownlib

actionscript-3 / sources

TODO

uaparserlib

actionscript-3 / sources

TODO

clilib

actionscript-3 / sources

Command-line utilities library.

In general classes and other helpers to build CLI tools.

Hybrid

An hybrid library is an ActionScript 3.0 project build in such a way that you can use it in any AVM2 runtimes: Flash, Adobe AIR and Redtamarin.

If your source code is mainly using AS3 builtins (String, Object, ByteArray, etc.) it will in most case "by default" work with any AVM2 runtimes.

If you use a small set of Flash and/or Adobe AIR API, more likely you will be able to abstract those and provide an implementation that also works with Redtamarin.

If you use a big set of Flash and/or Adobe AIR API, or if your library rely a lot on GUI and rendering like the display list and Stage3D, or if your library depends a lot on Events, etc. it is unlikely that providing an implementation for Redtamarin will be easy (not impossible, but definitively not easy).

The AVMGlue library mentioned above have the goal to provide API compatibility with the Flash and/or Adobe AIR API, but is a long process and will take some time to be completed.

as3-universal-analytics

actionscript-3 / sources

Google Universal Analytics for AS3.

Clone this wiki locally