大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
Laya_社区(706) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
... { super.initialize(); } private var names:String=""; override public function set dataSource(value:*):void { super.dataSource = value; if(dataSource==null) return; ...
来源: Laya_社区 发布时间: 20170703
...; Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { var texture:Texture=Loader.getRes('res/apes/monkey2.png'); var sp:Sprite=new Sprite(); var matrix:Matrix=new Matrix(); matrix.rotate(Math.PI/4); matrix.translate(150,100); sp.graphics.drawTe...
来源: Laya_社区 发布时间: 20170414
...", "resource/ui/vscroll$up.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var arr:Array = [];//创建一个数组,用于存贮列表的数据信息。 for (var i:int = 0; i < 20; i++) { arr.push({label: "item" + i}); } var list:List = new List();//创...
来源: Laya3.0_api 发布时间: 20231115
...entional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): (图2)
来源: Laya2.0_文档 发布时间: 20210715
...as/atlas_res.json",type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //获取图集下的单张小图 var texture:Texture=Laya.loader.getRes("atlas_res/01.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture,200,100); Laya.stage.addChild(sp); } ...
来源: Laya_社区 发布时间: 20160707
... 10000).update = Laya.Handler.create(this, this.updateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest.rar 2019-07-22 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20190722
...状态脚本) class AnimatorStateScriptTest extends AnimatorStateScript { private var _text:Text = null; public function get text():Text { return _text; } public function set text(value:Text):int { _text = value; } public function AnimatorStateScriptTest() { } /** * 动画状态开始时执行。 */...
来源: Laya2.0_文档 发布时间: 20210714
....bgColor = "#232628"; //创建图片 createImage(); } /***创建图片***/ private function createImage():void { //实例化图片 var img:Image = new Image("../../../../res/ui/dialog (3).png"); //设置位置 img.pos(165, 62.5); //加载到舞台 Laya.stage.addChild(img); } } } ```
来源: Laya2.0_文档 发布时间: 20210714
...018-02-10 10:59 浏览: 595 关注: 2 人 183*****288 • 2018-02-10 13:31 private function GetUser():void{ var data:Array = []; for(var m:number =0;m<1;m++){ data.push({m_label:{text:"one"}}); data.push({m_label:{text:"two"}}); data.push({m_label:{text:"three"}}); d...
来源: Laya_社区 发布时间: 20180210
...ddEventListener(Event.COMPLETE,onCom); loader.load(new URLRequest("aaa")); private function onCom(event:Event):void { // TODO Auto-generated method stub addChild(event.target.content) } 使用宏命令(Laya_Publish_H5)翻译到layaIflash编译器可以看到效果,有什么问题可以随时...
来源: Laya_社区 发布时间: 20151214