大约有 2,546 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0068 秒)
....preSwfAssets方法,通过预加载方式解决这个问题。 package { import flash.display.Loader; import flash.display.LoaderInfo; import flash.display.Sprite; import fash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import flash.net.URLRequest; public cl...
来源: Laya_社区 发布时间: 20151123
... b.length == 2 ? b : "0" + b; return "#" + r + g + b; } })();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Browser = Laya.Browser; import Handler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class BlendMode_Lighter { // 一只凤...
来源: Laya_示例 发布时间: 20240930
...序(推荐用FlashBuilder),编写代码如下: ```java package { import laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class MaskDemo { private var Res:String; private var img:Sprite; public function MaskDemo() { Laya.init(1136,640); //设置舞台背景...
来源: Laya2.0_文档 发布时间: 20210714
..." + Math.floor(value * 100) + "%"); } } new UI_ProgressBar();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { private progressBar: ProgressBar; constructor() { // 不支持WebGL时...
来源: Laya2.0_示例 发布时间: 20240930
...RateBased() { rotateFrameRateBasedText.rotation += 1; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_Interval { private rotateTimeBasedText: Text; private rotateFrameRateBasedText: Text; constructo...
来源: Laya_示例 发布时间: 20240930
..."0" + b; return "#" + r + g + b; } } new BlendMode_Lighter();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Browser = Laya.Browser; import Handler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class BlendMode_Lighter { // 一只凤...
来源: Laya2.0_示例 发布时间: 20240930
...e:///F:/GitHub/TS_Laya/TS_MyLaya/bin/sounds/hit.wav] 测试代码: import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import SoundManager = Laya.SoundManager; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL =...
来源: Laya_社区 发布时间: 20190421
...NE ON FLASH TECHNICAL"; return text; } } new Text_AutoSize();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_AutoSize { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); ...
来源: Laya2.0_示例 发布时间: 20240930
...age.clientScaleY * Laya.stage._canvasTransform.d) }); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; import Render = Laya.Render; export class Physics_NewtonsCradle { private stageWidth: number = 800; private sta...
来源: Laya_示例 发布时间: 20240930
as3 2.02版本只要在main.as里import miniadapter然后加载远程资源 就会无限加载 在微信小游戏里 页面会彻底卡死 拜托查一下吧 谢谢了 只要加载任意一张远程资源就能复现 当初卡了我两天 最后群里的同学提示才发现的这个问题 附件 :...
来源: Laya_社区 发布时间: 20190427