大约有 163 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...bel(); var textFormat:TextFormat = new TextFormat("Microsoft YaHei", 50, "#FF00FF", true, true, true); label.textFormat = textFormat; label.wordWrap = true; label.lWidth = 100; label.lHeight = 100; label.txt = "Hello"; label.lx = 100; label.ly = 100; Laya.stage.addChild(label); //-------------------...
来源: Laya_社区 发布时间: 20170516
...rite; public function MyBox() { super(); graphics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"); addChild(_shape); //加上这句正常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.to(this,{rotation:360},3000); } override pub...
来源: Laya_社区 发布时间: 20170124
...ite: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; qq97659689 • 2017-11-09 1...
来源: Laya_社区 发布时间: 20170215
...(aa); var g:Graphics = aa.graphics; g.alpha(0.5); g.drawRect(0,0,200,200,"#ff0000"); g. alpha()这个方法有bug吧,设置之后出现的结果不对,并不是设定的透明度!! !!而且有个很有意思的问题,把Laya.stage.scaleMode = "noscale";之后, 如果不停...
来源: Laya_社区 发布时间: 20161219
...yaAir遮罩问题 用_headMask.graphics.drawPath(0, 0, Path, {fillStyle: "#ff00ff"}); 画了个100*100的圆角矩形结果遮罩层变成120*120了 附件 : --> HeadImage2.rar 2017-04-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20170406
...age.addChild(sp); var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="哈哈哈哈哈哈哈哈哈哈哈哈哈哈"; text.font="hu" text.pos(600,600); Laya.stage.addChild(text); Laya.timer.once(1000,this,onLoop); } private function onLoop():void { var text:Text=new Text(); tex...
来源: Laya_社区 发布时间: 20160514
...创建 矩形(DrawRectCmd),创建后如图2-1所示。 (图2-1) Offset:矩形相对于Sprite对象,X轴,Y轴的偏移量。 Size:矩形的尺寸,默认使用百分比,也可以取消百分比勾选,采用像素值设置。 Percent:当勾选时,矩形的尺寸为Sprite对...
来源: Laya3.0_文档 发布时间: 20251010
...文字丢失问题 str = "<font color='#8decfa'>获得<a color='#ff1dec'>A物品</a>,<a color='#ff1dec'>B物品</a></font>" 如上面代码所示, 我用一个 <font> 标签包含了两个 <a>标签, <a>标签用逗号隔开 将这个str赋...
来源: Laya_社区 发布时间: 20180503
...题?var a:Sprite = new Sprite(); a.graphics.drawRect(0,0,200, 200, "#00ff00"); a.size(200, 200); a.pos(0, 0); a.on(Event.CLICK, null, function(e:Event):void{ trace("click a"); }) Laya.stage.addChild(a); var b:Sprite = new Sprite(); b.graphics.drawRect(0,0,200, 200, "#0000ff"); b.size(200, 200); b....
来源: Laya_社区 发布时间: 20181026
...alic:false; align:left; vertical-align:middle '> <span style='color:#ff7700'>绵羊重击</span> :充能后再使用跳跳羊,获得额外 <span style='color:#ff7700'>20%伤害</span> </span> 导致这个界面错位,不加最外的span标签就正常,请问...
来源: Laya_社区 发布时间: 20180625