I created a widget in function scene:create
How i can now change this widget in scene:show ?
Need to make this widget global or what?
local composer = require( "composer" ) local widget = require( "widget" ) local scene = composer.newScene() function scene:create( event ) local group = self.view local title = display.newText( "Test1" x, y - 140, globals.ui.fonts.IndieFlower, 30 ) group:insert(title) title:setFillColor( 0, 0.5, 1 ) end function scene:create( event ) local group = self.view local = group:getObjectByName ( "title" ) -- NOT WORKING title.text = "Test2" end