• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0066 秒)

891. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 63%]

...Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } new LayaUISample; ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数不仅仅有接收地址的url还接收base64和s...

来源: Laya2.0_文档 发布时间: 20210715

892. VScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 63%]

....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(vScrollBar); //创建提示信息 createPromptText(vScrollBar) } /***创建提示信息***/ private function createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 promptText=new Text(); //提示框字...

来源: Laya2.0_文档 发布时间: 20210715

893. HScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 63%]

....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(hScrollBar); //创建提示信息 createPromptText(hScrollBar) } /***创建提示信息***/ private function createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 promptText=new Text(); //提示框字...

来源: Laya2.0_文档 发布时间: 20210714

894. 文本-滚动文本 [ 63%]

...derColor = "#FFFF00"; txt.fontSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ function startScrollText(e) { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on...

来源: Laya_示例 发布时间: 20251219

895. 屏幕方向:自动横屏与自动竖屏的设置详解(ActionScript-LayaAir基础篇(AS3)-屏幕适配) [ 63%]

...g.centerX = 0; img.centerY = -70; img.skin = "res/monkey2.png"; Laya.stage.addChild(img); //文字 var text:Label = new Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } } } ``` #### 关于常量...

来源: Laya2.0_文档 发布时间: 20210714

896. Panel初始化BUG [ 63%]

...Ready)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, 300, "#ffcccc"); panel.width = 300; panel.height = 300; panel.pos(200, 300); let image = new Laya.Image(); image.skin = "comp/image.png"; image.pos(100, ...

来源: Laya_社区 发布时间: 20211108

897. 绘制三角形、多边形及根据数据绘制图案(TypeScript-LayaAir基础篇(TS)-矢量图) [ 63%]

...      this.sp = new Sprite();             Laya.stage.addChild(this.sp);             //画三角形             this.sp.graphics.drawPoly(30, 28, [0, 100, 50, 0, 100, 100], "#ffff00");            }     } } new laya.Sprite_DrawShapes(...

来源: Laya2.0_文档 发布时间: 20210714

898. HScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 63%]

....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(this.hScrollBar); //创建提示信息 createPromptText(this.hScrollBar) } /***创建提示信息***/ function createPromptText(scrollBar) { //实例化提示信息 this.promptText = new Text(); //提示框字体 thi...

来源: Laya2.0_文档 发布时间: 20210714

899. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 63%]

..."res/room/othersay.png"; paopao.imgJudge.visible = true; } paopao.imgSayBg.addChild(div); gRoomView.chatBox.addChild(paopao); //更新高度 gRoomView.chatBox.height = gRoomView.chatBox.height + paopao.height; gRoomView.chatPanel.refresh(); gRoomView.chatPanel.vScrollBar.value = gRoomView.chatPanel....

来源: Laya_社区 发布时间: 20170911

900. VScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 63%]

....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(this.vScrollBar); //创建提示信息 createPromptText(this.vScrollBar) } /***创建提示信息***/ function createPromptText(scrollBar) { //实例化提示信息 this.promptText = new Text(); //提示框字体 thi...

来源: Laya2.0_文档 发布时间: 20210715