大约有 73 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0030 秒)
...Laya.Stage; (function() { //初始化舞台 Laya.init(500, 300); drawSomething(); })(); function drawSomething() { var sp = new Sprite(); Laya.stage.addChild(sp); ...
来源: Laya2.0_文档 发布时间: 20210715
... this.hScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(this.hScrollBar); //创建提示信息 createPromptText(this.hScrollBar) } /***创建提示信息***/ function createPromptText(scrollBar) { //实例化提示信息 this.promptText = new Text(); //提...
来源: Laya2.0_文档 发布时间: 20210714
... this.vScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(this.vScrollBar); //创建提示信息 createPromptText(this.vScrollBar) } /***创建提示信息***/ function createPromptText(scrollBar) { //实例化提示信息 this.promptText = new Text(); //提...
来源: Laya2.0_文档 发布时间: 20210715
...is.hScrollBar.changeHandler = new Handler(this, this.onChange); //加载到舞台 Laya.stage.addChild(this.hScrollBar); //创建提示信息 this.createPromptText(this.hScrollBar) } /***创建提示信息***/ private createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 this.promptTex...
来源: Laya2.0_文档 发布时间: 20210715
...is.vScrollBar.changeHandler = new Handler(this, this.onChange); //加载到舞台 Laya.stage.addChild(this.vScrollBar); //创建提示信息 this.createPromptText(this.vScrollBar) } /***创建提示信息***/ private createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 this.promptTex...
来源: Laya2.0_文档 发布时间: 20210715
...ge = new Image(bgSkin); //设置图片大小 bg.size(224, 302); //位置居舞台中间 bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height -bg.height >> 1); //加载到舞台 Laya.stage.addChild(bg); } /***创建计数器切片***/ private function createCounter():void { //实例化计数器...
来源: Laya2.0_文档 发布时间: 20210714
... constructor() { //初始化舞台 Laya.init(500, 300); this.drawSomething(); } private drawSomething(): void { this.sp = new Sprite(); ...
来源: Laya2.0_文档 发布时间: 20210715
...回调 vScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(vScrollBar); //创建提示信息 createPromptText(vScrollBar) } /***创建提示信息***/ private function createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 promptText=new Text()...
来源: Laya2.0_文档 发布时间: 20210715
...回调 hScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(hScrollBar); //创建提示信息 createPromptText(hScrollBar) } /***创建提示信息***/ private function createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 promptText=new Text()...
来源: Laya2.0_文档 发布时间: 20210714
...心点(0,0)作为动画图形的中心点,那就会出现问题,在UI舞台显示的时候超出坐标的地方,默认是无法通过调整宽高来设置点击区域的。 (图7) 图7中`GraphicNode:2`代表每一个动画节点,在选中`第0帧`可以看到`2`正是目标...
来源: Laya2.0_文档 发布时间: 20210715