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

mailto in Animate HTML Canvas (for the compleat idiot)

Community Beginner ,
Feb 09, 2019 Feb 09, 2019

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

780
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

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

Translate
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

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

That's it!

Thanks for taking the time to help out.

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

You're welcome!

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