大约有 107 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
Laya_社区(79) Laya2.0_文档(11) Laya3.0_文档(4) Laya_示例(3) Laya3.0_api(3) Laya2.0_示例(3) laya_api(2) Laya2.0_api(2)
... function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num ; trace(...
来源: Laya_社区 发布时间: 20160913
...////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); } 附件 : --> 相关链接 : https://ask.layabox.com/question/4...
来源: Laya_社区 发布时间: 20190312
... var v:View = new View(); v.graphics.drawCircle(50, 50, 100, "#000000"); v.pos(100, 100); this.addChild(v); } } } 然后, 报错就在Box上: Uncaught TypeError: Cannot read property 'Box' of u...
来源: Laya_社区 发布时间: 20170725
...age.frameRate=Laya.Stage.FRAME_SLOW; var sp=new Laya.Sprite(); sp.graphics.drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); (图3-1) 此时FPS显示30,并且在鼠标移动时,可以...
来源: Laya3.0_文档 发布时间: 20251010
...遮罩 let mask = new Laya.Sprite(); sprite.addChild(mask); mask.graphics.drawCircle(200, 200, 100, "#FFFFFF"); //图片添加遮罩 setTimeout(() => { sprite.mask = mask;//等待1秒执行遮罩 }, 1000); 运行效果如下: (动图3-5) 3.4.6 设置点击区hitArea 鼠标操作相关属性...
来源: Laya3.0_文档 发布时间: 20251010
...括我(!嘻嘻) var a: Laya.Sprite = new Laya.Sprite(); a.graphics.drawCircle(0, 0, 50, "#ff0000"); Laya.stage.addChild(a); a.size(100, 100); a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("tou...
来源: Laya_社区 发布时间: 20161109
...ds IEditorEnv.AssetPreview { constructor() { super(); this.sprite.graphics.drawCircle(100, 100, 50, "#ffff00"); this.sprite.size(100, 100); } async setAsset(asset: IEditorEnv.IAssetInfo): Promise<any> { this.renderTarget = this.sprite; } } 显示效果如下: 二十、自定义资源的导...
来源: Laya3.0_文档 发布时间: 20251010