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

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

1781. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 61%]

...rt default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.a...

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

1782. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 60%]

...script //初始化引擎 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var ...

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

1783. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 60%]

...or() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的U...

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

1784. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 60%]

...ton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.h...

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

1785. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 60%]

...染模式 Laya.init(600, 400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //按钮资源路径 var skin = "./res/img/btn_test.png"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建...

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

1786. 绘制曲线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 60%]

...ackage {     import laya.display.Sprite;     import laya.display.Stage;     import laya.webgl.WebGL;            public class Sprite_DrawShapes     {         private var sp:Sprite;                    public function Sprite_DrawShapes()   ...

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

1787. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 60%]

...染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = ne...

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

1788. 求HTTP相关的文档或者例子谢谢了 [ 59%]

...ss HTTP_URLRequest extends Sprite { public function HTTP_URLRequest() { if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { //第一步:加载数据:创建URLLoader对象 var urlLoader:URLLoader=new URLLoader(); //第二...

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

1789. 小程序开放域相关 [ 59%]

...        trace("pagepage"); //                    Laya.stage.event(Event.MOUSE_DOWN); //                    this.rankView.list["_content"].event(Event.MOUSE_DOWN,null);                 }             } //                        ...

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

1790. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 59%]

...in() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //加载图集资源,加载成功后添加到舞台 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例导出的UI类 var efc:Effec...

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