Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bytetalking/ClsCreator
An ActionScript code generate lib
https://github.com/bytetalking/ClsCreator
actionscript
Last synced: 3 months ago
JSON representation
An ActionScript code generate lib
- Host: GitHub
- URL: https://github.com/bytetalking/ClsCreator
- Owner: bytetalking
- License: other
- Created: 2014-02-22T12:10:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-24T07:24:32.000Z (over 5 years ago)
- Last Synced: 2024-07-29T01:21:59.080Z (3 months ago)
- Topics: actionscript
- Language: AngelScript
- Size: 326 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-actionscript-sorted - ClsCreator - An ActionScript code generate lib (Unsorted / Other API)
README
ClsCreator
==========An ActionScript3 code generate lib,you can use as3 generate as3
## hello world
```js
var cls:Cls = new Cls("HelloWorld", new Pack(""));
cls.setSuperClass(new SuperCls(Sprite));var v:Var = new Var("tea", String);
cls.addPropertys(v);var m:Method = new Method("hi", Method.VOID, Property.PUBLIC);
m.addStatement(new Statement("trace(\"hello, world\")"));
cls.addPropertys(m);trace(cls.toString());
```## output
```js
package
{
import flash.display.Sprite;
public class HelloWorld extends Sprite
{
public var tea:String;
public function hi():void
{
trace("hello, world")
}
}
}
```
## cases
![image](https://github.com/bytetalking/ClsCreator/blob/master/cases/case1.jpg?raw=true)