大约有 2,619 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0065 秒)
....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_示例 发布时间: 20251130
...序(推荐用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_示例 发布时间: 20251130
...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_示例 发布时间: 20251130
..."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_示例 发布时间: 20251130
...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_示例 发布时间: 20251130
...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_示例 发布时间: 20251130
...:/Users/God/AppData/Local/Programs/LayaAirIDE/resources/app.asar/game.js:2 importing ~/internal/Box.lm importing ~/internal/Capsule.lm importing ~/internal/Cone.lm importing ~/internal/Cylinder.lm importing ~/internal/Plane.lm native tools encoding set to cp936 importing ~/internal/Quad.lm importing...
来源: Laya_社区 发布时间: 20250102