Please have a look at code below:
function playNow (event)
gfx.background.alpha=1
local obj=event.target
obj:removeSelf()
obj=nil
monkey()
end
textplay:addEventListener (“tap”, playNow)
function scene:create(event)
grp.main = self.view
monkey=display.newImage(grp.monkey, “monkey.png”)
monkey:scale(.72,.72)
monkey.value=1
monkey.isVisible=false
gfx.monkeyimg = monkey
grp.main:insert(grp.monkey)
end
function scene:show(event)
grp.main = self.view
if phase == “will” then
print(“Will statement”)
elseif phase==“did” then
function monkey()
gfx.monkeyimg.isVisible = true
gfx.monkeyimg.value=1
.
. --Here transitions on monkey also take place.
.
end
end
Please have a look at the code above. Where do I go wrong?
The error is as shown in the image file.
Help please?