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

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

191. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 89%]

...); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); } private function onError():void { trace("parse error"); } private function parseComplete():void { //创建第一个动画 var skeleton0:Skeleton; //从动画模板创建动画播放对象 skeleton0 = templet.buildArmature(0);...

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

192. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 89%]

...ort default class AuthReg extends ui.AuthRegUI { /** 密码临时存储 */ private _tmp_pwd: string = ""; /** 输入框数组 */ private _arrInput: Laya.TextInput = [this.input_nickname, this.input_mobile, this.input_password, this.input_repassword]; /** 标签数组 */ private _arrLabel: Laya.Label...

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

193. UI-Tab [ 89%]

...t Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["../../res/ui/tab1.png", "../../res/ui/tab2.png"]; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage...

来源: Laya_示例 发布时间: 20251130

194. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 89%]

...上显示多个动画。 代码示例: ```typescript public class Main { private var aniPath = "res/bone/spineboy-pma.skel"; private var templet:SpineTempletBinary; private var skeleton:SpineSkeleton; private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.height,...

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

195. 请问laya里的单件模式Singleton怎么实现? [ 89%]

请问laya里的单件模式Singleton怎么实现? 普通as3里可以用private的构造函数方法, 但是laya里构造函数private并不能阻止外部实例化。。。 2016-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

196. 微信小游戏,子域问题。 [ 89%]

...是我直接用demo就报这个错误。 Yangcy • 2018-08-03 11:45 /** @private **/ public class MiniFileMgr{ /**@private 读取文件操作接口**/ private static var fs:* = __JS__('wx.getFileSystemManager()'); /**@private 下载文件接口**/ private static var wxdown:* = __JS__('wx.downloadFi...

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

197. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 89%]

...aya.Box{ public static WID: number = 147; public static HEI: number = 190; private skin_progress_chip:Laya.ProgressBar; private skin_img:Laya.Image; private skin_chipNum:Laya.Text; public skin_btn_use:Laya.Image; private skin_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); th...

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

198. 新人求教!!! [ 89%]

...!!! // 程序入口 class Main{ //需要切换的图片资源路径 private monkey1:string = "res/img/monkey1.png"; private monkey2:string = "res/img/monkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() {       //初始化引擎       Laya.ini...

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

199. 图片像素精准点击问题! [ 89%]

...ent.MOUSE_DOWN 来检测。   下面是我的代码处理: class demo { private down:Laya.Image; constructor() { // 鼠标事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, thi...

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

200. UI-Tab [ 89%]

...t Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["res/ui/tab1.png", "res/ui/tab2.png"]; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...

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