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

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

Engaged ,
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

178

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

Engaged , Apr 24, 2021 Apr 24, 2021

The problem has been resolved
I use

 

window.scrollTo(0,0);

Votes

Translate

Translate
Community Expert ,
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

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
Engaged ,
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?

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

LATEST

The problem has been resolved
I use

 

window.scrollTo(0,0);

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