[flexcoders] Re: rendering checkboxes with as3 instead of mxml?

2007-03-30 Thread craig.drabik
--- In flexcoders@yahoogroups.com, blc187 [EMAIL PROTECTED] 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.




[flexcoders] Re: rendering checkboxes with as3 instead of mxml?

2007-03-30 Thread ben.clinkinbeard
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.