大约有 190 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
...gt;videoAd.show())}) AS3写法: /*[IF-SCRIPT-BEGIN] videoAd.show().catch(function(err){videoAd.load().then(function(){videoAd.show()})}) [IF-SCRIPT-END]*/ 第二段:videoAd.onClose((res)=>{if(res.isEnded){}else{}}) AS3写法: /*[IF-SCRIPT-BEGIN] videoAd.onClose(function(res){if(res.isEnded)...
来源: Laya_社区 发布时间: 20200801
as3 包内公共函数无法编译,运行时提示 XX is not a function 如题,编译没有提示出错,但运行时报错,实在找不出原因。 奇怪的是,TestFunc执行没有报错,HandleMsgResult却报错,其它的方法也一样; 查询编译出来的max.js文件,发现Hand...
来源: Laya_社区 发布时间: 20180226
...能提供一下AS3对应的playerglobal.swc的源码? 我想修改一下Function,让h5开发时候把Handler嵌入进去 2017-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同...
来源: Laya_社区 发布时间: 20170730
...自动转成以下JS并报错Uncaught ReferenceError: int is not defined function DConfig(){}; __class(DConfig,'DConfig'); __getset(1,DConfig,'GamrRoomEnterPower',function(){ return DConfig.gamrRoomEnterPower; },function(value){ DConfig.gamrRoomEnterPower=value; console.log(DConfig.gamrRoomEnterPowe...
来源: Laya_社区 发布时间: 20170731
...t; mytexts.as: public class myTexts extends myTextsUI public function myTexts() { super(); } override protected function initialize():void { super.initialize(); } ...
来源: Laya_社区 发布时间: 20170703
... 3、宏编译示例代码 3.1 LayaFlash单行宏编译写法private function byteArrayReadIntTest():void { var byteArray:ByteArray = new ByteArray(); byteArray.writeInt(100); byteArray.position = 0; var value:int; /*[IF-FLASH]*/value = byteArray.readUnsignedInt(); //[IF-SCRIPT]value = byteArray...
来源: Laya_社区 发布时间: 20151106
...接 提交 2 个回复 cuixueying 赞同来自: SONIC3D 、sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON...
来源: Laya_社区 发布时间: 20161027
...rivate var url_img:String = "res/"; public function WWJ_Main() { Laya.init(stageWidth, stageHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage....
来源: Laya_社区 发布时间: 20170822
...人脸识别的: Browser.window.$('#mvideo').faceDetection({ complete: function (faces):void { trace("faces: "+ faces); }, error:function (code, message):void { trace('Error: ' + message); } }); Laya_Aaron • 2018-06-25 21:01 之后使用需要用js调 需要用__JS__("里面放j...
来源: Laya_社区 发布时间: 20180625
args.slice is not a function 2015-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 使用args特殊须知在AS3中args有array所有的属性和方法,翻译成js后,默认...
来源: Laya_社区 发布时间: 20151202