Setting up line thickness and color? Sample in documentation doesn't work at all

Hi I tried to do this :
 

local line = display.newLine( self.contentGroup, txtScoreValue.x - (txtScoreValue.width/2), txtScoreValue.y + 30, txtScoreValue.x + (txtScoreValue.width/2), txtScoreValue.y + 30) line:setStrokeColor( 255, 225, 204 ) line.strokeWidth = 8

but the setStrokeColor actually causes a runtime error and strokeWidth doesnt change the line thickness?

I tried to follow the documentation but it seem those property and method doesn’t work

How can I change the color and the thickness of a line?

need to use 0-1 for color not 0-255

Okay but this code is taken from the documentation and gives error saying setStrokeColor is nil and if I remove it, strokewidth doesnt do anything.
I’m using 1225
 

local star = display.newLine( 200, 90, 227, 165 ) star:append( 305,165, 243,216, 265,290, 200,245, 135,290, 157,215, 95,165, 173,165, 200,90 ) star:setStrokeColor( 1, 0, 0, 1 ) star.strokeWidth = 8

Seriously, need a better doc here Corona Team

the problem with the docs is corona is in a transition phase between gpx1.0 and gpx2.0
not sure why sample isn’t working but you are using an old release so it may have had a bug in it. with the version your using it should be 0-255. 0-1 is for the current release which I thought you were using

need to use 0-1 for color not 0-255

Okay but this code is taken from the documentation and gives error saying setStrokeColor is nil and if I remove it, strokewidth doesnt do anything.
I’m using 1225
 

local star = display.newLine( 200, 90, 227, 165 ) star:append( 305,165, 243,216, 265,290, 200,245, 135,290, 157,215, 95,165, 173,165, 200,90 ) star:setStrokeColor( 1, 0, 0, 1 ) star.strokeWidth = 8

Seriously, need a better doc here Corona Team

the problem with the docs is corona is in a transition phase between gpx1.0 and gpx2.0
not sure why sample isn’t working but you are using an old release so it may have had a bug in it. with the version your using it should be 0-255. 0-1 is for the current release which I thought you were using