• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,144 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0052 秒)

171. 一个LayaAir moveout target 设计上的疑问? [ 82%]

....pos(i * 60, j * 60);         sp[j + i * 10].on(Laya.Event.MOUSE_OVER, this, over);         sp[j + i * 10].on(Laya.Event.MOUSE_OUT, this, out);     } } function over(e) {     e.target.graphics.drawRect(0, 0, 50, 50, "red"); } function out(e) {     //正常大家可能会这么写,但...

来源: Laya_社区 发布时间: 20160715

172. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 82%]

...: string = ""; /** 输入框数组 */ private _arrInput: Laya.TextInput = [this.input_nickname, this.input_mobile, this.input_password, this.input_repassword]; /** 标签数组 */ private _arrLabel: Laya.Label = [this.lb_nickname, this.lb_mobile, this.lb_password, this.lb_repassword]; /** 验证标...

来源: Laya_社区 发布时间: 20200410

173. ui组件 TextInput event的事件为什么都触发不了 [ 82%]

ui组件 TextInput event的事件为什么都触发不了 this.changeInput.on(Laya.Event.FOCUS,this.changeInput,this.onChangeInput); private onChangeInput(params:any){ alert(this.changeInput.text); } 2017-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

来源: Laya_社区 发布时间: 20170307

174. 发布微信后无法触发mouse_up事件 [ 82%]

...加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mouseHandler(e:laya.events.Event):void { var touches: Array<an...

来源: Laya_社区 发布时间: 20181102

175. TypeError: relativePath is undefined [ 82%]

...tage.SCALE_FULL; Stat.show(); createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图http://layaair.ldc.layabox.com/api/ function createMap() { //创建地图对象 tiledMap = new TiledMap(); mX = mY = 0; //创建地图,适...

来源: Laya_社区 发布时间: 20171205

176. Sprite optimizeScrollRect = true 似乎有问题 [ 82%]

Sprite optimizeScrollRect = true 似乎有问题 this.initMask = function () { this.mask = new Sprite(); this.mask.width = this.width; this.mask.height = this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = tr...

来源: Laya_社区 发布时间: 20161118

177. 富文本过程中我遇到的问题以及解决方法(超链接换行以及无法接收超链接鼠标事件以及br或者 标签会崩溃报错的问题) [ 82%]

...者  标签崩溃问题 解决方法 HTMLElemen类中      var words = this._getWords();             if (words == null && (!this._children || this._children.length == 0))                 return false;             if (words) {                 for (var i = 0, n ...

来源: Laya_社区 发布时间: 20200724

178. 区块地图-等角地图 [ 82%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle, Point = Laya.Point; this.tiledMap = new TiledMap(); this.tiledMap.createM...

来源: Laya2.0_示例 发布时间: 20240929

179. 鼠标交互-拖动 [ 82%]

...; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { createApe(); showDragRegion(); } function createApe() { ape = new Sprite(); ape.loadImage(ApePath); Laya.stage.addChild(ape); var texture = Laya.loader.getRes(ApePath); ape.pivot(textur...

来源: Laya_示例 发布时间: 20240929

180. socket通讯返回数据 [ 82%]

...a.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this...

来源: Laya_社区 发布时间: 20180211