大约有 87 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
...; 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
...入前台,这个有事件或者回调吗? 看了安卓的,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
... 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
...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
...示这个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
...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
...请: 与内容相关的链接 提交 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
...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
...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
...,所以只好上论坛求助了。 比如这么一个报错的地方: 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