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

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

21. 同一个Animation,创建多个实例只能显示一个(测试项目已上传) [ 72%]

...yer.addChild(p) } /////////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); }   附件 : --> 相关链接 : h...

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

22. LAYAAIR加载SWF无线循环 [ 72%]

...             _Sheep=createMovieClip(SheepSWFPath);    private function createMovieClip(path:String):MovieClip         {             var mc:MovieClip = new MovieClip();                      mc.load(path,false);        mc.play(0,false);    ...

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

23. 刚体贴图调用问题 [ 71%]

...A.layaSprite = img1; bodyA.id = i; Matter.World.add(engine.world,bodyA); } Function{ for(let i=0;i <5; i++){ if(bodyA.speed != 0){ (?????????????????); } } }代码的主要意思就是这样,缺少的代码请忽略,就是在问号处如何写代码使速度不为0的刚体所绑定的img2执...

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

24. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 71%]

...IsReady 方法报错     报错堆栈 TypeError: tex.getIsReady is not a function at Graphics.loadImage (file:///D:/zxl/2.0_stable/lfGame2.0/bin/libs/laya.core.js:11477:26) at Function.createFrames (file:///D:/zxl/2.0_stable/lfGame2.0/bin/libs/laya.core.js:23134:23) at Animation.loadImages (file:/...

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

25. Web Storage数据存储(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 71%]

....LocalStorage; import laya.utils.Browser; public class LayaSample { public function LayaSample() { Laya.init(100,100); LocalStorage.setItem("key","hello"); LocalStorage.setItem("data","hello"); var data:Object = {"index":0,"index1":1}; LocalStorage.setJSON("item",data);//直接传入Object,接口...

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

26. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 71%]

...个问题: 1、在MiniFileMgr.readFile函数中: MiniFileMgr.readFile=function(filePath,encoding,callBack,readyUrl,isSaveFile,fileType){ (encoding===void 0)&& (encoding="ascill"); (readyUrl===void 0)&& (readyUrl=""); (isSaveFile===void 0)&& (isSaveFile=false); (fileType==...

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

27. Laya2.1.0的BUG!Loader类的loadImage有问题了。快看! [ 70%]

...继续看。   【2】继续看到写的onloaded方法原型: protected function onLoaded(data:* = null):void 默认值允许为null.  但方法内又没有对data进行null值检测,所以各种报错,没有引发加载事件而是JS各种错。   找出的问题,麻烦改一下吧。 ...

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

28. 在Form输入用户名密码的时候 tab切换焦点 没有类似as3中tabindex设置 [ 69%]

...! userName_txt.on(Event.KEY_PRESS,this,tabNext,[userName_txt]); private function tabNext(e:Event,target:Node):void {       if(e.keyCode == Keyboard.TAB)      {             //无法触发 焦点直接直接到浏览器外去了(浏览器地址栏)        } } 2018-09-26 0 0 分享 ...

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

29. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 69%]

...       /**     *@inheritDoc     */   __proto.onAsynLoaded=function(url,data,params){     var json=data[0]     if (json.type!=="Scene"){ if (url == "scene/Demo_Interiors.ls"){ console.log(data[0]); throw new Error("Scene: the .lh file root type must be Scene,please use other fu...

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

30. 分享:Graphics下cmds命令流的使用! [ 68%]

....utils.Handler; import laya.webgl.WebGL; public class GraCmdsDemo { public function GraCmdsDemo() { //初始化舞台 Laya.init(Browser.width,Browser.height,WebGL); //预加载资源 Laya.loader.load(['apes/monkey0.png','apes/monkey1.png','apes/monkey2.png','apes/monkey3.png'],Handler.create(this,on...

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