title: CORONA: HOW TO HIDE AND VISIBLE A TEXT IN CORONA
body: <p>I have a function and ... the explanation is that I need to display the text in scaling when my count reaches 10 until then it should be hidden...</p>
  
  <pre><code>local text2 = display.newText("BOOM", 60,20)
  
  function scale( event )
     if(appleCount == 10) then
        if text2.contentWidth &lt; 1.5 * display.contentWidth then
           text2:scale(1.02, 1.02)
        else
           text2:scale(0.1, 0.1)
           Runtime:removeEventListener("enterFrame",scale)
        end
     end
  end
  Runtime:addEventListener("enterFrame",scale)
  </code></pre>