大约有 421 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)
Laya_社区(275) Laya2.0_示例(37) Laya_示例(31) Laya2.0_文档(26) Laya2.0_api(18) laya_api(16) Laya3.0_文档(13) Laya3.0_api(5)
...Sprite3D).transform.position) } onStart(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDownCb) } private onMouseDownCb(e:Laya.Event):void{ console.log("点击屏幕") // console.log("相机位置",this.camera.) this.camera.viewportPointToRay(new Laya.Vector2(Laya.stage.mouseX,L...
来源: Laya_社区 发布时间: 20190621
...n.as的代码如下: package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDE...
来源: Laya_社区 发布时间: 20151218
...来放置到项目的src目录下。 参考:private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onCom); loader.load(new URLReques...
来源: Laya_社区 发布时间: 20151216
...的长宽高? 分享:LayaAir下如何获取图集下的小图资源? Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 问题状态 最新活动: 2017-06-26 15:23 浏览: 1791 关注: 2 人
来源: Laya_社区 发布时间: 20170626
...5,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** 创建滚动区域 */ _createView() { this.hornBox = new Box() let _rectangle = new Laya.Rectangle(0,0,this.defaultX,55) this.hornBox.scrollRect...
来源: Laya_社区 发布时间: 20180314
...All Classes | Index | Frames No Frames ButtonProperties | Methods | Events Packagelaya.uiClasspublic class ButtonInheritanceButton Component Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多态按钮。 Button 组件可显示...
来源: laya_api 发布时间: 20170929
...后代码里面设置宽高为clientW,clientH private function onResize(e:Event):void { if (App.isFull) { Laya.stage.width=Browser.clientWidth; Laya.stage.height=Browser.clientHeight; } else { Laya.stage.width=1008; Laya.stage.height=610; } } 这是全屏和非全屏时候的一段代码,全屏控...
来源: Laya_社区 发布时间: 20170424
...官方UI DEMO源代码 增加 赋值按钮 点击事件函数参数(e:Event) 2.打包的flash Player 更新到22 DEBUG 版本 (layaAir开发群分享文件里面有的) 2016-07-11 1 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 您好,非常感谢您的反馈以及...
来源: Laya_社区 发布时间: 20160709
...示ExpandPage界面)package game { import laya.display.Sprite; import laya.events.Event; public class Btn { private var _owner:Sprite; private var _isScal:Boolean; public function Btn() { trace("btn的附加类已经开始执行"); } //设置owner函数,可以直接获取到Button组件的实例 p...
来源: Laya_社区 发布时间: 20161014
...采用showAll后留白部分的颜色问题 关于主程序过大的问题 event自定义事件的问题 问题状态 最新活动: 2019-11-14 15:20 浏览: 2033 关注: 3 人
来源: Laya_社区 发布时间: 20191113