Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

how to programmatically bind actions to elements

$
0
0

hi

 

how do i programmatically add/bind a new event to an element after executing another click event ?.

currently i have a popup feature which should closes again if the user clicks anywhere on the screen/window, i tried adding the close event to the stage from the beginning, but naturally it's called at the same time my open button is called, so now i need to bind a click action to the stage after clicking x button... how is this done the most efficient way ?.

 

note:

i did try using bind, but without luck.

......bind ("click",function(){alert("Hello!");});

 

any suggestions ?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>