大约有 2,497 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0103 秒)
Laya_社区(1888) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(32)
...tX = 400, mStartY = 500, mCurrIndex = 0, mLabelSprite; class Skeleton_SpineEvent { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeig...
来源: Laya2.0_示例 发布时间: 20241117
...线检测, 直接使用全局触控即可 var _self = this; document.addEventListener("mousedown",function(event){_self.onActDown(event);},false); document.addEventListener("mouseup",function(event){_self.onActUp(event);},false); document.addEventListener( 'touchstart', function(event){ _self.onA...
来源: Laya_社区 发布时间: 20180114
...Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath);...
来源: Laya2.0_示例 发布时间: 20241117
...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com","","get","text"); function processHandler(data){ console.log(data); c...
来源: Laya_社区 发布时间: 20180827
event自定义事件的问题 rt,自定义事件派发有什么条件吗?比如我在A类派发一个自定义事件,在B类添加侦听器监听事件,但是我在EventDispatcher类加了一个trace,事件没有派发成功,下面是testDemo LayaSample类: package { import laya.displ...
来源: Laya_社区 发布时间: 20170604
...AirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Event = Laya.Event; var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var tiledMap; var mLastMouseX = 0; var mL...
来源: Laya_示例 发布时间: 20241117
用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 package tcp { import laya.events.Event; import laya.net.Socket; import laya.utils.Byte; public class CConnector extends Socket { protected ...
来源: Laya_社区 发布时间: 20170920
...function() { var Skeleton = Laya.Skeleton; var Templet = Laya.Templet; var Event = Laya.Event; var Browser = Laya.Browser; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCur...
来源: Laya_示例 发布时间: 20241117
...function() { var Skeleton = Laya.Skeleton; var Templet = Laya.Templet; var Event = Laya.Event; var Browser = Laya.Browser; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 200; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCur...
来源: Laya_示例 发布时间: 20241117
监听不到Laya.Event.RESIZE事件 init():void{ Laya.stage.on(Laya.Event.RESIZE,this,this.onStageChange); } protected onStageChange(event:Event):void { this.bg.y = 180; alert("11111111111111") var desWidth:Number; var desHeight:Number; //获取窗口显示区的宽度。 desWidth=window.innerWidth...
来源: Laya_社区 发布时间: 20170322