local storyboard = require( "storyboard" ) local scene = storyboard.newScene() local function httpCallback(data) end local function touchListener (self, touch) end function scene:createScene( event ) local group = self.view background = display.newRect( 0, 0, screenW, screenH-navBarHeight) background:addEventListener( "touch", background ) end function scene:enterScene( event ) local group = self.view some\_module.myHttpRequest(httpCallback) end function scene:destroyScene( event ) local group = self.view end scene:addEventListener( "createScene", scene ) scene:addEventListener( "enterScene", scene ) scene:addEventListener( "exitScene", scene ) scene:addEventListener( "destroyScene", scene ) return scene
Please see the code above. This is the structure of my scene file.
My question is, for those two functions:
local function touchListener (self, touch)
local function httpCallback(data)
How do I get to access the associated display group? For example, in scene:createScene() or other scene event listener functions, it is “self.view”.
Yes, I am new to Corona SDK. Please help, I am trying to learn. Thanks a lot.