摘要:
package { // 主类 import flash.display.MovieClip; import flash.events.*; import flash.display.Shape; public class Main extends MovieClip { private var arrow:Arrow=new Arrow(); private var speed:Number;//速度 private var istart:Boolean = false;//是否开始 public function Main(... 阅读全文
摘要:
// localToGlobal 本地转换全局var square:Sprite = new Sprite();square.graphics.beginFill(0xFFCC00);square.graphics.drawRect(0, 0, 100, 100);square.x = 100;square.y = 200;addChild(square);square.addEventListener(MouseEvent.CLICK, traceCoordinates)function traceCoordinates(event:MouseEvent):void { var ... 阅读全文
摘要:
Demo 背包结构主类:package{ import com.ItemManage; import flash.display.Sprite; public class PackTest extends Sprite { private var idList1:Array; private var idList2:Array; public function PackTest() { init(); } /** * 初始化 */ public function init():void { idList1 = new Array(); idLis... 阅读全文