as3代码生成库 ClsCreator

码农软件 · 软件分类 · Flash开发包 · 2019-04-03 18:27:26

软件介绍

ClsCreator 是一个中文的as3代码生成库, 以非常oo, 迅捷, 自动的方式生成需要的代码, 忘掉容易出错, 可维护性又差的模板生成方式吧

hello world 

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());

--输出

package 
{
    import flash.display.Sprite;
    public class HelloWorld extends Sprite
    {
        public var tea:String;
        public function hi():void
        {
            trace("hello, world")
        }
    }
}

本文地址:https://codercto.com/soft/d/2789.html

Web 2.0 Heroes

Web 2.0 Heroes

Bradley L. Jones / Wiley / 2008-04-14 / USD 24.99

Web 2.0 may be an elusive concept, but one thing is certain: using the Web as merely a means of retrieving and displaying information is history. Today?s Web is immediate, interactive, innovative. It ......一起来看看 《Web 2.0 Heroes》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具