大约有 1,655 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
Laya_社区(676) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya3.0_文档(71) Laya_示例(58) Laya2.0_示例(54)
... */ public static function getFileInfo(fileUrl:String):Object { return MiniFileMgr.getFileInfo(fileUrl); } /** * 获取缓存文件列表 * @return ...
来源: Laya_社区 发布时间: 20180621
... 求前辈指点下,谢谢! 代码如下: //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
...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
...乐或音效)的音量。 */ 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
...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
...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
...; 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
...一次 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
...在 \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
...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