Why is this code gives me an error? it’s straight from documentation http://docs.coronalabs.com/api/library/display/newText.html
local myText = display.newText( "Hello World!", 100, 200, native.systemFont, 16 ) myText:setFillColor( 1, 0, 0 )
attempt to call met hod 'setFillColor' (a nil value)