月度归档:2014年05月

Protobuf相关

http://code.google.com/p/protobuf/

as3插件:https://code.google.com/p/protoc-gen-as3/  引入protobuf.swc
protoc –plugin=protoc-gen-as3=path/to/protoc-gen-as3[.bat] –as3_out=output-path your.proto
[1,15]之内的标识号在编码的时候会占用一个字节。[16,2047]之内的标识号则占用2个字节。所以你应[……]

Read more

Adobe Scout入门与使用

1.确保你的SWF文件是针对Flash Player 11.4/AIR 3.4以上版本发布的!因为只有Flash Player 11.4/AIR 3.4以上版本才支持Telemetry

2.下载python文件,地址:https://github.com/adamcath/telemetry-utils

3. 把add-opt-in.py 复制到你的 .swf 文件所在的文件夹
4. 打开命令行(CMD),来运行Python脚本了。
       python add-opt-i[……]

Read more

Air调用外部程序

var process:NativeProcess = new NativeProcess();
var args : Vector<String> = new Vector<String>();
args.push(‘–sheet’);
args.push(url + ‘.png’);
args.push(‘–data’);
args.push(url + ‘.xml’);
args.push(‘–no-trim’);
args.push(‘–ma[……]

Read more

命令行中使用TexturePacker

1、环境变量PATH添加C:\Program Files\TexturePacker\bin
2、打开TexturePackerGUI,file-(install command line tool)-allow
3、TexturePacker –sheet output.png –data output.xml –no-trim –max-size 2048 –disable-rotation –format xml C:\Users\Hoothin\Documents\ani[……]

Read more