大约有 110 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0046 秒)
...麻烦帮看一下这种遮罩bar的进度条设了遮罩不起作用 Laya.loader.create 进度回调函数执行两次 关于环形进度条,进度不能重置问题 这种进度条怎么实现? 官方提供的进度条示例 只能设置progress.png的九宫, 里面的progress$bar.png 无法...
来源: Laya_社区 发布时间: 20170206
...n; import laya.display.Stage; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public functio...
来源: Laya2.0_文档 发布时间: 20210715
...直在动,多久会执行一次,一帧吗?和frameLoop一样? Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2018-04-12 10:13 浏览: 1624 关注: 3 人 lhb1990711 • 2018-04-12 22:12 找到pos函数了 是在基础类Sprite类下面的 Text继承Sprite 所以...
来源: Laya_社区 发布时间: 20180411
...正确获取宽高。 3. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png", Handler.create(this, function() { var texture:Texture = Laya.loader.getRes("res/apes/monkey2.png"); var sp:Spirte = new Sprite(); sp.graphics.drawTexture(tex...
来源: Laya2.0_文档 发布时间: 20210715
...正确获取宽高。 1. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png",Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.height);...
来源: Laya2.0_文档 发布时间: 20210715
...32628"; const monkey1Path = "https://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.Ti...
来源: Laya_社区 发布时间: 20190927
...正确获取宽高。 1. **直接调用size设置:** ```typescript Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.hei...
来源: Laya2.0_文档 发布时间: 20210714
...种进度条怎么实现? 希望能介绍下编译as的大致过程 Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2017-10-12 19:34 浏览: 845 关注: 2 人 apeCom • 2017-10-12 19:39 谢谢
来源: Laya_社区 发布时间: 20171012
... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.m...
来源: Laya_社区 发布时间: 20170720
...c.js 步骤1)加载JS 2)加载完回调 3)new需要的类 //加载 Laya.loader.load(getModuleJSPath("abc.js"), Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{ //加载完回调 __JS__('window.eval(data + "//# sourceURL=" + "abc.js")'); //new需要...
来源: Laya_社区 发布时间: 20180507