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

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

651. LayaFlash如何使用chrome调试问题? [ 47%]

...839 package { import flash.display.Sprite; import flash.events.Event; [SWF(width=960,height=640,backgroundColor=0x0,frameRate=60)] public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); this.init(); } private function in...

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

652. JS进度条加载问题 [ 47%]

...w Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg",50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; progressBar.changeHandler=new Handler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChild(progressBar); onchange(); } function onChange(value) { trace("进...

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

653. h5 游戏在ios15更新以后出现了显示显示问题 [ 47%]

...截图确认) gl.enable(gl.SCISSOR_TEST); gl.scissor(0, 0, RenderState2D.width, RenderState2D.height); 3、这个方案确认可行且比设置 isAntialias 性能要好后,我们将写入引擎并修改经验分享贴,所以也请您尽快测试并给我们反馈哈。 2021-09-27 0 2 分享 微...

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

654. 2.0 Beta3版本中,runtime脚本的的问题 [ 47%]

...me" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; static scen...

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

655. Dialog 第一次打开总是出现在窗口右下角,这是啥,再打开就正常剧中了? [ 47%]

...:"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor":"#000000","runtime":"script/view/dialogs/SettingDialog.js","height":750}, "nodeParent":-1, "maxID":4, "label":"Dialog", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":2...

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

656. 使用webgl之后toDataUrl返回黑色的图像 [ 47%]

...rite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.height,WebGL); Stat.show(); Laya.stage.bgColor = "#ffcccc"; Laya.stage.on(Event.CLICK,this,onClick); sp= new Sprite(); sp.name='base'; sp.loadImage("logo.png"); Laya.stage.addChild(sp); } private function onCli...

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

657. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 46%]

...der = Item;   list.repeatX = 1; list.repeatY = 4;   list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2;   // 使用但隐藏滚动条 list.vScrollBarSkin = "";   list.selectEnable = true; list.selectHandler = new Handler(this, onSelect);   list.renderHa...

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

658. 分享:销毁龙骨动画! [ 46%]

...ure:Skeleton; public function ASDemo() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); var DesBtn:Sprite = createButton("销毁动画"); DesBtn.x = 50; DesBtn.y = 50; Laya.stage.addChild(DesBtn); //创建一个Sprite充当音乐播放按钮 va...

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

659. 请问object层中添加的sprite怎么添加点击事件 [ 46%]

...ower.zOrder = budai.y; flower.autoSize = true; flower.height = 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld.zip 2018-07-22 添...

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

660. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 46%]

...text.fontSize=50; text.text="لحسن نهر123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> 分享 微博 QZO...

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