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

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

331. 网络图片加载回调问题 [ 59%]

...aya_XS 赞同来自: 你应该可以通过单独监听image对象的img.on(Event.Complete,this,function(e:*):void{ 图片完成回调 })   你试试这个方法,应该可以! 2018-03-04 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...

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

332. 限制区域拖动效果,为什么会无法限制呢? [ 59%]

...。 /* * name; */  var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Rectangle = Laya.Rectangle; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Handler = Laya.Handler  function GolfMainUI() { GolfMainUI.su...

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

333. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 59%]

...点上了 谢谢 186*****868 • 2019-06-04 12:03 @IBA: mouseMove(e: Laya.Event) { //触摸移动的整量 let touches = e.touches; if (touches && touches.length == 2) { let distance = this.getDistance(e.touches); //判断当前距离与上次距离变化,确定是放大还是缩小 const ...

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

334. 怎么对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

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

336. 我竟然被射线检测这个小功能给难了一天了 [ 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

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

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

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

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

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

340. 分享一个自己做的游戏公告功能,跑马灯效果 [ 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