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

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

1171. laya.ui.Radio [ 79%]

...组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.time...

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

1172. httpRequest send返回Request failed Status:0 [ 79%]

...下 var WebGL = Laya.WebGL; // 程序入口 var GameMain = /** @class */ (function () { function GameMain() { //初始化引擎 Laya.init(1136, 640); for (var i = 0; i < 4; i++) { var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr...

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

1173. ReferenceError: Loading_fly is not defined [ 79%]

...1-07 0 0 分享 微博 QZONE 微信 apeCom 赞同来自: var Loading_fly = function (_super) { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0...

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

1174. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 79%]

...均可以设置一个回调 Laya.LoaderManager.prototype["_loadAssets"] = function (arr, complete, progress, type, priority, cache, group) { (priority === void 0) && (priority = 1); (cache === void 0) && (cache = true); var itemCount = arr.length; var loadedCount = 0; var totalSize =...

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

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

...游戏报错 Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to load this file. at Scene.__proto.onAsynLoaded (http://127.0.0.1:62629/game/c...

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

1176. 那个文本溢出需要滚动条怎么弄,API里面就说用Scroll接口,小白 不懂怎么弄 [ 79%]

... QZONE 微信 hj 赞同来自: Laya.init(500,400,Laya.WebGL);createText();function createText(){this.txt = new Laya.Text();this.txt.overflow = Laya.Text.SCROLL;this.txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提供HTML5开发技术方案!\n...

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

1177. 鼠标交互-滑动 [ 79%]

...sition:int; private var endPosition:int; private var button:Sprite; public function Interaction_Swipe() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage....

来源: Laya2.0_示例 发布时间: 20260303

1178. LayaAir项目发布Flash版本 报错 [ 79%]

...owser.as:224] _window = RunDriver.getWindow(); public static var getWindow:Function = function():* { return __JS__('window'); } package { /** * @private */ public function __JS__(value:*):* { return null; } }   这是不再支持转flash版本的意思吗   2017-04-07 添加评论 免费帖 --> ...

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

1179. 绘制直线与折线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 79%]

...   private var sp:Sprite;                   public function Sprite_DrawShapes()         {             Laya.init(500, 300, WebGL);             drawSomething();         }           private function drawSomething():void    ...

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

1180. 如何用代码控制panel的vscroll滚动幅度 [ 79%]

...aya.ui.Panel; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽...

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