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

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

1801. 求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

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

...染模式 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

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

...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

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

...染模式 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

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

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

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

1806. 动效模板(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

1807. laya.physics.Physics [ 59%]

...此容器作为物理世界坐标世界,进行坐标变换,默认值为stage 设置特定容器后,就可整体位移物理对象,保持物理世界不变PhysicsPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  Physics()Physics  enable(options:...

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

1808. 微信小游戏报错 the .lh file root type must be Scene [ 58%]

...n3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addChildAt(scene, 0); this.InitCamera(scene); return scene; } 微信小游戏报错 Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Erro...

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

1809. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 58%]

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

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

1810. 横屏输入键盘 [ 58%]

...phone上不能正常显示的问题 请问下键盘事件的监听只能用stage么?其他对象监听不起作用,谢谢 android 新版打包要求输入js或者json,而不是html路径 我应该如何处理 把textInput的type设置为number的时候无法设置最多能输入的字数 TextI...

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