Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/kemsky/RObject

Fast reflection for ActionScript
https://github.com/kemsky/RObject

actionscript adobe-air adobe-flash adobe-flex as3 performance reflection

Last synced: 4 months ago
JSON representation

Fast reflection for ActionScript

Lists

README

        

RObject
=======

Fast reflection for ActionScript, based on describeTypeJSON function

See http://tillschneidereit.net/2009/11/22/improved-reflection-support-in-flash-player-10-1/

The main limitation of the `avmplus.describeTypeJSON` function is that it can only be applied to instances.
RObject internally uses describeTypeJSON function where possible and falls back to parsing XML output of `flash.utils.describeType`
function, providing compatible object descriptor.

Usage

```ActionScript
var flags:int = R.VARIABLES | R.METADATA | R.TRAITS;
var descriptor:RObject = R.describe(test, flags);
```