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

mailto in Animate HTML Canvas (for the compleat idiot)

Community Beginner ,
Feb 09, 2019 Feb 09, 2019

Copy link to clipboard

Copied

Hello,

I have found similar questions to this type of problem, but none of the answers work for me when I publish from Animate.

I have an Animation that I would like to end with a mailto type button. None of the button script I use works. (I have tried it on a Server as well). I have a number of other buttons in the animation that work, so I believe the instance and code are positioned correctly.

Would someone please help me with the javascript I need to use.

My script now is:

this.CallTel.addEventListener("pressup", fl_CallTel.bind(this));

function fl_CallTel()

{

    this.window.location = "mailto:tomh@herethere.com";

}

I have also tried window.open, some html versions, prayer, etc.

Thanks

Views

638

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

correct answers 1 Correct answer

Community Expert , Feb 10, 2019 Feb 10, 2019

Hi.

Don't use this.window because window is a global reference. It should be:

window.location = "mailto:tomh@herethere.com";

Regards,

JC

Votes

Translate

Translate
Community Expert ,
Feb 10, 2019 Feb 10, 2019

Copy link to clipboard

Copied

Hi.

Don't use this.window because window is a global reference. It should be:

window.location = "mailto:tomh@herethere.com";

Regards,

JC

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 Beginner ,
Feb 10, 2019 Feb 10, 2019

Copy link to clipboard

Copied

That's it!

Thanks for taking the time to help out.

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 ,
Feb 11, 2019 Feb 11, 2019

Copy link to clipboard

Copied

LATEST

You're welcome!

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