Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Latest commit

 

History

History
59 lines (34 loc) · 1.8 KB

README.md

File metadata and controls

59 lines (34 loc) · 1.8 KB

Overview

nexuslib is a collection of Actionscript libraries. Enums, Random, Reflection, Serialization, Crypto, Audio system, HTTP requests.

The reflection library specifically is production ready and is currently in-use in production environments.

Getting Started

Download the latest release, or clone the repo and reference in your project.

External Dependencies

None

blooddy-crypto is statically linked with nexuslib.swc

API Docs

http://docs.nexussays.com/nexuslib/index.html

Components

Enum & EnumSet

Since AS3 doesn't provide a native enum structure you can use this to ceate one thusly:

public class MyEnum extends Enum
{
   public static const Enum1 : MyEnum = new MyEnum();
   public static const Enum2 : MyEnum = new MyEnum();

   public static function get All():EnumSet { return Enum.values(MyEnum); }
}

For more examples of correct and incorrect Enum usage, see the mocks in the test directory

Reflection & Serialization

nexus.utils.reflection, nexus.utils.serialization

Reflection & serialization library. Features deterministic JSON de/serialization, deserializing directly to typed AS objects, a structured reflection class heirarchy, and more. Full support for Application Domains and namespaces.

Audio

nexus.audio

Manage playing sounds one or in loops, controlling volume and sound effects (e.g., fading, panning). Sounds can be loaded from embedded resources, remote mp3s, and local files. Separate sound channels and volume controls for music, ambient sounds, voices, ui effects, and sound effects.

Crypto & security

nexus.security.crypto

Currently provides an HMAC class and some utilities.

Version control (Git)

nexus.vcs.git

see: https://github.com/nexussays/git-as3