大约有 1,208 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)
Laya_社区(872) Laya2.0_文档(85) Laya3.0_api(61) Laya2.0_api(58) laya_api(55) Laya_示例(32) Laya2.0_示例(27) Laya3.0_文档(18)
...发后改变后才重新计算,但是如下使用时,会发生错误 var rect:Rectangle = rcurDs.getGraphicBounds(true) rect.x -= rcurDs.pivotX; rect.y -= rcurDs.pivotY; 引用值被改变了 再次使用 getGraphicBounds 时 是个错误的值 2017-11-09 添加评...
来源: Laya_社区 发布时间: 20171109
...,我按照文档里的方法写了一个js文件,在AS3脚本里加入 var worker:* = new Browser.window.Worker("my_task.js"); 执行时总是报错,加载不了my_task.js这个文件,是为什么呢? [warn]Retry to load: D:/LayaBox/1219/bin/h5/my_task.js [error]Failed to load: D:/LayaBox/...
来源: Laya_社区 发布时间: 20180108
...n PanelElastic() { Laya.init(800,600,WebGL); Laya.stage.bgColor="#EEFFCC"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChild(sp); var spchild:Sprite=new Sprite(); spchild.graphics.drawRect(0,0,200,200,"#F...
来源: Laya_社区 发布时间: 20170918
...is.showTotalSeconds(); this.createController(); } private showBg(): void { var bg: Laya.Image = new Laya.Image(this.bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); this.owner.addChild(bg); } private createTimerAnimation(): void { ...
来源: Laya3.0_文档 发布时间: 20230830
... class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } private function listRender(e:MouseEvent,index:int):void { // TODO Auto...
来源: Laya_社区 发布时间: 20151224
...用说了 方法一: function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") as Button;(名字是你在ide里自己设定的) button.on(事件注册) } 方法二: list组件.itemRender = UI页面 function renderHandler(item:UI页面,index:int):void...
来源: Laya_社区 发布时间: 20180507
...写法? 现在来说 尤其是UI里面的按钮 都有一个唯一的var 一般我是通过这个var来绑定事件 ,但是就因为是唯一性的,那么30个按钮就要绑定30次,这不方便,就算使用循环,也不太好吧。 2017-06-20 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20170620
引用的类库问题 var ViewStack=(function(_super){ function ViewStack(){ this._items=null; this._selectedIndex=0; ViewStack.__super.call(this); this._setIndexHandler=Handler.create(this,this.setIndex,null,false); } __class(ViewStack,'laya.ui.ViewStack',_super); 1. ViewStack.__super.call(this); ...
来源: Laya_社区 发布时间: 20180313
...移,这些都是引擎的基本功能,不需要自己实现shader, var mat:StandardMaterial = meshSprite.meshRender.sharedMaterial as StandardMaterial; var transformUV:TransformUV = new TransformUV(); transformUV.offset= new Vector2(); 2017-06-09 3 3 分享 微博 QZONE 微信 cuixueying ...
来源: Laya_社区 发布时间: 20170609
...aya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () ...
来源: Laya_社区 发布时间: 20180315