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

jQuery in Action

jQuery in Action

Bear Bibeault、Yehuda Katz / Manning Publications / 2008-2-17 / USD 39.99

A good web development framework anticipates what you need to do and makes those tasks easier and more efficient; jQuery practically reads your mind. Developers of every stripe-hobbyists and professio......一起来看看 《jQuery in Action》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具