Sorry I was told to break different questions in to different topics. Hope this is right.
anyway, I am creating a scene group for my composer called sceneGroup and I am passing it to called functions. Now, when they touch a bubble a touchCircle function is called and an event is passed to it. If that was the last circle then I want to call beginScreen again - the problem is I am getting an error message that says attempt to call method ‘insert’ (a nil value) because I no longer have sceneGroup in my grasps to call beginScreen.
Something like this…
[lua]
function displayLevel(sceneGroup)
local levelText = nil
local chooseModeText = nil
level = level + 1
levelText = display.newText(“Level - “…level…” Begin”,0,0,native.systemFontBold,25)
levelText.anchorX=0
levelText.x=25
levelText:setFillColor(0)
levelText.y=levelText.height/2 + 25
sceneGroup:insert(levelText)
displayImage(sceneGroup)
end
…
function touchCircle(event)
…
if (finished_count==10) then
print(“YEAH! You got them all!”)
displayLevel(event) <-can’t do this. That is an event - not a scene group.
end
…
end
So, what can I do? It appears I “lost” the sceneGroup
Thanks!