大约有 163 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
...n.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20,"#FF0000"); let hitA:Laya.HitArea = new Laya.HitArea(); hitA.hit = g; this.closeBtn.hitArea = hitA; // 写法二 this.closeBtn.graphics.drawRect(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+...
来源: Laya_社区 发布时间: 20170920
...r sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,100,100,"#ff9900"); var hitarea:HitArea = new HitArea(); var graphics:Graphics = new Graphics(); graphics.drawRect(100,100,100,100,"#ff9900"); hitarea.hit = graphics; sprite.hitArea = hitarea; 2017-04-28 0 0 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20170428
...Child(sp); sp.x = 250; sp.y = 300; sp.graphics.drawRect(-50,-100,100,100,"#ff0000"); sp.hitArea = new laya.maths.Rectangle(-50,-100,100,100); sp.on(laya.events.Event.CLICK,this,this.spHandler); function spHandler() { sp.graphics.clear(); var rc:number = Math.floor(Math.random()*0xfff...
来源: Laya_社区 发布时间: 20180106
...20,clientHeight*0.2-dialogButton.height-20); dialogButton.labelColors = "#7FFFD4,#A52A2A,#0000FF,#F0F8FF"; dialog.addChild(dialogButton);上面的方法新建了一个按钮在dialog里面,文本翻页之后我想删掉这个按钮,但是 dialogButton.destroy(); 以及 dialog.removeChild(dialogB...
来源: Laya_社区 发布时间: 20180726
...如何绘制一个渐变矩形? this.graphics.drawRect(0, 0, 500, 350, "#ffffff") drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 参数fillColor:* — 填充颜色,或者填充绘图的渐变对象 我找不到关于这个渐...
来源: Laya_社区 发布时间: 20180904
...roke = 3; //文本标签字体描边宽度 this.radio.labelStrokeColor = "#ffffff"; //描边颜色 this.radio.strokeColors = "#000000, #c6ff00, #001aff"; //各状态下的描边颜色 this.radio.labelColors = "#0100ff, #16fa0e, #ff0000"; //各状态下的文本颜色 // this.radio.selected = true; /...
来源: Laya3.0_文档 发布时间: 20251010
...oader.load(url, Handler.create(this, byteLoadComplete,[url]),null,Loader.BUFFER); private function byteLoadComplete(url:String):void { var buffer:ArrayBuffer = Laya.loader.getRes(url); var byte:Byte = new Byte(buffer); byte.writeArrayBuf...
来源: Laya_社区 发布时间: 20170417
... = "#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.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.lo...
来源: Laya_社区 发布时间: 20170519
...xture; // tempSpr2.graphics.drawRect(0,0,100,500,"#ff00ff"); //tempSpr2.scaleY = -1; tempSpr2.y = 100; // tempSpr2.scaleY = -1; // tempSpr2.y = maxY + GameManage.TopHeight; ...
来源: Laya_社区 发布时间: 20170508
... var ctx=Laya.Render._context.ctx; ctx.fillStyle="#FF0000"; ctx.fillRect(0,0,300,150); ctx.clearRect(20,20,100,50); } } new GameMain(); Laya.Stat.show(0, 0);//TODO 显示帧率 2017-03-17 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20170316