I’m trying to better understand storyBoard. Have read the blog posts. One question that would assist would be:
Question 1 - Why could I not put all setup for a scene in the “createScene” callback? That is what would be the con’s (negative effects) of doing this and why? (e.g. including setup of listeners)
As an example I would like to call out from a scene to a separate class (build in an OO type approach) and just call it’s setup method, which would display it on the screen, set up it’s listeners etc. However currently it would seem with story board I would really need to program into my item’s class a “createSceneSetup” and “enterSceneSetup”. For example:
In the scene (where I call my class/object):
function scene:createScene( event )
myobject:createSceneSetup()
end
function scene:enterScene( event )
myobject:enterSceneSetup()
end
Question 2 - Overall then, when encaptulating code into my own classes/objects, do you recommend that I do stick with separate methods on them for createSceneSetup & enterSceneSetup? [import]uid: 140210 topic_id: 25399 reply_id: 325399[/import]