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

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"