addEventListener for check box
hi
i have check box. set eventlistener it.
this works:
cb.onclick = function()
{
alert("clicked");
}
this don't:
cb.addeventlistener("click", cbclick);
function cbclick()
{
alert("clicked");
}
why not? have used addeventlistener method many other components.
thanks,
jakob
just realized. case iconbutton , button component.
this works:
button.addeventlistener("mouseover", buttonmouseover);function buttonmouseover()
{
alert("over");
}
this not:
button.addeventlistener("click", buttonclick);
function buttonmouseover()
{
alert("clicked");
}
so maybe click event different? "click" correct word use?
More discussions in After Effects Scripting
adobe
Comments
Post a Comment