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

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

941. 怎么在不同时间显示MovieClip的多个实例 [ 51%]

...ieClip(); ani_planet.pivotY = ani_planet.pivotX = 350; ani_planet.x = Laya.stage.width/2; ani_planet.load("1.swf",true); ani_planet.y = i*50; addChild(ani_planet); i++; } 以上代码执行后生成一个新的MovieClip实例,然而会把旧的MovieCip销毁掉,要怎么解决这个问题,求...

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

942. layaAirIDE 打包APK 后 真机运行报错 [ 51%]

...ain.min.js:1: ReferenceError: createApes is not defined i=new RunGame;Laya.stage.addChild(i)}!function(){createApes()}(function(){function i(){this.BG_WIDT ReferenceError: createApes is not defined at BG_WIDTH (http://stand.alone.version/main.min.js:1:149) at eval (http://stand.alone.version/main.mi...

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

943. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 51%]

...loadImage方法为什么不触发complete? var logo = new Sprite(); Laya.stage.addChild(logo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete不触发?...

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

944. 如何改变text部分字的颜色或两个不同颜色的text如何拼接看起来像一个文本? [ 51%]

...哈</span><span color="#FFFF00">嘻嘻嘻</span>'; Laya.stage.addChild(htmlDiv); 2017-05-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 daohu 相关问题 两个对象new了一个相同的对象,调用第一个的...

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

945. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 50%]

...GL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin, Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个Button实例 var btn:Button = new Butt...

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

946. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 50%]

...   {             apesCtn=new Sprite()             Laya.stage.addChild(apesCtn);             for (var i:int = 0; i < 4; i++ )             {                 Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded))             }     ...

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

947. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 50%]

...y = 32 * 4; this.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var ...

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

948. 微信小游戏加载资源问题 [ 50%]

...aya.Browser.container.appendChild(Laya.Input['inputContainer']); Laya.Laya.stage.on("resize", null, MiniInput._onStageResize); MiniAdpter.window.wx.onWindowResize && MiniAdpter.window.wx.onWindowResize(function (res) { }); Laya.SoundManager._soundClass = MiniSound; Laya.SoundManage...

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

949. 某些机型drawToCanv绘图颜色变深 [ 49%]

...8测试发现如下代码绘图颜色变深。 var htmlC:HTMLCanvas = Laya.stage.drawToCanvas(750,1183,0,0); var canvas:* = htmlC.getCanvas();//获取原生的canvas对象 var base64String:String = canvas.toDataURL("image/png"); var _webframe:*; _webframe = Browser.document.createElement("img"); _we...

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

950. HTMLIframeElement报错 [ 48%]

...ement报错 我用 var p:HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "test.html"; p.y = 200; 一执行就报错是为什么啊?错误如下: Utils.parseXMLFromString=function(value){ var rst; value=value.replace(/>\s+</g,'><'); rst=(new DOMParser())....

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