[LayaAir 2.0]TypeError: Laya.MovieClip is not a constructor
let mc:Laya.MovieClicp = new Laya.MoveClip();
报错:
TypeError: Laya.MovieClip is not a constructor
preload.js:55
at XLoadUIScript.32.XLoadUIScript._init (file:///D:/1MiniGame/mini-game-client/minigame1/bin/js/bundle.js:3001:18)
at XLoadUIScript.32.XLoadUIScript.onStart (file:///D:/1MiniGame/mini-game-client/minigame1/bin/js/bundle.js:2939:14)
at LaterHandler.__proto.run (file:///D:/1MiniGame/mini-game-client/minigame1/bin/libs/laya.core.js:6143:45)
at CallLater.__proto._update (file:///D:/1MiniGame/mini-game-client/minigame1/bin/libs/laya.core.js:6066:14)
at Stage.__proto.render (file:///D:/1MiniGame/mini-game-client/minigame1/bin/libs/laya.core.js:21377:16)
at Stage.__proto._loop (file:///D:/1MiniGame/mini-game-client/minigame1/bin/libs/laya.core.js:21330:8)
at loop (file:///D:/1MiniGame/mini-game-client/minigame1/bin/libs/laya.core.js:9407:15)
报错:
TypeError: Laya.MovieClip is not a constructor
preload.js:55
at XLoadUIScript.32.XLoadUIScript._init (file:///D:/1MiniGame/mini-game-client/minigame1/bin/js/bundle.js:3001:18)
at XLoadUIScript.32.XLoadUIScript.onStart (file:///D:/1MiniGame/mini-game-client/minigame1/bin/js/bundle.js:2939:14)
at LaterHandler.__proto.run (file:///D:/1MiniGame/mini-game-client/minigame1/bin/libs/laya.core.js:6143:45)
at CallLater.__proto._update (file:///D:/1MiniGame/mini-game-client/minigame1/bin/libs/laya.core.js:6066:14)
at Stage.__proto.render (file:///D:/1MiniGame/mini-game-client/minigame1/bin/libs/laya.core.js:21377:16)
at Stage.__proto._loop (file:///D:/1MiniGame/mini-game-client/minigame1/bin/libs/laya.core.js:21330:8)
at loop (file:///D:/1MiniGame/mini-game-client/minigame1/bin/libs/laya.core.js:9407:15)
没有找到相关结果
已邀请:
要回复问题请先登录
5 个回复
nico
赞同来自:
妙飞
赞同来自:
Gavin
赞同来自:
代码及结果如下图
Gavin
赞同来自:
Gavin
赞同来自: