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

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

331. 我竟然被射线检测这个小功能给难了一天了 [ 58%]

...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

332. LayaFlash如何使用chrome调试问题? [ 58%]

...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

333. laya可以转换flash补间动画成h5动画吗? [ 58%]

...来放置到项目的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

334. tree mouseHandler 怎么获取条目 [ 58%]

...的长宽高? 分享:LayaAir下如何获取图集下的小图资源? Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 问题状态 最新活动: 2017-06-26 15:23 浏览: 1791 关注: 2 人

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

335. 分享一个自己做的游戏公告功能,跑马灯效果 [ 58%]

...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

336. laya.ui.Button [ 57%]

...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

337. 关于动态设置宽高的问题 [ 57%]

...后代码里面设置宽高为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

338. FLASH打包 官方UI DEMO 点击赋值 不能赋值 [ 57%]

...官方UI DEMO源代码  增加 赋值按钮 点击事件函数参数(e:Event) 2.打包的flash Player 更新到22 DEBUG 版本 (layaAir开发群分享文件里面有的)   2016-07-11 1 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 您好,非常感谢您的反馈以及...

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

339. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 57%]

...示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

340. 2.4.0bata 3D 碰撞法线问题 [ 57%]

...采用showAll后留白部分的颜色问题 关于主程序过大的问题 event自定义事件的问题 问题状态 最新活动: 2019-11-14 15:20 浏览: 2033 关注: 3 人

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