Flex & Apollo
GneitTimes
这个作者很懒,什么都没留下…
展开
-
让Canvas支持键盘事件
Canvas自身是不响应键盘事件的,可以添加如下代码是Canvas具备这个功能。AS 代码 var v:Canvas = new Canvas(); v.addEventListener(KeyboardEvent.KEY_DOWN,OnkeyDown); v.addEventListener(MouseEvent.MOUSE_UP.OnMouseUP)...2007-08-23 15:43:38 · 1090 阅读 · 0 评论 -
ActionScript 3 PNG编辑器
下面的AS代码实现了一个PNG的编辑器:AS 代码 /* Adobe Systems Incorporated(r) Source Code License Agreement Copyright(c) 2005 Adobe Systems Incorporated. All rights reserved. Please read ...2007-08-23 15:48:24 · 174 阅读 · 0 评论 -
ActionScript 3.0 备忘录
* Point 1:"==" 与 "===","!="与"!=="trace(5 == 6); // Displays: falsetrace(6 == 6); // Displays: truetrace(6 == "6"); // Displays: truetrace(5 == "6"); // Displays: falsetrace(5 != 6);2007-08-26 15:38:52 · 79 阅读 · 0 评论