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

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

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

...; import flash.net.URLRequestMethod; import flash.net.URLVariables; public class 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 { //第一步:加载数...

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

62. 进入后台后的网络问题 [ 59%]

...入前台,这个有事件或者回调吗? 看了安卓的,LayaConch5.class file:///C:\Users\Administrator.DESKTOP-AM0RTMG\AppData\Roaming\Tencent\Users\315617576\QQ\WinTemp\RichOle\`I{H_$7(]}RY}87O[N@@{VW.png 在js、as代码里如何侦听到? 2017-06-21 0 0 分享 微博 QZONE 微信 Monic...

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

63. 官方视频教程中飞机大战 "this.addChild is not a function" [ 59%]

... this.bg1.loadImage("war/background.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.Sprite);报错 "TypeError: this.addChild is not a function    at BackGround (file:///D:/test/laya/myLaya/src/BackGround.js:6:14)    at Game (file:///D:/tes...

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

64. 关于位图字体的valign属性问题 [ 58%]

...isplay.Sprite; import laya.display.Text; import laya.utils.Handler; public class GraphicCircle extends Sprite { private var mFontName:String="dataFont"; private var mBitmap:BitmapFont; public function GraphicCircle() { super(); Laya.init(550,400); mBitmap=new BitmapFont(); mBitmap.loadFont("date/dat...

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

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

...示这个img。我们新建个项目。代码如下所示: ```typescript class LayaUISample { constructor() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Spri...

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

66. 【LIST无法拖动】参照官方实例做的 [ 57%]

...ox = Laya.Box; import Image = Laya.Image; import Text = Laya.Text; class Item extends Box {     public static WID: number = 400;     public static HEI: number =40;     private text_guanqia: Text;     private text_guanqia_info: Text;      private img: I...

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

67. 求问:西文字体下半部分被遮挡,怎么处理? [ 56%]

...请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: class TextRender getFontSizeInfo 函数,最后部分    var xoff:int = Math.max( orix - pixelBBX[0], 0);    var yoff:int = Math.max( oriy - pixelBBX[1], 0);    var bbxw:int = pixelBBX[2] - pixelBBX[0];    var bbxh:int ...

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

68. Windows扩展 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...Main.ts中添加代码: import { testLib } from "./TestLib"; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onStart() { alert(testLib.nativeAdd(10, 11)); } } 因为LayaNative的扩展功能只支持Windows平台,所以只能通过Windows预览或发布...

来源: Laya3.0_文档 发布时间: 20251010

69. [含Demo]Laya2.0.1出包微信小游戏Android黑屏 expected Number(uniform4f) [ 55%]

...tAnimationFrame callback function Error: expected Number(uniform4f)<div class="eruda-json eruda-hidden"></div> at e.value (wagame://WAGameVConsole.html:27576:37881) at new e (wagame://WAGameVConsole.html:27576:36645) at t.value (wagame://WAGameVConsole.html:27576:32217) at t.value (wagam...

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

70. 自定义组件用的layaeditor.d.zip报错 [ 54%]

...,所以只好上论坛求助了。 比如这么一个报错的地方: class Component extends laya.ui.Component implements laya.ui.IComponent { _getBoundPointsM(ifRotate?: boolean): Array<any>; disableLayout: boolean; protected resetLayoutX(): void; protected resetLayoutY(): void; } 类lay...

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