function playNow (event)
gfx.background.alpha=1
local obj=event.target
obj:removeSelf()
obj=nil
monkey()
end
textplay:addEventListener (“tap”, playNow)
Okay … I rectified this one. (Please correct me if again I did something wrong)
function playNow (event)
gfx.background.alpha=1
local obj=event.target
obj:removeSelf()
obj=nil
monkey()
end
textplay:addEventListener (“tap”, playNow)
function monkey()
gfx.monkeyimg.isVisible = true
gfx.monkeyimg.value=1
.
. --Here transitions on monkey also take place.
.
end
end
Now when playNow function is called, it gives the following error: "Attempt to call upvalue ‘monkey’ (a nil value)" I am unable to spot where I went wrong. Please help.
Sorry? I did not get you?
Should I remove the monkey() function from listener function? If so, I want to access this function when listener function is active/called.
But shouldn’t the transitions and all must begin in scene:show function?
I had defined the playNow() function outside all the scene functions (means before the scene:create function)
Okay … I rectified this one. (Please correct me if again I did something wrong)
function playNow (event)
gfx.background.alpha=1
local obj=event.target
obj:removeSelf()
obj=nil
monkey()
end
textplay:addEventListener (“tap”, playNow)
function monkey()
gfx.monkeyimg.isVisible = true
gfx.monkeyimg.value=1
.
. --Here transitions on monkey also take place.
.
end
end
Now when playNow function is called, it gives the following error: "Attempt to call upvalue ‘monkey’ (a nil value)" I am unable to spot where I went wrong. Please help.
Sorry? I did not get you?
Should I remove the monkey() function from listener function? If so, I want to access this function when listener function is active/called.
But shouldn’t the transitions and all must begin in scene:show function?
I had defined the playNow() function outside all the scene functions (means before the scene:create function)