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

大约有 3,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0059 秒)

2391. JSONP跨域读取数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 47%]

...代码如下所示: ```java package { import laya.utils.Browser; public class LayaSample { public function LayaSample() { Laya.init(100,100); var script:* = Browser.createElement("script"); Browser.document.body.appendChild(script); script.src = "http://localhost:9090/?a=1"; } public static functi...

来源: Laya2.0_文档 发布时间: 20210714

2392. laya.d3.core.light.SpotLight [ 47%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames SpotLightProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class SpotLightInheritanceSpotLight LightSprite Sprite3D ComponentNode Node EventDispatcher Object SpotLight 类用于创建聚光...

来源: laya_api 发布时间: 20170929

2393. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 47%]

....Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; t...

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

2394. 关于项目分包的问题?? [ 47%]

...[SWF(width=800,height=600,backgroundColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模式 IFlash.setBgcolor("#FFFFFF"); //背景色 IFlash.showInfo(...

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

2395. 重复背景,全方向地图拖动Demo [ 47%]

...o UI创建4个image  var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg...

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

2396. 【项目分享】分享一个六角消除小游戏源码 [ 47%]

...享 微博 QZONE 微信 珍惜呵护 赞同来自: Uncaught Can not find class Laya.Text    报这个错是什么情况 2021-03-22 0 0 分享 微博 QZONE 微信 Anger123 赞同来自: 我也送大家一个3D全民过山车 全民过山车-laya3d.zip 2021-03-23 0 0 分享 微博 QZONE 微信 为...

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

2397. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 47%]

...的遮罩时,设置Image的ScaleX为0时遮罩失效! // 程序入口 class GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Ima...

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

2398. 为什么pannel里显示两张同样的图片显示不出来,只能显示一张 [ 47%]

...pannel里显示两张同样的图片显示不出来,只能显示一张 class LevelScrollUI extends ui.LevelUI { private panel:Laya.Panel; constructor() { super(); this.panel = new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.pan...

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

2399. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 47%]

...是这样的:因为图标里有几个自定义属性,我定义了一个Class,继承自Box。我用List对其进行渲染,在list渲染的时候,执行renderHandler监听函数,对即将渲染的图标进行事件绑定操作。我测试的时候,想让他在鼠标点击的时候打印...

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

2400. 不规则热区的实现 [ 47%]

...(≧▽≦)/~ 2016-11-16 0 0 分享 微博 QZONE 微信 popo 赞同来自: class a extends sprite { function test():void { var t:Texture = datas; m_hitAreaSprite.graphics.drawRect(t.offsetX,t.offsetY,t.width, t.height,'#FFFFFF'); m_hitAreaSprite.width = t.width; m_hitAreaSprite.height = t.height; } ...

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