Hi,
I have been playing with the StoryBoard API and it seems really great. I have done a bunch of searches and looked at a lot of samples. I am having a couple small issues that I just cant figure out. Maybe someone will be nice enough to help me here.
- I added a bunch of object to my scene from a function that is called from an event listener function goToNext() which is setup in scene:enterScene( event ).
function scene:enterScene( event )
local group = self.view
button\_next:addEventListener("touch", goToNext)
end
The thing is that I cant use screenGroup:insert() in the goToNext function… I get the “attempt to index global” error in the console.
So my question is, how can I add objects to the scenegroup from outside the scene: functions?
- If I do use screenGroup:insert() for all my elements, so I still need to use removeSelf() and =nil on them Or when I change/destroy scenes will all of that be taken care of automatically?
Thanks for your patience and help!
[import]uid: 112147 topic_id: 22344 reply_id: 322344[/import]