Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87561

Re: prevent subsequent clicks of button in Edge Animate (was: Disable click)

$
0
0

Hi Ian,

If you want to bring back the event handler when clicked on "X". Then this is not possible if you remove the event handler using off.

Instead of using off to remove event listener. Check whether "X" is visible and perform the operation

 

if(sym.$("Text").css("display") == "none")

{

  sym.play("play");

  sym.$("Text").show();

  sym.$("mail_icon").show();

  sym.$("Rectangle2").css("cursor","default");

}

 

Similarly click handler for "X" will be as follows

sym.playReverse("mailout");

sym.$("Text").hide();

sym.$("mail_icon").hide();

sym.$("Rectangle2").css("cursor","pointer");


Viewing all articles
Browse latest Browse all 87561

Trending Articles



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