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

Popular posts from this blog

Adobe Refresh Managerについて

Sizing images of multiple resolutions for print on a page of one resolution

Illustrator cs6 "Invalid Serial Number"