Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Displaying updated text on screen - Gideros Forum

Displaying updated text on screen

simransimran Member
edited July 2014 in General questions
I have the text updating in OnEnterFrame method:

count = count + 1
text7 = TextField.new(conf.fontchange, count)
text7:setPosition(conf.dx - conf.width/3, conf.dy - conf.height/3)
text7:setTextColor(0x000ff)
self:addChild(text7)
but this way the next count is just displayed over the earlier one.

If I do

self:removeChild(text7) ,
the text is not displayed at all. Where should I be removing the last count so that only the updated count is displayed?

Comments

Sign In or Register to comment.