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

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

151. layaAirIDE 打包APK 后 真机运行报错 [ 77%]

...enceError: createApes is not defined i=new RunGame;Laya.stage.addChild(i)}!function(){createApes()}(function(){function i(){this.BG_WIDT ReferenceError: createApes is not defined at BG_WIDTH (http://stand.alone.version/main.min.js:1:149) at eval (http://stand.alone.version/main.min.js:1:162) at eval...

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

152. laya.events.EventDispatcher_API3.0 [ 77%]

...则值为 true;否则,值为 false。 off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删除侦听器。 Parameters type: strin...

来源: Laya3.0_api 发布时间: 20231115

153. TimeLine调用destroy报错&执行完成后回到起点 [ 76%]

..._proto._loop (HMain.max.js:16892) at loop (HMain.max.js:5472)    private function createTimerLine():void { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .ad...

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

154. HTMLDivElement中image标签多次赋值报错 [ 76%]

HTMLDivElement中image标签多次赋值报错 报错信息 代码段(function() { var Stage = Laya.Stage; var HTMLDivElement = Laya.HTMLDivElement; var Browser = Laya.Browser; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.cli...

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

155. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 76%]

...    <script type="text/javascript">         window.onload = function (){             ipmsg();         }                  function ipmsg() {             var ss = remote_ip_info['country']  + remote_ip_info['province']+ remote_ip_info['city'];    ...

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

156. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 76%]

...直接崩溃 1.最简单的拖放,在apk里无法使用       public function TestMain()         {             //舞台默认背景色是黑色的             Laya.init(1136, 640,WebGL);             Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.cre...

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

157. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 76%]

...刷新,才能恢复原样。   UI界面的继承类 var StartResource = function StartResource(){ StartResource.super(this); //LOGO 图标 访问地址 var href='https://list.tmall.com/search_product.htm?q=%BB%A8%D3%A1%D0%B6%D7%B1%CB%AE&type=p&spm=a220m.1000858.a2227oh.d100&xl=%BB%A8%...

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

158. 使用HtmlDivElement取不到实际大小 [ 76%]

...才试了一下,貌似加上<div>就不能计算了,代码如下: (function() { var Stage = Laya.Stage; var HTMLDivElement = Laya.HTMLDivElement; var HTMLIframeElement = Laya.HTMLIframeElement; var Browser = Laya.Browser; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换...

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

159. 使用滤镜报错 [ 76%]

...; var grayscaleFilter = new Laya.ColorFilter(grayscaleMat); //按钮置灰 function enable_false(v) {     v.filters = [grayscaleFilter];     v.mouseEnabled = false; } //按钮恢复 function enable_true(v) {     v.filters = null;     v.mouseEnabled = true; } 报错日志: TypeError: f....

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

160. laya.utils.Timer_API3.0 [ 76%]

...毫秒。 Returns number Methods callLater callLater(caller: any, method: Function, args?: any[]): void Defined in laya/utils/Timer.ts:278 延迟执行。 Parameters caller: any 执行域(this)。 method: Function 定时器回调函数。 Default value args: any[] = null 回调参数。 Returns void...

来源: Laya3.0_api 发布时间: 20231115