大约有 16 项符合查询结果, 库内数据总量为 31,715 项。 (搜索耗时: 0.0030 秒)
...用mp3格式;在加速器里的判断依据可以这样写: var Music:String; If(window.conch){ Music = “wav”或“ogg” }else{ Music = “mp3” } 5、在加速器环境下html文件里不支持通过script代码或div节点创建canvas画布; 6、游戏里的方法命名别叫:gc,...
来源: Laya_社区 发布时间: 20161107
加载一个txt文件 getRes出来类型为string 能转换成数组吗 Laya.loader.load("res/text.txt", Handler.create(this, onAssetLoaded1), null, Loader.TEXT); var pic1 = Loader.getRes("res/2D特效/text.txt"); console.log(typeof pic1); 输出的类型为string 2017-06-20 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20170620
...可以正常运行,打包后才会出现问题 public function send(type:String,url:String,callbackName:String):void { this.type = type; //发送请求 var script:* = Browser.createElement("script"); script.id = "serverlist"; Browser.document.head.appendChild(script); script.src = url; script.type...
来源: Laya_社区 发布时间: 20180209
...题,可以参考下我们的APISkeleton replaceSlotSkinByIndex(slotName:String, oldIndex:int, newIndex:int):void 替换插槽的贴图索引 replaceSlotSkinName(slotName:String, oldName:String, newName:String):void 替换插槽贴图名 setSlotSkin(slotName:String, texture:Texture):void 设置自...
来源: Laya_社区 发布时间: 20160927
...a.stage.screenMode /**不更改屏幕。*/ public static const SCREEN_NONE:String = "none"; /**自动横屏。*/ public static const SCREEN_HORIZONTAL:String = "horizontal"; /**自动竖屏。*/ public static const SCREEN_VERTICAL:String = "vertical";2、加速器版本设置横竖屏请参考:横...
来源: Laya_社区 发布时间: 20160922
...,以60的帧率运行。*/ public static const FRAME_FAST:String = "fast"; /**慢速模式,以30的帧率运行。*/ public static const FRAME_SLOW:String = "slow"; /**自动模式,以30的帧率运行,但鼠标活动后会自动加速...
来源: Laya_社区 发布时间: 20170610
...eton private _handler: Laya.Handler; constructor(url: string, handler: Laya.Handler, aniMode: number = 0) { this._handler = handler; this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this...
来源: Laya_社区 发布时间: 20200618
...te; public var percent:Number; public var type:String = "PROGRESS_TIMER_TYPE_RADIAL"; public var reverseDirection:Boolean = true; public var spSize:Size; public static var PROGRESS_TIMER_TYPE_RADIAL:String = "PROGRE...
来源: Laya_社区 发布时间: 20180404
...>:0) n.a () (at <0524304338e24b0bb697e3c82a810b25>:0) n.b (System.String A_0) (at <0524304338e24b0bb697e3c82a810b25>:0) LayaAir3D.exportResource (System.Boolean isDebug, System.Int32 Platformindex, System.String lastname) (at <0524304338e24b0bb697e3c82a810b25>:0) b+k.b () (at &l...
来源: Laya_社区 发布时间: 20200818
...有要求的,见以下代码片段(laya.net.Loader):var directory:String = (this._data.meta && this._data.meta.prefix) ? URL.basePath + this._data.meta.prefix : this._url.substring(0, this._url.lastIndexOf(".")) + "/"; var url:String = directory + name; loadedMap[url] = Texture.creat...
来源: Laya_社区 发布时间: 20160610