From: Pascal B. <pa...@dy...> - 2000-12-10 17:20:36
|
You don't really turn eventlisteners on and off, you add or remove them. Adding listeners is obviously known to you.. and to turn them off you simply use the myLayer.removeEventListener(listener). That would turn it off. This ofcourse means you have to have a handle (or variable) to the eventListener. So you can reattach it later. I'm not sure what you mean with "assigning dragability". Maybe if you show us some code we can help you further (and it becomes clearer to us ;-) Pascal Bestebroer pa...@dy... http://www.dynamic-core.net -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Raymond Smith Verzonden: zondag 10 december 2000 17:45 Aan: dyn...@li... Onderwerp: [Dynapi-Dev] general inheritence question I've been actively coding JavaScript about 3 months now. And realizing that: 1) That I know little. 2) Sweat is the greatest teacher of all. I have generally kept my questions to myself, allowing them to fuel macabre nights of sleepless frustration till I figured it out myself. The value has been immeasurable. But... I appear to struggle the most with object method inheritance and recently find myself staring at (Doesn't allow this method) alerts. I've been attempting to assign "dragablity" within a eventhandler of a widget and also disabling/enabling other event handlers (that have nothing to do with dragging, I just want to dynamically turn them off and on.. I worked with Rainwater's post a bit and got to see more (Doesn't allow this method) alerts. A short tutorial form an old-timer would be appreciated.. DS |