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

大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)

181. 更新到1.7.6beta之后,HBox有bug [ 68%]

...l: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png...

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

182. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 68%]

...所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffcccc"); //给panel设置宽高 panel.size(100,100); //给p...

来源: Laya2.0_文档 发布时间: 20210715

183. 关于as版的Animation.createFrames()不能工作? [ 68%]

...w(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoaded():void { Animation.createFrames(["war/hero_fly1.pn...

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

184. animate 动画播放 怎么把攻击 开火 合起来播放 [ 68%]

...oadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(this.aniUrls("die", 4), "die"); Laya.Animation.createFrames(this.aniUrls(...

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

185. LAYA js 1.7.12 Tween 使用时回调时 core报错 [ 68%]

...s.body.loadAtlas(config[this.type].imgBang, Laya.Handler.create(this, this.onLoad)); this.body.width = config[this.type].width this.body.height = config[this.type].height onLoad(){ Tween.to(this.body, { x: (config[this.type].width / 2) + 10, y: (config[this.type].heightp / 2) + 45 }, 500,callback) }...

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

186. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 68%]

...("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除...

来源: Laya3.0_文档 发布时间: 20230303

187. QQ小游戏开发者工具环境下,已经被本地缓存的图片的加载回调不触发的问题 [ 67%]

...出现了,Laya.loader.load("res/atlas/comp.json", Handler.create(this, onLoaded), null, Loader.ATLAS);这里的onLoaded函数不会被触发,导致后续界面不显示。如果点QQ小程序开发者工具里的清理缓存,界面又再次可以显示,再刷新的话,又不行。基本上...

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

188. 微信小游戏加载 BitmapFont 问题 [ 67%]

...时候 Laya.loader.load([{ url: "button_font.fnt" }], Handler.create(null, onLoaded)); 图片里的 type="font",最终执行的 tempData=data.data; tempData 直接就是button_font.fnt里面内容的字符串类型MiniLoader.onReadNativeCallBack=function(encoding,url,type,cache,group,ignoreCache,t...

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

189. Android替换游戏启动logo看不到设置的图片 [ 67%]

...d([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") { dd=__JS__("window.loadingView"); dd.loading(100); } } } } 2...

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

190. LayaAir IDE 语言包的使用? [ 67%]

...tage.bgColor = "#eeffcc"; Laya.loader.load("lang.lang",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var obj:Object=Laya.loader.getRes("lang.lang"); Text.langPacks=obj; var texts:Text=new Text(); texts.text="hello!welcom LayaBox"; Laya.stage.addChild(texts); }...

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