Hi guys,
Is there a way to efectively turn off and THEN turn on events on a layer?
I have a navigational menu that needs to be visible on the page, but when
you click on a option a popup layer appears and while that layer is visible
I need to disable all events outside that layer...
I could use a transparent layer to cover all the screen behind the pop up
layer but I prefer to reserve that solution to a last resort solution.
I thought about setting up in each event something like:
if (!popupLayer.getVisible()){
... event code ...
}
But it seems a very awkward way to do it, besides probably eating up a lot
of memory/cpu processing...
I also thought about using removeEventListener() so I can remove all the
event
listeners that I want while the layer is on, and when I turn it off I can
use addEventListener() to add them up again. But I'm not sure if it can be
done, or if eats more processing/memory than simply using the cover layer.
Any tips?
NunoF
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help