May be going crazy. May just need to run a newer build. May just be doing things the wrong way entirely.
[code]-- I’m doing this because setting the text and reference point
– for existing text doesn’t behave well if the text is using text wrap…
– (by setting width / height)
– 1. Remove the text object
textObject:removeSelf()
– 2. Set display properties anyway!
textObject:setReferencePoint(display.CenterReferencePoint)
textObject.x, textObject.y = 200,200[/code]
If you comment out section (2), the text is gone. If you leave it uncommented, the text stays!
To make things worse…
-- 1.5
if something == false then
local textObject = display.newText("something else", 0, 0, nil, 20)
end
If you add that code, there are now two (2) text objects, each sharing the formatting.
Is this expected? A bug? Any thoughts?
(OSX, 2011.712) [import]uid: 41884 topic_id: 20816 reply_id: 320816[/import]


