and here is the code...
Code: Select all
function buildUI(thisObj)
{
var chkbox=new Array();
var pal=(thisObj instanceof Panel)?thisObj:new Window("palette","Total Effects",[100,100,500,500],{resizeable:true});
if(pal==null)
return pal;
else
{
var l=myArr.length;
for(i=0,y1=15,y2=35;i<l;i++,y1+=25,y2+=25)
{
chkbox[i]=pal.add("checkbox",[15,y1,150,y2],myArr[i]);
}
[b]// here i want to apply onClick function to all the checkboxes, i tried it but i can't get it.[/b]
}
}


thanx in advance...