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

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

341. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 58%]

...dule laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: s...

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

342. LayaFlash下如何对音量进行控制? [ 58%]

...el.soundTransform.volume去设置 示例如下: public function init(e:Event):void { var sound:Sound=new Sound(); sound.load(new URLRequest("xxx.xxx.xxx")); var sc:SoundChannel=sound.play(); var st:SoundTransform=new SoundTransform(); st.volume=0.5; sc.soundTransform=st; } 2016-03-11 1 0 分...

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

343. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 58%]

...platform.com/manifests/vM7nH0Kl.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function():void{ video.play(); }); } plyr.setup(video); } } new LayaUISample; ``` 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时...

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

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

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

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

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

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

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

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

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

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

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

349. List组件内部小元件无法接受鼠标事件 [ 57%]

...以在mouseHandler下对鼠标事件进行判断和使用,譬如e.type=Event.CLICK,对事件类型进行判断,然后进行逻辑的实现! 2018-02-02 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 182*****278 相关问题 2.0一...

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

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