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

error 1061 help

New Here ,
Sep 25, 2019 Sep 25, 2019

just trying to get a button that goes to a frame then stops using the function with the same name. getting this error:1061:Call to a possibly undefined method bind through a reference with static type Function. This is my code:

 

this.stop();


this.ButtonPets.addEventListener("click", fl_ClickToGoToAndStopAtFrame_9.bind(this));

function fl_ClickToGoToAndStopAtFrame_9()
{
this.gotoAndStop(10);
}

 

835
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 ,
Sep 26, 2019 Sep 26, 2019
LATEST

Hi.

 

This is happening because you're trying to use JavaScript in an AS3 document.

 

To fix this, go to File > Convert To > HTML5 Canvas.

 

 

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