大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0097 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...tance; // this.centerY = this.ball.y + Math.sin(this.angle2)*distance; } } function CreateBezierPoints(anchorpoints, pointsAmount) { var points = ; for (var i = 0; i < pointsAmount; i++) { var point = MultiPointBezier(anchorpoints, i / pointsAmount); points.push(point); } return points; } functio...
来源: Laya_社区 发布时间: 20171108
...源后再加载就无法显示了!有demo! private var clip:Clip; public function LayaSample() { Laya.init(1920,1080,WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); Laya.stage.on(Event.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.p...
来源: Laya_社区 发布时间: 20171128
...nSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) trace('海拔:' + info.altitude + 'm' +...
来源: Laya_社区 发布时间: 20180402
...• 2017-01-06 11:21 "this.sList.getItem(...).getChildByName is not a function" weiyongwill • 2017-01-06 14:39 经过测试在List.mouseHandler中点其他的元素都能通过e.target.name获取到名字,唯独textinput通过e.target.name获取到名字为空,而且e.type为mousedow...
来源: Laya_社区 发布时间: 20170105
...LayaAir引擎 Byte writeArrayBuffer的Bug __proto.writeArrayBuffer=function(arraybuffer,offset,length){ (offset===void 0)&& (offset=0); (length===void 0)&& (length=0); if (offset < 0 || length < 0)throw "writeArrayBuffer e...
来源: Laya_社区 发布时间: 20180328
...: 这是demo 请官方一定要重视!! private var clip:Clip; public function LayaSample() { Laya.init(1920,1080,WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); Laya.stage.on(Event.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.pn...
来源: Laya_社区 发布时间: 20171128
...可以点击,f不能点击.但是吧size那行代码注释掉就正常了. function createImg(){ var img = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.png" : "img/flower3.jpg" img.loadImage(s); img.on(Laya.Event.CLICK, this, () =>...
来源: Laya_社区 发布时间: 20180412
...arget=[object Object] game.js:116 target=[object Object] game.js:116 setTo=function (type,currentTarget,target){ this.type=type; this.currentTarget=currentTarget; this.target=target; return this; } game.js:116 stopPropagation=function (){ this._stoped=true; } */ } 2018-10-31 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20181031
...清除? 2、我把下面的对象添加到stage中 var SightBead = (function () { function sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#f...
来源: Laya_社区 发布时间: 20171012
...,影响惯性力度和时长。 */ public function startDrag(area:Rectangle = null, hasInertia:Boolean = false, elasticDistance:Number = 0, elasticBackTime:int = 300, data:* = null, disableMouseEvent:Boolean = false, ratio:Number = 0.92):void { 2018-05-0...
来源: Laya_社区 发布时间: 20180428