大约有 856 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0059 秒)
Laya_社区(759) Laya2.0_文档(27) Laya_示例(19) Laya3.0_文档(16) Laya2.0_示例(14) Laya2.0_api(9) laya_api(9) Laya3.0_api(3)
...0ff00"; text.fontSize = 30; Laya.stage.addChild(text); Laya.stage.on(Event.MOUSE_DOWN, this, changeAction); } private var tActionID:int=0; private function changeAction():void { tActionID++; var aniCount:int; //获取动画动作数量 aniCount = skeleton.getAnimNum(); tActionID = tActionID % aniCou...
来源: Laya2.0_文档 发布时间: 20210715
....ALIGN_MIDDLE; //Laya.stage.frameRate = Laya.Stage.FRAME_MOUSE; Laya.stage.frameRate = Laya.Stage.FRAME_SLOW; //注册自定义按钮控件 Laya.View.regComponent("ScaleButton", ScaleButton); Laya.loader.load("...
来源: Laya_社区 发布时间: 20181208
...象坐标系是相对遮罩对象本身的,和Flash机制不同 Sprite mouseEnabled : Boolean 是否接受鼠标事件。 默认为false,如果监听鼠标事件,则会自动设置本对象及父节点的属性 mouseEnable 的值都为 true(如果父节点手动设置为false,则不会更...
来源: Laya2.0_api 发布时间: 20190513
....on(Laya.Event.CLICK, this, this.JoinRoom); this.RecordAudio.on(Laya.Event.MOUSE_DOWN, this, this.StartRecordAudio); this.RecordAudio.on(Laya.Event.MOUSE_UP, this, this.StopRecordAudio) } Loginyim() { YIMMain.callWithBack(function (n) { alert(n); }, "login",randomString(6)); } JoinRoom() { YIMMain.c...
来源: Laya_社区 发布时间: 20170722
...(this.hero); // 监听舞台的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,onMouseMove); // 手动创建敌人 // createEnemy(10); // 定时器自动循环创建敌人 Laya.timer.frameLoop(1,this,onLoop); } function onLoop() { // 遍历所有飞机,更改飞机状态 for(var i = La...
来源: Laya_社区 发布时间: 20170525
...(this.hero); // 监听舞台的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,onMouseMove); // 手动创建敌人 // createEnemy(10); // 定时器自动循环创建敌人 Laya.timer.frameLoop(1,this,onLoop); } function onLoop() { // 遍历所有飞机,更改飞机状态 for(var i = La...
来源: Laya_社区 发布时间: 20170525
...e.width / 5) * 2; Laya.stage.addChild(this.text); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); let building: Laya.Sprite3D = scene.getChildByName( "Buliding" ) as Laya.Sprite3D; let moveArea: Laya.MeshSprite3D = building.getChildByName( "fence15" ) as Laya.MeshSprite3D; console.log(...
来源: Laya_社区 发布时间: 20200917
...短路径的调用: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.endPoint.y]; //调用A* serach方法获得最短路...
来源: Laya3.0_文档 发布时间: 20230303
...ent.RESIZE,this,on_stage_resize); Laya.stage.on(Event.MOUSE_DOWN,this,on_map_mousedown); Laya.timer.frameLoop(1,this,calcMoving); } private function on_stage_resize():void { if (this.m_IsMoving) ...
来源: Laya_社区 发布时间: 20170921
...ze canvasDegree canvasRotation designHeight designWidth focus hitTestPrior mouseThrough name renderingEnabled screenAdaptationEnabled tag useRetinalCanvas ALIGN_BOTTOM ALIGN_CENTER ALIGN_LEFT ALIGN_MIDDLE ALIGN_RIGHT ALIGN_TOP FRAME_FAST FRAME_MOUSE FRAME_SLEEP FRAME_SLOW SCALE_EXACTFIT SCALE_FIXED_...
来源: Laya3.0_api 发布时间: 20231115