我在一段时间得到这个错误一次特定对象的孩子。出于某种原因,当我产生这个对象而不是一个对象时,这个问题似乎就开始了。我基本上有敌人投掷硬币和一个敌人滴2。当我同时接他们,我开始得到这个错误。 public function removeCoin(){
removeEventListener(Event.ENTER_FRAME, moveCoin);
if(this.paren
查看周围SO的答案,但真的很挣扎。我已经尝试了下面的代码中的变体,即从舞台切换到this.stage甚至root.stage,但没有运气。 任何帮助,非常感谢。 完整的错误我得到的是: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::Di
Hy所有,我开发1个小游戏都为Android和iOS在科罗娜。 当用户触摸该组时,我需要将掩码设置为图像。 这里是我的代码: local function eat(event)
if event.phase == "began" the
local mask = graphics.newMask("file/mask.png")
local playSound
我正在制作一个应用程序(电晕),将显示一个文件夹中的图像。有50张图片的文件夹中,以“number.jpg”(1〜50) 所有名字我使用目前这一个获得数 --populating table with 50 numbers (1-50)
for i =1,50 do
numbers[i] = i
end
--loop to generate 1 random number
for i