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

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

511. 切换位图,点击图片距离容器的区域也会触发点击事件 [ 54%]

...switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) } }这是官方的切换位图的示例,但是...

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

512. laya.ui.LayoutBox_API3.0 [ 54%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

来源: Laya3.0_api 发布时间: 20231115

513. laya.ui.Image_API3.0 [ 54%]

...n Image_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var bg:Image = new Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x ...

来源: Laya3.0_api 发布时间: 20231115

514. laya.ui.TipManager_API3.0 [ 54%]

...defaultTipHandler destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

来源: Laya3.0_api 发布时间: 20231115

515. laya.ui.ViewStack_API3.0 [ 54%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D items left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scen...

来源: Laya3.0_api 发布时间: 20231115

516. laya.map.TileAniSprite [ 54%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

来源: Laya2.0_api 发布时间: 20190513

517. laya.ui.VBox_API3.0 [ 53%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

来源: Laya3.0_api 发布时间: 20231115

518. laya.ui.HBox_API3.0 [ 53%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

来源: Laya3.0_api 发布时间: 20231115

519. laya.display.Text_API3.0 [ 53%]

...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var text:Text = new Text();//创建一个 Text 类的实例对象 text 。 text.text = "这个是一个 Text 文本示例...

来源: Laya3.0_api 发布时间: 20231115

520. 为何用MovieClip加载Swf会造成H5卡死,且不报错? [ 53%]

...造成H5卡死,且不报错? var mc:MovieClip = new MovieClip(); Laya.stage.addChild(mc); mc.on("complete", this, function (evt:Event){ trace("swf complete"); }); mc.load("../../res/swf/mapFlash.swf"); 为何加了这段代码,整个H5就如“死机”,点浏览器的刷新都不管用? ...

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