大约有 37 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0054 秒)
...hakeCallback:any = null; private handshakeBuffer:any; private initCallback:Function = null; private _callbacks:any = {}; private reqId:number = 0; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = function(){conso...
来源: Laya_社区 发布时间: 20180119
...aya.loader.load("res/ui/refreshList/ani/refresh.png", Handler.create(this, function(){ this.initView(); })); } initView(){ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = ...
来源: Laya2.0_示例 发布时间: 20241123
...a package { import laya.display.Sprite; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp....
来源: Laya2.0_文档 发布时间: 20210715
...vM7nH0Kl.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function():void{ video.play(); }); } plyr.setup(video); } } new LayaUISample; 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时候是这样的: Laya.ini...
来源: Laya3.0_文档 发布时间: 20241014
...seEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=true...
来源: Laya_社区 发布时间: 20161109
...示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function $ adb shell am start -n "com.layabox.game/demo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come online: com.layabox.game.test | com.layabox.game Conne...
来源: Laya_社区 发布时间: 20171218
...t;>>>>>>>>className:layaair/game/browser/ExportJavaFunction,methodName:GetDeviceInfo 2018-11-26 18:31:47.964 4749-4838/com.layabox.dotJourney E/LayaBox: >>>>>>>>>>>>before 2018-11-26 18:31:47.975 4749-4838/com.layabox.dotJourney E/LayaBox...
来源: Laya_社区 发布时间: 20181126