I added a button to move to the next frame (scrollTo)

Contributor ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

Designed (HTML5 Canvas Document)
Page long
Its length 7206 px
I added a button to move to the next frame

 

this.button2.addEventListener("click", fl_ClickToGoToAndStopAtFrame_2.bind(this));
function fl_ClickToGoToAndStopAtFrame_2() {
//this.stage.x=0;
//this.stage.y=0;
this.gotoAndStop(5);
}


It goes, but it is stop at the end of the page ?? why 


Not at the front of the page, but show at the end of the page ??

 

2021-04-23_14-27-58.jpg

Views

72

Likes

translate

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

Contributor , Apr 24, 2021 Apr 24, 2021
The problem has been resolvedI use window.scrollTo(0,0);

Likes

translate

Translate

Translate
Adobe Community Professional ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

Hi.

 

I did not understand well. What do you mean by the end of the page?

 

Regards,

JC

Likes

translate

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
Contributor ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

When moving to the next frame in the browser
The cursor is at the end of the page
Not like usual at the front of the page?

Likes

translate

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
Contributor ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

2021-04-24_1-14-47.gif

Likes

translate

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
Contributor ,
Apr 24, 2021 Apr 24, 2021

Copy link to clipboard

Copied

The problem has been resolved
I use

 

window.scrollTo(0,0);

Likes

translate

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