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

Animate cc - Need Help on a button

New Here ,
Aug 31, 2017 Aug 31, 2017

Copy link to clipboard

Copied

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

Views

459

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

What do you mean by "it begins"?

do you use ha to "begin"!

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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