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

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

1631. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 66%]

...mber = 6; private playerHB:logic.UI.role.PlayerHealthBar; private loadHp():void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.playerHB.height / 2; this.playerHB.y = 500; this.playerHB.txtName.text = "搞个毛啊"; ...

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

1632. Laya.Sprite loadImage 参数问题 [ 66%]

...错 return Img; } /**创建红色滤镜位图**/ private creteRedFilter():void{ //颜色滤镜矩阵,红色 var colorMatrix:any = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0, 0, //G 0, 0, 0, 0, 0, //B 0, 0, 0, 1, 0, //A ]; //创建红色颜色滤镜 var redFilter:Laya.ColorFilter = new Laya.ColorFilter(colorM...

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

1633. 屏幕适配-自动竖屏 [ 66%]

...AL; Laya.stage.bgColor = "#232628"; this.showText(); } private showText(): void { var text: Text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1...

来源: Laya2.0_示例 发布时间: 20260303

1634. 屏幕适配-自动横屏 [ 66%]

...AL; Laya.stage.bgColor = "#232628"; this.showText(); } private showText(): void { var text: Text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> ...

来源: Laya2.0_示例 发布时间: 20260303

1635. swf预加载问题 [ 66%]

...h(YUAN); mc.on(Event.LOADED,this,load); } public function load(e:* = null):void{ if(assets.length > 0){ mc.load(assets.shift()); }else{ onAssetsLoaded(); } } private function onAssetsLoaded(e:*=null):void { this.event(BEFORLOADERFINISH); } } } 2016-12-13 添加评论 免费帖 --> 分享 微博 Q...

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

1636. 新人求教!!! [ 66%]

...key2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{    //创建一个实例    this.img = new Laya.Sprite();    //添加到舞台    Laya.stage.addChild(this.img);    //显示初始化绘制的图片    this.switchImg();    //侦听switchImg中图片区域...

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

1637. 文本-单行输入 [ 66%]

...ya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 移动端输入提示符 inputText.prompt...

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

1638. 1.7.13 版本 musicVolume 和setMusicVolume 设置音量 音乐会重新从开始播放 [ 66%]

...码 和背景音乐 //播放背景音乐 public function gameSoundPlay():void {      SoundManager.playMusic("GameSound/bgSound.mp3", 0); } //音量调节 public function yyHSliderChanged(parm):void { SoundManager.setMusicVolume(parm/100); } bgSound.rar 2018-03-30 0 7 分享 微博 QZONE 微信 ...

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

1639. 文本-字数限制 [ 66%]

...ya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 设置字体样式 inputText.bold = true;...

来源: Laya2.0_示例 发布时间: 20260303

1640. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 66%]

...方 */ public class GameUI extends TestSceneUI { public function GameUI():void { super(); //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage...

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