Hi, I don’t really care what my name displays as right now. I’m in a bit of a rush, so I’m hoping that someone can help me.
I am building an app with what are essentially tableView widgets, but using display objects instead (please don’t tell me to use those instead, I can’t go learn how to do them in the time frame I’m on). Using a for loop, I generate lines across a ScrollView widget. However, when I do this, I seem to be getting 2 warning messages for every time I set “line.strokeWidth”, saying “WARNING: line.width is deprecated. Use line.strokeWidth”.
I’ve seen a thread like this, but in that thread there was an actual width keyword in the code which the user didn’t see. I have used the find function in Notepad ++ to no avail as to finding the word “width” with any link to a line display object.
Below is code in the for loop and attached is evidence for my searches:
local timeLines = {} for i = 1,23 do -- Create line object inside timeLines table timeLines[i] = display.newLine(... timeLines[i].strokeWidth = 2 timeLines[i]:setStrokeColor(0) timeView:insert(timeLines[i]) . . . end
I am using Composer, not sure if it’s relevant or not. I have 2 other instances of what is essentially the code above, with different arguments, variable names, etc.
I’m not sure about this, but it might also be occurring when I create rectangle display objects too, so maybe it’s not object-type-specific?
It’s putting what is to me an unnecessary strain on my computer, and filling up the Simulator Output far too much for me to debug properly, I’d really appreciate help on this,
Thanks