(issButArray[i] as Button).addEventListener(MouseEvent.click, moreDetail);

--- In flexcoders@yahoogroups.com, "criptopus" <sd_br...@...> wrote:
>
> Thanks for those that helped with setting the Icon style with a button 
> programatically but now I have a problem with the click event.
> 
> // Add Link To Issue Box
> issButArray.push(new Button());
>                               issButArray[i].setStyle("icon",moreIcon); 
> <------ Thanks!
> 
> issButArray[i].click="moreDetail();"; <------- How?
> 
> issButArray[i].width = 43;
> issButArray[i].height = 13;
> usrColArray[usrColCnt].addChild(issButArray[i]);
>


Reply via email to