var cb:CheckBox = new CheckBox(); cb.addEventListener(MouseEvent.CLICK, handleClick); addChild(cb);
--- In flexcoders@yahoogroups.com, "craig.drabik" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "blc187" <blc187@> wrote: > > The problem comes in when I want to add functionality on toggle. > > I can't type cbox.click = updateFld and I'm not sure what events I > > can listen for on it. > > > > Little help on how to handle this? > > > > Create an actionscript class that extends CheckBox, put your custom > code in there, and then create instances of that class instead of > programatically setting up checkboxes. >