大约有 387 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya3.0_api(106) Laya_社区(101) Laya2.0_文档(64) Laya2.0_api(57) laya_api(41) Laya3.0_文档(12) Laya2.0_示例(4) Laya_示例(2)
list的Handler.create的点击事件第二次点击不生效 list.selectHandler = Handler.create(this,onRender, null, false);//滚动列表点击事件 private function onRender(index:int):void{ list.setItem(lastSelect,arrConver(lastSelect,false));//取消选中效果 list.setItem(index,arrConver(i...
来源: Laya_社区 发布时间: 20171129
Laya.Handler为什么注册不成功? this.scrollView.mouseHandler = Laya.Handler.create(this,this.onScrollMouse) this.scrollView.mouseHandler = new Laya.Handler(this, this.onScrollMouse);我在scrollView中有个mouseHandler的Laya.Handler变量,想直接注册到这个变量上,但是两种...
来源: Laya_社区 发布时间: 20180814
...ite; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; public class addPic { private var picUrl:String; private var pic:Sprite; private var picX:int; private var picY:int; public function addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.lo...
来源: Laya_社区 发布时间: 20170522
...n; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 private var _tip:TipManager;//实例化TipManager public function ToolTipDemo()...
来源: Laya_社区 发布时间: 20161115
...tage; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_DisplayImage { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = ...
来源: Laya2.0_文档 发布时间: 20210715
...rText.y = 400; Laya.Tween.from(letterText,{y:100},3,Laya .Ease.backOut,new Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以...
来源: Laya_社区 发布时间: 20180620
...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 ...
来源: Laya_社区 发布时间: 20180621
... = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...
来源: Laya2.0_文档 发布时间: 20210715
... import laya.display.Text; import laya.resource.Texture; import laya.utils.Handler; import laya.display.BitmapFont; public class TestBitmapFont { //自定义文件名称 private var mFontName:String = "diyFont"; private var mBitmapFont:BitmapFont; public function TestBitmapFont() { Laya.init(550, 40...
来源: Laya2.0_文档 发布时间: 20201114
...10;// this.publicSpaceList.vScrollBarSkin = ""; this.publicSpaceList.selectHandler = new Laya.Handler(this, this.onListSelect); this.publicSpaceList.renderHandler = new Laya.Handler(this, this.updateListItem); this.publicSpaceList.array = ; this.addChild( this.publicSpaceList ); public setPublicSpac...
来源: Laya_社区 发布时间: 20170923