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

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

681. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 64%]

...信 megrez 赞同来自: // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var Label = Laya.Label; var TextInput = laya.ui.TextInput; var WID = 373, HEI = 30; function Item() { Item.__super.call(this); this.size(WID, HEI); this...

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

682. hitTestPrior点击穿透 [ 64%]

....events.Event; import laya.webgl.WebGL; public class PanelElastic { public function PanelElastic() { Laya.init(800,600,WebGL); Laya.stage.bgColor="#EEFFCC"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChi...

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

683. 请问用laya的tab模板创建的tab,为啥没有点击事件啊?而且tab标签点击后没有一直处于按下状态 [ 64%]

...栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyBootPage2UI);     UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);          this.Boot.selectHa...

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

684. sprite 设置为静态变量后,无法从舞台移除 [ 64%]

....webgl.WebGL; public class HtmlDemo { private static var sp:Sprite; public function HtmlDemo() { Laya.init(800, 480,WebGL); Stat.show(); sp=new Sprite(); sp.loadImage("background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onClick); function onClick():void { // TODO Auto Generated...

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

685. socket报错,on: reserved1 = 1, reserved2 = 1, reserved3 = 0 [ 64%]

...ass SocketSample { public var socket:Socket; private var byte:Byte; public function SocketSample() { //初始化引擎 this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTLE_ENDIAN;//这里我们采用...

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

686. 请问laya里如何解析json,似乎和AS3的不太一样。 [ 64%]

...接 提交 2 个回复 cuixueying 赞同来自: SONIC3D 、sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON...

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

687. Android打包后运行报错 [ 64%]

...      ReferenceError: CanvasRenderingContext2D is not defined     at Function.Context.__init__ (http://stand.alone.version/Main.max.js:16077:12)     at Object.Laya.init (http://stand.alone.version/Main.max.js:386:11)     at new Main (http://stand.alone.version/Main.max.js:2923:8)     at h...

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

688. Sprite3D-Sprite3D加载 [ 64%]

...s.Stat; import common.CameraMoveScript; public class Sprite3DLoad { public function Sprite3DLoad() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; scene.ambientCol...

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

689. timeline播放完成Bug [ 64%]

...layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', this, function() { ap...

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

690. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 64%]

...ish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() funct...

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