大约有 2,497 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0071 秒)
Laya_社区(1888) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(32)
...15952728807 • 2017-12-05 15:44 (function() { var Stage = Laya.Stage; var Event = Laya.Event; var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var tiledMap; var mLastMouseX = 0; var mL...
来源: Laya_社区 发布时间: 20171205
...I DocumentationAll Packages | All Classes | Index | Frames No Frames EventDispatcherMethods Packagelaya.eventsClasspublic class EventDispatcherInheritanceEventDispatcher ObjectSubclasses HttpRequest, Loader, LoaderManager, Node, Socket, Sound, SoundChannel, Texture, TimeLine EventDispatcher ...
来源: Laya2.0_api 发布时间: 20190513
... last_z = 0;'); __JS__('var canShake = 1'); __JS__('if (window.DeviceMotionEvent){window.addEventListener("devicemotion", deviceMotionHandler, false)'); __JS__('}else{alert("你的设备不支持DeviceMotion事件");}'); __JS__('function deviceMotionHandler(eventData){var acceleration = eventData.ac...
来源: Laya_社区 发布时间: 20160110
...estination-out package view { import laya.display.Sprite; import laya.events.Event; import laya.resource.Context; import laya.utils.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var maskArea:Sprite; pr...
来源: Laya_社区 发布时间: 20170315
...cene.load("../../res/threeDimen/scene/PBRScene/Demo.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCA...
来源: Laya_示例 发布时间: 20241118
.../bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTestPoint(e.stageX, e.stageY)); } } 很简单的代码,不知道什么hitTestPoint始终得到的是false.我打印出s的宽...
来源: Laya_社区 发布时间: 20170319
a、b 两个按钮响应同一个点击回调,但event的 target和currentTarget相同都是stage对象,怎么解释呀 实际代码中,两个按钮通过currenttarget,确实能够区分开来,但是打印的值,currenttarget和target值都是stage对象,这个问题谁能给解释下...
来源: Laya_社区 发布时间: 20180301
...onstructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { console.log("----------the event resize-------") cons...
来源: Laya_社区 发布时间: 20170720
...赞同来自: lllzzz6311 package { import laya.display.Sprite; import laya.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...
来源: Laya_社区 发布时间: 20170918
...03:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.E...
来源: Laya_社区 发布时间: 20181107