大约有 1,162 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0087 秒)
Laya_社区(657) Laya_示例(157) Laya2.0_文档(129) Laya2.0_示例(116) Laya3.0_api(72) Laya3.0_文档(11) laya_api(11) Laya2.0_api(9)
...windows下同个版本加载正常 Mac下的AS3代码如下: private function init():void { var assetArr:Array=[ {url:"res/sound/music_gameplay.mp3", type:Loader.SOUND}, {url:"res/sound/button.mp3", type:Loader.SOUND}, ...
来源: Laya_社区 发布时间: 20181112
....event (LayaSample.max.js:1) at new i (LayaSample.max.js:1) at Function.t.regSession (LayaSample.max.js:1) at t.i.initSession (LayaSample.max.js:1) at Function.t.INIT (LayaSample.max.js:1) at i.execute (LayaSample.max.js:1) at Function.t.exeCMD (LayaSample.max.js:...
来源: Laya_社区 发布时间: 20200401
...events.Event; import laya.utils.Browser; public class LayaAirTest { public function LayaAirTest() { Laya.init(550,400); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(1000,100); sp.on(Event.CLICK,this,onClick); } private function onClick():v...
来源: Laya_社区 发布时间: 20161215
...var mLastMouseY = 0; var mX = 0; var mY = 0; (function() { createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图 function ...
来源: Laya_社区 发布时间: 20180614
...: exception info:[TypeError: this._nativeObj.addGlobalValueDefine is not a function.(In "this._nativeObj.addGlobal ValueDefine(modifyType, type, size, defaultData)", "this._nativeObj.addGlobalValueDefine" is undefined)] at line 4664. 附件 : --> 2020-02-18 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20200218
...下 var WebGL = Laya.WebGL; // 程序入口 var GameMain = /** @class */ (function () { function GameMain() { //初始化引擎 Laya.init(1136, 640); for (var i = 0; i < 4; i++) { var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr...
来源: Laya_社区 发布时间: 20180629
... QZONE 微信 hj 赞同来自: Laya.init(500,400,Laya.WebGL);createText();function createText(){this.txt = new Laya.Text();this.txt.overflow = Laya.Text.SCROLL;this.txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提供HTML5开发技术方案!\n...
来源: Laya_社区 发布时间: 20180125
...程来无法正常加载资源 public class Main{ public function Main(){ //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#ffcccc"; var resArr:Array = [ ...
来源: Laya_社区 发布时间: 20180106
...aya.events.Event; import laya.webgl.WebGL; public class DemoTouch { public function DemoTouch() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; var txt:Text = new Text(); txt.text = "hello"; txt.color = "#FF00FF"; txt.width = 100; txt.height = 100; txt.x = 200; txt.y = 100; txt.fontSiz...
来源: Laya_社区 发布时间: 20170519
绘制形状时事件不触发 function myRing(x,y,r1,color1,r2,color2) { this.sprite = new Laya.Sprite(); this.sprite.on('mousedown', this, on_down); this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2); this.sprite.graphics.drawCircle(x, y, r1, color1, color...
来源: Laya_社区 发布时间: 20161221