大约有 1,169 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0048 秒)
Laya_社区(838) Laya2.0_文档(186) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(23) Laya3.0_文档(21) Laya2.0_api(4) laya_api(3)
...ngle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自...
来源: Laya_社区 发布时间: 20171106
...c function LayaAirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); ...
来源: Laya_社区 发布时间: 20170505
...s", "type":Laya.loader.ATLAS } ] Laya.loader.load(loadData, Handler.create(null, onload), Handler.create(null, onProgress, null, false)); 熊猫大侠 • 2018-05-25 17:06 @170*****199:肯定资源加载完成 才能跳转战斗啊 170*****199 • 2018-05-25 17:07 对啊,是加载...
来源: Laya_社区 发布时间: 20180525
...回复 纪龙 赞同来自: Laya.loader.load("res/sounds/light.mp3", Laya.Handler.create(this, ()=>{ console.log("load light.mp3"); Laya.SoundManager.playMusic("res/sounds/light.mp3"); Laya.SoundManager.playSo...
来源: Laya_社区 发布时间: 20180814
...加载图片同时使其在舞台居中? sp.loadImage(_img, 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); 因为我之前1.0可以使用以上方法,但切换到2.0发现complete不触发,这让我如何是好? 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20181009
...数 分享:LayaAir下如何获取图集下的小图资源? tree mouseHandler 怎么获取条目 请问如何获取鼠标在某个元素内 相对于这个元素的坐标 问题状态 最新活动: 2018-01-31 18:08 浏览: 1265 关注: 2 人 ITMaster • 2018-02-01 12:23 不行啊, 拿不到数...
来源: Laya_社区 发布时间: 20180131
...型是否是鼠标事件。 EventDispatcher load(url:String, complete:Handler = null):void 加载指定地址的图片。 Texture moveUV(offsetX:Number, offsetY:Number, uv:Array):Array[static] 平移 UV。 Texture off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDi...
来源: Laya2.0_api 发布时间: 20190513
...prite; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(500,500);//初始化引擎 var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public ...
来源: Laya_社区 发布时间: 20180529
...movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoaded)); } private function onLoaded():void { var sp:Sprite=new Sprite(); sp.loadImage('bg.png'); Laya.stage.addChild(sp); }在地图加载完成的回调里去加新的显示对象,是addChild地图...
来源: Laya_社区 发布时间: 20170526
... Tween.to(pan,{ rotation: -(720+angle) },5000,Ease.bounceOut(0,0,0,5000),Handler.create(this,function():void{ alert(text); })); } 如以上代码 :我用在5000后面加Ease但这个类的后边全是Number 会报错 求解这个东西应该咋用 2018-06-13 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180613