Skip to main content
davidro
Participant
October 21, 2019
Question

How do I create in Animate a close button for a banner Ads.

  • October 21, 2019
  • 2 replies
  • 1459 views

How do I create in Animate a close button for a banner Ads.

    This topic has been closed for replies.

    2 replies

    avid_body16B8
    Legend
    October 22, 2019
    Community Expert
    October 22, 2019
    avid_body16B8
    Legend
    October 22, 2019

    I suppose you are doing HTML5. You can add a button element (as opposed to the movie clip ) by pressing F8.

    They have 4 frames 

    The code will be something like this (add a url on click for example).

     

    this.closeBtn.addEventListener("click", fl_MouseClickHandler.bind(this));
    
    function fl_MouseClickHandler()
    {
    	window.open("http://www.adobe.com", "_blank");
    }

     

    To close the add, you would need to hide it.