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

Animate cc - Need Help on a button

New Here ,
Aug 31, 2017 Aug 31, 2017

I'm working on banner and I need to add a "close button" and a "auto-close" at the end of banner.

The code i tried to use doesn't work :

if(!this.bton_Fermer_click_cbk) {

function bton_Fermer_click(evt) {

// Début de votre code personnalisé

console.log("Button clicked");

OA.close('bt');   <--- This part was added by me based on client specs

// Fin de votre code personnalisé

}

$("#dom_overlay_container").on("click", "#bton_Fermer", bton_Fermer_click.bind(this));

this.bton_Fermer_click_cbk = true;

}

I also need to add "OA.close('bt');" on the last frame of my timeline.

Thanks for your help

TOPICS
ActionScript
533
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 ,
Aug 31, 2017 Aug 31, 2017

what are you trying to close?

if it's the html page/browser window you're trying to close, that's only possible if the window was opened via javascript and you use the window close() method.

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
New Here ,
Aug 31, 2017 Aug 31, 2017

Hi,

I'm trying to close an expand banner. It begins with a 630x250 banner for 10sec. After the 10 sec. or after pushing the close button, a smaller banner (250x300) appears.

The "OA.close('bt');" button and the "OA.close('auto');" are given in the technical specifications by the Advertising agency. My problem is how and where should i put those instructions.

Thanks for your help and sorry for my poor english level

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 ,
Aug 31, 2017 Aug 31, 2017

What do you mean by "it begins"?

do you use ha to "begin"!

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
New Here ,
Aug 31, 2017 Aug 31, 2017

I mean, at the opening of the website homepage. The 630x250 banner appears/loads and should "auto-close" 10 sec later then a second banner (300x250) loads on the left side of the page.

Thanks

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 ,
Aug 31, 2017 Aug 31, 2017
LATEST

you don't seem to understand which leads me to believe it's not possible (in your situation) to close your window using js.

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