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

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

1481. 微信的缓存引擎只支持了图片和声音,其他lh,lm等文件自动缓存时都不支持是缓存的时候有什么问题和难点吗? [ 45%]

...       */         public static function getFileInfo(fileUrl:String):Object {             return MiniFileMgr.getFileInfo(fileUrl);         }                  /**          * 获取缓存文件列表          * @return          ...

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

1482. new Laya.Templet() 时,说这不是一个constructor [ 45%]

... 求前辈指点下,谢谢! 代码如下: //private strAniConfPath:string = "res/fighter/fighter.json" //private aniFighter:Animation; this.aniFighter = new Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this.aniFighter.interval = 1...

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

1483. sound manager在MOUSE_OVER事件中无法播放 [ 45%]

...ySound);         }          private createButton(label: string): Sprite {             var w: number = 110;             var h: number = 40;              var button: Sprite = new Sprite();             button.size(w, h)...

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

1484. 音频 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...乐或音效)的音量。 */ static setSoundVolume(volume: number, url: string = null): void { if (url) { SoundManager._setVolume(url, volume); } else { SoundManager.soundVolume = volume; for (let i = SoundManager._channels.length - 1; i >= 0; i--) { let channel = SoundManager._channels[i]; if ...

来源: Laya3.0_文档 发布时间: 20251010

1485. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 45%]

...ds Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,BarCell.WID); private var pos:int = BarCell.WID*0.5; private var endTime:int; private var cdTime:...

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

1486. 关于位图字体的valign属性问题 [ 44%]

...Handler; public class GraphicCircle extends Sprite { private var mFontName:String="dataFont"; private var mBitmap:BitmapFont; public function GraphicCircle() { super(); Laya.init(550,400); mBitmap=new BitmapFont(); mBitmap.loadFont("date/data.fnt",new Handler(this,onLoadedFnt)); } private function o...

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

1487. 使用webgl之后toDataUrl返回黑色的图像 [ 44%]

...; Laya.stage.addChild(sp); } private function onClick():void { var htmlsss:String=(Laya.stage.getChildAt(0) as Sprite).drawToCanvas(100,100,0,0).getCanvas().toDataURL(); var sp2:Sprite = new Sprite(); sp2.name='drawCanvas'; sp2.x = 300; sp2.loadImage(htmlsss); Laya.stage.addChild(sp2); } } }   Laya...

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

1488. 树状列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...一次 onAwake(): void { //初始化树状列表的数据源 let treeData: string = "<data>"; //给Tree列表赋值 treeData += "<dir label='box1' isOpen='true'>" + "<file label='child1 ' />" + "<file label='child2 ' />" + "<file label='child3 ' />" + "<file label='c...

来源: Laya3.0_文档 发布时间: 20251010

1489. 启动画面LoadingView · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...在 \app\src\main\res\values和\app\src\main\res\values-en目录下找到strings.xml文件,可以在此添加用于显示在loadingView界面上的Tips,在RuntimeProxy.java文件中修改private int[] mTips的值,即可决定哪个Tips会出现在界面上。 2.进度条控制实例 在实际...

来源: Laya3.0_文档 发布时间: 20251010

1490. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 44%]

...lic class MsgMgr { /**共享画布类型**/ public static var SHAREDRESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init...

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