Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/patternpark/as3reflection

A Reflection Library for ActionScript 3
https://github.com/patternpark/as3reflection

Last synced: 2 months ago
JSON representation

A Reflection Library for ActionScript 3

Awesome Lists containing this project

README

        

h1. ActionScript 3 Reflection Library

This library was created in order to simplify the interface to flash.utils.describeType.

h1. Usage

Check out the p2.reflect.Reflection class to see the methods that are available.

Here is a quick example:

import p2.reflect.Reflection;

var reflection:Reflection = Reflection.create("flash.display.Sprite");
trace(">> has addChild method?: " + reflection.hasMethod("addChild")); // true
trace(">> has foo method?: " + reflection.hasMethod("foo")); // false