Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Oct 21, 2019 Oct 21, 2019

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

1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 22, 2019 Oct 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 

closeBtn.pngbtnFrames.png

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. 

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 22, 2019 Oct 22, 2019
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2019 Oct 22, 2019
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines