Highlighted

error 1061 help

New Here ,
Sep 25, 2019

Copy link to clipboard

Copied

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);
}

 

Views

167

Likes

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

error 1061 help

New Here ,
Sep 25, 2019

Copy link to clipboard

Copied

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);
}

 

Views

168

Likes

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
Sep 25, 2019 0
Adobe Community Professional ,
Sep 26, 2019

Copy link to clipboard

Copied

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

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

Likes

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
Reply
Loading...
Sep 26, 2019 0