大约有 272 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0046 秒)
...议修改源码方式(需改两个类): laya.flash.FlashImage public function set src(value:String):void 75行后加入代码 tl.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function ceroor(_ev:IOErrorEvent):void { onerror && onerror(); }); laya.ui.Image 167行 protected f...
来源: Laya_社区 发布时间: 20160918
...t(type) 调用init方法时候闪退,错误信息是 "fish.init is not a function" "TypeError: fish.init is not a function at Function.CFSprite.reusableFishWithType (file:///Users/heboyce/Desktop/Work/Web/CatchFish/bin/js/common/CFSprite.js:28:14) at GameView.addFinsh (file:///Users/heboyce/Deskto...
来源: Laya_社区 发布时间: 20180404
...rite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); IFlash.setSize(960, 640); //2D项目...
来源: Laya_社区 发布时间: 20151218
...己建个空的类就好了 package flash.ui { public class Mouse { public function Mouse() { } public static function hide():void { } public static function show():void { } } } cuixueying • 2017-03-17 19:46 有没有例子,上传一个,我们看下!
来源: Laya_社区 发布时间: 20170317
...))debugger;//在此行会自动断点 ================== AS: setName(123); function setName(name:String):void { trace(name); } JS: function setName (name){ if(!__DEBUGTYPE__(name,'String'))debugger;//在此行会自动断点 trace(name); } =================== AS: var asString:String = asObj as Strin...
来源: Laya_社区 发布时间: 20151203
...axUI.ts有前缀导致报错 导微信小程序报错window.focus is not a function Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? runtime运行报错! 用了ByteArray的zlib.min.js后报错 排行榜的创建 问题状态 最新活动: 2018-09-01 20:43 浏览: 1057 关...
来源: Laya_社区 发布时间: 20180901
...代码片段,感觉是编译器的问题。。麻烦解答一下 public function addAssets(assets:Array,loadedFun:Function = null):void { var path = formatString("assets/otherAssets/" + file, STLConstant.scale); } package starling.utils { // TODO: add number formatting options /** Formats a String...
来源: Laya_社区 发布时间: 20170525
... VM317:1 gameSubContextThirdScriptError wx.getFileSystemManager is not a function;at requestAnimationFrame callback function TypeError: wx.getFileSystemManager is not a function 微信子域报这个错误。 2018-08-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20180803
...as() at MethodInfo-3300() at laya.resource::Texture/addTextureToAtlas() at Function/http://adobe.com/AS3/2006/builtin::call() at laya.utils::Handler/runWith() at laya.events::EventDispatcher/event() at laya.resource::Resource/completeCreate() at laya.webgl.resource::WebGLCharImage/recreateResource()...
来源: Laya_社区 发布时间: 20200217
... use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微博 QZONE 微信 fool_tiger 赞同来自: 可以调...
来源: Laya_社区 发布时间: 20180108