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

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

401. 使用Handler 返回name 始终是 undefined [ 58%]

...create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupContent("注册成功!"); } } 跟录像学习的时候,输入上面的方法 , onClose里返回的name总是undefined ,应该返回 “s...

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

402. laya.d3.core.scene.BaseScene [ 57%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会自动重新缓存,同时也可以手动调用...

来源: laya_api 发布时间: 20170422

403. MovieClip的target和currentTarget属性为undefined? [ 56%]

...t属性为undefined? private function showNowPic():void{ for each(var ul:String in pics){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target); MovieClip(e.curren...

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

404. native下使用ttf字体的问题 [ 56%]

...方案 Laya_Aaron • 2018-08-06 16:09 webglcharimage.as 里面 var sFont:String = "normal 100" + nFontSize +"px Arial"; 改为 var sFont:String = "normal 100 " + font; ggg333 • 2018-08-06 16:39 依然会出问题,然而我没办法给你demo,小demo出不来问...

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

405. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 56%]

...ler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/button-7.png"; private clipSkin: string = "res/ui/num0-9.png"; private bgSkin: string = "res/ui/coutDown.png"; private counter: Clip; private currFrame: number; private controller: Button; constructor() { // ...

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

406. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...需要暴露,上面就都需要加上@property()。 @property( { type : String } ) public text: string = ""; constructor() { super(); } } 5、Runtime的使用差异 3.0的场景与2.0完全不是一个概念, 3.0的runtime只能在场景上的2D根节点Scene2D或预制体的根节点上设置...

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

407. 如何在layaair 上使用get方法的xml ,获得节点属性? [ 55%]

...cordId:XmlDom = recordItems[0]; //获取节点中的节点属性 var idStr:String = recordId.textContent; 2016-06-26 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: @qianyifei   LayaAir下的XML是使用原生JS下的XMLDom实现的,请查询js原生下XMLDom的核心方法及属性(XML...

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

408. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 54%]

...播放速度了!/** * 角色创建 */ public function init(interval,type:String,hp:Number,speed:Number,hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.camp = camp; this.heroType = heroTy...

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

409. 使用webgl之后toDataUrl返回黑色的图像 [ 54%]

...; Laya.stage.addChild(sp); } private function onClick():void { var htmlsss:String=(Laya.stage.getChildAt(0) as Sprite).drawToCanvas(100,100,0,0).getCanvas().toDataURL(); var sp2:Sprite = new Sprite(); sp2.name='drawCanvas'; sp2.x = 300; sp2.loadImage(htmlsss); Laya.stage.addChild(sp2); } } }   Laya...

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

410. module写法的模块无法使用,其他地方使用会报错 [ 54%]

...------------------------ module AM{ export class AC { public static myname:string = "I'm AC!"; } } export default AM; b.ts ---------------------------- module AM{ export class BC { public static myname:string = "I'm BC!"; } } export default AM; c.ts -------------------------- import AM from './a'; /...

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