Anything better than this Alpha trick?

Hi,

A lot of the time I have invisible buttons and objects on screen. But I've noticed if the alpha of an object is set to 0 it can't have addEventListeners assigned to it. You can set it to 1 out of 255 or .01 out of 1 and that works, but is there a better way?

Thanks

Tom

yes you can do this:

object.isVisible = false
object.isHitTestable = true

Thanks Ojnab,

That's a very helpful little snippet of code.

Much appreciated.

Tom

views:1539 update:2011/9/26 15:43:22
corona forums © 2003-2011