• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,546 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0068 秒)

261. LayaFlash针对资源的加载是同步还是异步? [ 91%]

....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

262. 混合模式-Lighter [ 90%]

... 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

263. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 90%]

...序(推荐用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

264. UI-ProgressBar [ 90%]

..." + 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

265. 计时器-间隔循环 [ 90%]

...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

266. 混合模式-Lighter [ 90%]

..."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

267. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 90%]

...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

268. 文本-自动调整文本尺寸 [ 90%]

...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

269. 物理引擎-牛顿摆 [ 90%]

...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

270. as3 2.02版本只要在main.as里import miniadapter然后加载远程资源 就会无限加载 [ 90%]

as3 2.02版本只要在main.as里import miniadapter然后加载远程资源 就会无限加载 在微信小游戏里 页面会彻底卡死 拜托查一下吧 谢谢了 只要加载任意一张远程资源就能复现 当初卡了我两天 最后群里的同学提示才发现的这个问题 附件 :...

来源: Laya_社区 发布时间: 20190427