removing text

so i have a problem, i have function and a line to display some text

local text1= display.newText,

text1.alpha=1

 i have another function to remove(hide) the text

text1=alpha=0 

yet my text isnt disappearing, why is that? it works perfectly with images…so frustrating

Did you mean:

text1.alpha=0 instead of text1 = alpha=0 

You can also try setting the .isVisible attribute:

text1.isVisible = false

Without seeing some code, all I can suspect is that you have a scope issue where you’re creating text1 somewhere and it’s local to a function or block of code that when you later try to hide it, it’s not scoped correctly.

Did you mean:

text1.alpha=0 instead of text1 = alpha=0 

You can also try setting the .isVisible attribute:

text1.isVisible = false

Without seeing some code, all I can suspect is that you have a scope issue where you’re creating text1 somewhere and it’s local to a function or block of code that when you later try to hide it, it’s not scoped correctly.