Composer API passing a parameter from an overlay to the parent

Hi

I can pass a parameter to an overlay Ok. Question can and how do pass a parameter back to the parent when the overlay hides?

I call the parent resumeGame when hiding the overlay and this works fine. The function resumeGame runs ok also. The question is do I pass a parameter with this method or is it done another way? 

function scene:hide( event )

   local sceneGroup = self.view

   local phase = event.phase

   local parent = event.parent  --reference to the parent scene object

   if ( phase == “will” ) then

      – Call the “resumeGame()” function in the parent scene

      parent:resumeGame()

   end

end

function scene:resumeGame()

   --code to resume game

  

end

parent.value = something

Thanks, but how do I reference the value

From the overlay I can do something like this?

function scene:hide( event )

   local sceneGroup = self.view

   local phase = event.phase

   local parent = event.parent  --reference to the parent scene object

   if ( phase == “will” ) then

      – Call the “resumeGame()” function in the parent scene

      parent:resumeGame()

      parent.value = “test”

   end

end

In the parent it’s simply:    scene.value

Rob

parent.value = something

Thanks, but how do I reference the value

From the overlay I can do something like this?

function scene:hide( event )

   local sceneGroup = self.view

   local phase = event.phase

   local parent = event.parent  --reference to the parent scene object

   if ( phase == “will” ) then

      – Call the “resumeGame()” function in the parent scene

      parent:resumeGame()

      parent.value = “test”

   end

end

In the parent it’s simply:    scene.value

Rob