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

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

621. Tween循环动画 [ 68%]

...数 Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num++; trace(num); Tween.clearTween(onTween1); Tween.to(sp,{x:100},1000,Ease.backIn,Handler.create(this,onTween2)); } private function onTween2():void { //...

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

622. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 68%]

...GL; import ui.ComponentDemoUI; public class ComponentDemo { //资源路径 private var skin1:String="res/component/check.png"; private var skin2:String ="res/component/check_2.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(1334,750, WebGL...

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

623. TimeLine调用destroy报错&执行完成后回到起点 [ 68%]

... Stage.__proto._loop (HMain.max.js:16892) at loop (HMain.max.js:5472)    private function createTimerLine():void { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,nul...

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

624. 运用多个缓动动画或者大的缓动,在ios上运行造成黑屏 [ 67%]

... qwer535305054 赞同来自:  Laya.timer.loop(1000, this, this.setTime); private setTime(){             this.downTime--;             Tween.to(img1, { x: randomx, y: randomy }, 250);             Tween.to(img2, { x: randomx, y: randomy }, 250);             Tween.to(img3, { x: ...

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

625. 网络通信 · LayaAir3文档 · LAYABOX [ 67%]

...加回调方法 http.on(Laya.Event.PROGRESS, this, this.processHandler); } private processHandler(data:any): void { console.log("processHandler"); } private errorHandler(error:any): void { console.log("errorHandler"); } private completeHandler(data:any): void { console.log("completeHandler"); } } ne...

来源: Laya3.0_文档 发布时间: 20250104

626. 文本-禁止编辑 [ 67%]

...aleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; inputText.text = "这...

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

627. laya.media.SoundChannel [ 67%]

...rotected Methods  MethodDefined By  __runComplete(handler:Handler):void private SoundChannelProperty DetailcompleteHandlerpropertypublic var completeHandler:Handler 播放完成处理器。 durationproperty duration:Number  [read-only] 获取总时间。 Implementation     public function ...

来源: laya_api 发布时间: 20170929

628. Laya3D [ 67%]

...个 Laya3D 实例。 Laya3D  _cancelLoadByUrl(url:String):void[static] private Laya3D  init(width:Number, height:Number, config:Config3D = null, compolete:Handler = null):void[static] 初始化Laya3D相关设置。 Laya3DPublic Constants ConstantDefined By  ANIMATIONCLIP : String = ANIMATIONC...

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

629. SCALE_FIXED_WIDTH适配屏幕的问题 [ 67%]

...rowser/6.2 T     代码如下,另附上demo  class Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;       ...

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

630. 2D灯光与网格 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...) mesh1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh2: Laya.Sprite; private light1Render: Laya.FreeformLight2D; private mesh1Render: Laya.Mesh2DRender; private mesh2Render: Laya.Mesh2DRender; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次...

来源: Laya3.0_文档 发布时间: 20251010