大约有 1,681 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0096 秒)
Laya_社区(1310) Laya2.0_文档(80) Laya3.0_api(68) Laya2.0_api(57) Laya3.0_文档(54) laya_api(53) Laya_示例(32) Laya2.0_示例(27)
...ndex.html中引用。编写以下代码: ```javascript //初始化引擎 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); f...
来源: Laya2.0_文档 发布时间: 20210715
..., 0); a.on(Event.CLICK, null, function(e:Event):void{ trace("click a"); }) Laya.stage.addChild(a); var b:Sprite = new Sprite(); b.graphics.drawRect(0,0,200, 200, "#0000ff"); b.size(200, 200); b.pos(100, 100); b.mouseThrough = false; //b.on(Event.CLICK, null, function(e:Event):void{ trace("click b");...
来源: Laya_社区 发布时间: 20181026
...找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 不管是vbox还是hbox,如果你想里面的元素自动布局,需要有两个前提,第一个:box容器自身有宽高,还有容器里面的对象也需要有宽高,要不不会自动排序...
来源: Laya_社区 发布时间: 20180829
关于资源回收的问题,开启autoDestroyAtClosed后报错 当Laya.scene.open()之后关闭场景,自动回收了就报错 这个报错,localToGlobal of null 附件 : --> 2019-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20190726
...发点击事件? 比如sprite1注册了点击事件: this.sprite1.on(Laya.Event.CLICK, this, this.sprite1CallBack); 怎样不用点击,而用代码去触发? 是 this.sprite1.event(Laya.Event.CLICK) 这样吗? 2018-07-24 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20180724
...回复被折叠 要回复问题请先登录 发起人 daniel 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? 已上传 Demo 附件 编译调试启动chrome出现错误: Err...
来源: Laya_社区 发布时间: 20181113
...被折叠 要回复问题请先登录 发起人 151*****134 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? 已上传 Demo 附件 编译调试启动chrome出现错误: Erro...
来源: Laya_社区 发布时间: 20181113
...77215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.ColorFilter = null; private _persent: number = 0; protected constructor() { this.targets = new Array<Laya.Sprite>(); } /** * ...
来源: Laya_社区 发布时间: 20180930
Video is not a construction var v = new Laya.Video(); 然后报错,Laya.Video is not a constructor 2017-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 引用库:laya.core.min....
来源: Laya_社区 发布时间: 20170314
...请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: laya.stage.on(Event.MOUSE_DOWN,this,加载图片的方法) public function 加载图片的方法():void{ var s:sprite = new sprite(); s.skin = "图片路径"; laya.stage.addChild(s); } 2018-04-16 0 0 分享 ...
来源: Laya_社区 发布时间: 20180416