can someone explain to me how to disable a layer from being clickable after it is no longer visible?
Calling Layername.destroy() after its invisible could work for you
Is opacity:0 treated as invisible?
I believe layer.visible = false is considered as invisible and unclickable.
Joey is correct.
Or layer.ignoreEvents = true
Thanks guys. That works. I am unfortunately really terrible at (and have never successfully crrated) an if-then situation in my code. What the heck are the rules for that?
Also from before : the opacity being 0 made the destroy function respond beautifully when placed in the list of click events of the subsequent click event.
Coffeescript.org may help.
That is actually very helpful. Diving in now.