What's the best way to reference a scene object stored in another scene method?

I have a display group called “scrollGroup” created in scene create method and inserted in “sceneGroup.” I’d like to access scrollGroup in another scene method, but the value returns nil when I call sceneGroup.scollGroup. What’s the best way to access it?

Thanks in advance.

You could add a public function to sceneGroup that returns the scrollGroup object.

Something like:

function scene:getScrollGroup()   return scrollGroup end

Thank you. That was the fix.

You could add a public function to sceneGroup that returns the scrollGroup object.

Something like:

function scene:getScrollGroup()   return scrollGroup end

Thank you. That was the fix.