I'm sure I'm doing this incorrectly.

Maybe an example will do it?

I've added some controllers:


                EC.add(this, MouseEvent.ROLL_OVER, overHandler, false, 0, true,
"thumbListener");
                EC.add(this,MouseEvent.ROLL_OUT, outHandler,false, 0,true,
"ThumbListener");
                EC.add(this,MouseEvent.CLICK, clickHandler, false, 0, true,
"ThumbListener");

Then I removed this:
EC.remove("ThumbListener");

But since I will want to restore them I put them in an array.  The
array has class scope.
_eventArray = EC.remove("ThumbListener");

Okay, now I want to restore these listeners.

EC.addGroup(_eventArray); <== this does not work.
EC.addGroup([eventArray}); <== this does not work.

I studied addGroup in the documentation but, as far as I can tell, it
only deals with removing listeners, though it looks as though the same
thing should work to add them.

Much thanks for your assistance,


Don Booth,
Toronto



-- 
--
http://fla.as/ec

Reply via email to