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

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

461. image.skin = base64 无效 [ 57%]

...esource.HTMLCanvas; import laya.ui.Image; /** * ... * @author ww */ public class TestBase64Img { public function TestBase64Img() { Laya.init(1000, 900); testDraw(); } public function testDraw():void { var sp:Sprite; sp = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#ff0000"); Laya.stage.addCh...

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

462. 聊天室存储数据 [ 57%]

...t管理器 * location shareobject manager * @author hengry */ public final class yfqian_SaveALoad { public static function set(key:String, value:String):String { LocalStorage.setItem(key,value); return value; } public static function get(key:String):String { return LocalStorage.getItem(key); } publi...

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

463. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 56%]

...display.Sprite; import laya.utils.Browser; import laya.webgl.WebGL; public class HelloLaya { public function HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); s...

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

464. 图片像素精准点击问题! [ 56%]

... on(Laya.Event.MOUSE_DOWN 来检测。   下面是我的代码处理: class demo { private down:Laya.Image; constructor() { // 鼠标事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP...

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

465. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 56%]

...教Laya.BitmapFont加载位图文字不能显示的问题 // 程序入口 class GameMain{ private mFontName:string = "diyFont"; private mBitmapFont:Laya.BitmapFont; constructor() { Laya.init(600,400); this.mBitmapFont = new Laya.BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", new L...

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

466. laya.ui.ViewStack [ 56%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ViewStackProperties | Methods | Events Packagelaya.uiClasspublic class ViewStackInheritanceViewStack Box UIComponent Sprite Node EventDispatcher ObjectImplements IItem ViewStack 类用于视图堆栈类,用于视图...

来源: Laya2.0_api 发布时间: 20190513

467. laya.ui.ScaleBox [ 56%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ScaleBoxProperties | Methods | Events Packagelaya.uiClasspublic class ScaleBoxInheritanceScaleBox Box UIComponent Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保...

来源: Laya2.0_api 发布时间: 20190513

468. FlashBuilder中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 56%]

...代码如下: ```typescript package { import laya.display.Text; public class HelloLayabox { public function HelloLayabox() { //初始化引擎 Laya.init(600, 300); var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox"; //设置文本颜色为白色,默认颜色为黑色 txt....

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

469. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 56%]

...真阅读文章,现在改成在具体的使用说明: 主域:public class LayaUISample { public function LayaUISample() { //微信小游戏适配库初始化 MiniAdpter.init(true,false); //初始化引擎 Laya.init(640, 480,WebGL); Laya.stage.scaleMode = Stage.SCALE_FIXED_HEIGHT; Laya.stage.bg...

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

470. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 56%]

...题。 2018-05-08 0 0 分享 微博 QZONE 微信 Miller 赞同来自:   class Item extends Laya.Box {   public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this...

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