1、beginBitmapFill smooth
2、坐标未取整[......]
flash cc安装插件
zxp解压至c:\Users\用户名\AppData\Local\Adobe\Flash CS6\zh_CN\Configuration\WindowSWF[......]
使用getDefinitionByName()方法时,显示变量xxx未定义的解决方法
反射protobuf时报错[Fault] exception, information=ReferenceError: Error #1065: 变量未定义。
原因是“没有显示调用过的类,在编译时都不会被编译进swf文件里面。”[......]
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,[......]
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.[......]
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 +[......]
命令行中使用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-ro[......]
图文混排时getCharBoundaries()为Null
在使用txt.getCharBoundaries()之前,存储文本高度。调用txt.getCharBoundaries()之前先让文本高度值为文本的textHeight。调用后再改变文本高度为原来高度。
var storeHeight:Number=txt.height;
txt.height=txt.textHeight;
txt.getCharBoundaries(...);
txt.[......]
JAVA坏境变量中的JAVA_HOME path classpath 的设置与作用
在把jdk安装到计算机中之后,我们来进行设置使java环境能够使用。 首先右键点我的电脑。打开属性。然后选择“高级”里面的“环境变量”,在新的打开界面中的系统变量需要设置三个属性“JAVA_HOME”、“path”、“classpath”,其中在没安装过jdk的环境下。path属性是本来存在的。而JAVA_HOME和classpath是不存在的。
一:点“新建”,然后在变量名写上JAVA_[......]
Technique for indentifying android app CPU usage
I just found this blog post written by Mario from the libgdx dev team which details how to discover how much CPU your app is using in real time.
This is a great help when trying to cut the battery[......]