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

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

691. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 45%]

...utils.Browser; public class Retitution extends Sprite { private const stageWidth:int = 800; private const stageHeight:int = 600; private var Matter:Object = Browser.window.Matter; private var LayaRender:Object = Browser.window.LayaRender; private var mouseConstraint:*; private var engine:*; /***/ pu...

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

692. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 45%]

... debug_txt.autoSize = TextFieldAutoSize.LEFT;             debug_txt.width = 1000;             debug_txt.y = 20;             var tf:TextFormat = new TextFormat(null,12,0xFFFFFF);             debug_txt.defaultTextFormat = tf;             debug_txt.text = "start...";    ...

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

693. 请问object层中添加的sprite怎么添加点击事件 [ 45%]

...ower.zOrder = budai.y; flower.autoSize = true; flower.height = 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld.zip 2018-07-22 添...

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

694. HScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 44%]

...rollBar.skin = "../../../../res/ui/hscroll.png"; //设置宽度 hScrollBar.width = 400; //设置位置 hScrollBar.pos(150, 170); //最低滚动位置数字 hScrollBar.min = 0; //最高滚动位置数字 hScrollBar.max = 100; //滚动变化事件回调 hScrollBar.changeHandler = new Handler(this, onC...

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

695. 2.3.0beta 各种bug [ 44%]

... if (rect[2] == -1)                     rect[2] = Math.ceil((cri.width + lineWidth * 2) * this.lastScaleX);             }             var dt_w = w != 0 ? w : 1;             var dt_h = h != 0 ? h : 1;             if(rect){                 dt_w = rect[2] != 0 ...

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

696. HScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 44%]

...his.hScrollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = n...

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

697. Cannot read property 'toDefault' of undefined报错是什么原因 [ 44%]

...HADING; Laya.stage.addChild(new MousePickingScene()); // Laya.init(Browser.width, Browser.height); // Laya.stage.scaleMode = Stage.SCALE_NOSCALE; infoText = "距离:null"; mySwitch = true; target = new BMap.Point(113.392307, 23.062487); createDom(); initMap(); createButton(); var successHandler = ...

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

698. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 44%]

...e; var mCurrSkinIndex = 0; (function() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplet...

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

699. VScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 44%]

...his.vScrollBar.skin = "res/ui/vscroll.png"; //设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, 170); //最低滚动位置数字 this.vScrollBar.min = 0; //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScrollBar.changeHandler = n...

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

700. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 43%]

...his.hScrollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = n...

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