Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/patternpark/as3reflection
- Owner: patternpark
- Created: 2010-03-14T21:16:19.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-04-03T23:58:02.000Z (almost 15 years ago)
- Last Synced: 2024-08-04T05:05:18.959Z (6 months ago)
- Language: ActionScript
- Homepage:
- Size: 132 KB
- Stars: 10
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
- awesome-actionscript-sorted - as3reflection - A Reflection Library for ActionScript 3 (Unsorted / Other API)
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