大约有 45 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0048 秒)
... 动画是否出于播放状态 */ isPlayIng:boolean = false /** 空格 */ <em>privateem> space:string = "<span> </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this....
来源: Laya_社区 发布时间: 20180314
...rt laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { <em>privateem> const AniConfPath:String = "fighter/fighter.json"; public function LayaAirDemo() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN...
来源: Laya_社区 发布时间: 20170628
...s://my.oschina.net/u/659068/blog/1564002 class Ball extends Laya.Sprite{ <em>privateem> static cached:boolean = false; <em>privateem> body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.pn...
来源: Laya_社区 发布时间: 20171108
...讯*/ export class Socket extends Laya.EventDispatcher { <em>privateem> pomelo: Pomelo; <em>privateem> mDecorate:Decorate;//装饰器 <em>privateem> mHost: string; <em>privateem> mPort: number; <em>privateem> mConnected: boolean; /** 开启*/ pu...
来源: Laya_社区 发布时间: 20161109
..., true, false); Laya.stage.on(Event.MOUSE_WHEEL,this,this.onMouseWheel); } <em>privateem> onMouseWheel(e:Event):void { e. //没有delta 属性 } } } new laya.Interaction_Scale(); cuixueying • 2017-03-21 15:58 你的d.ts提示文件有问题,去下载最新的替换下!
来源: Laya_社区 发布时间: 20170321
...如下: const { regClass, property } = Laya; @regClass() class Animal { <em>privateem> _weight: number = 0; @property( { type : Number } ) get weight() : number { return this._weight; } set weight(value: number) { this._weight = value; } } 3.2.3 是否序列化保存 通过装饰器定义为组件属性...
来源: Laya3.0_文档 发布时间: 20241014
...]; /** 纪录鼠标按下状态,true为已按下,用于状态判断 */ <em>privateem> mouseDown: boolean = false; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1334, 750, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode =...
来源: Laya2.0_示例 发布时间: 20241123
drawToTexture截大图有问题,会丢失 <em>privateem> nsp:Laya.Sprite; init(): void { this.nsp=new Laya.Sprite(); this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000"); this.nsp.mouseThrough=true; Laya.stage.addChild(this.nsp); this.nsp....
来源: Laya_社区 发布时间: 20220809
...) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } <em>privateem> function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onSwfLoad...
来源: Laya_社区 发布时间: 20151224
...+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } <em>privateem> function listRender(e:MouseEvent,index:int):void { // TODO Auto Generated method stub if(e.type==MouseEvent.CLICK) { if(index==2) { trace("okla") } } } } } 2015-12-24 0 2 分享 微博 QZONE 微信 为什么被折叠?...
来源: Laya_社区 发布时间: 20151224