大约有 449 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0045 秒)
Laya3.0_api(153) laya_api(104) Laya2.0_api(96) Laya_社区(57) Laya3.0_文档(22) Laya2.0_文档(12) Laya2.0_示例(3) Laya_示例(2)
...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
...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会自动重新缓存,同时也可以手动调用...
来源: laya_api 发布时间: 20170422
...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
...方案 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
...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
...需要暴露,上面就都需要加上@property()。 @property( { type : String } ) public text: string = ""; constructor() { super(); } } 5、Runtime的使用差异 3.0的场景与2.0完全不是一个概念, 3.0的runtime只能在场景上的2D根节点Scene2D或预制体的根节点上设置...
来源: Laya3.0_文档 发布时间: 20251010
...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
...播放速度了!/** * 角色创建 */ 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
...; 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
...------------------------ 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