大约有 1,204 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0053 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...es:Float32Array, worldMatrixs:Float32Array, parentIndices:Int16Array):void private [NATIVE] Animator _updateAvatarNodesToSprite():void private Animator addControllerLayer(controllderLayer:AnimatorControllerLayer):void 添加控制器层。 Animator addState(state:AnimatorState, layerIndex:i...
来源: Laya2.0_api 发布时间: 20190513
...停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurikenParticleSystem: Array<ShurikenP...
来源: Laya3.0_文档 发布时间: 20241014
...:)。 3、宏编译示例代码 3.1 LayaFlash单行宏编译写法private function byteArrayReadIntTest():void { var byteArray:ByteArray = new ByteArray(); byteArray.writeInt(100); byteArray.position = 0; var value:int; /*[IF-FLASH]*/value = byteArray.readUnsignedInt(); //[IF-SCRIPT]value = ...
来源: Laya_社区 发布时间: 20151106
...点击事件不起作用? /**交易按钮*/ private var m_mc_trade:Animation; /**挂机按钮*/ private var m_btn_auto:Button; m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事...
来源: Laya_社区 发布时间: 20170412
...中的回调函数为什么只能用Handler创建? 比如一个主类: private var score:int; public function main():void { new class(callback); } private function callback(num:int):void { this.score = num; var tmp:int = this.score; trace(tmp); } 另外一个类:class.as 里...
来源: Laya_社区 发布时间: 20161125
....length; i < n; i++) this.playSkinAnimation(spirit3D._childs[i], index); } private loadUI(): void { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png...
来源: Laya_示例 发布时间: 20241124
...edMap加载完成后使用tileWidth和tileHeight获取单块地图的大小private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height),Handler.create(this,onComplete)); } pri...
来源: Laya_社区 发布时间: 20160717
一个按钮按下弹起怎么加缓动效果 private function pm_down():void { var scaleValue:Number = 0.9; mainPage.pm_main.scale(scaleValue, scaleValue); } private function pm_up():void { var scaleValue:Number =1; mainPage.pm_main.scale(scaleValue, scaleValue); } 2017-03-18 添加评论 免费...
来源: Laya_社区 发布时间: 20170318
...请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: private function onPlayMusic(e:Event=null):void { trace("播放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效")...
来源: Laya_社区 发布时间: 20170330
...放技能 写法如下: stage.on(Event.MOUSE_DOWN, this, onMouseDown); private function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } private function onMouseMove(e:Event= null):void { va...
来源: Laya_社区 发布时间: 20210203