Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3787018
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:46:28+00:00 2026-05-19T11:46:28+00:00

I spend almost 3 hours trying to figure this out, hope someone can help

  • 0

I spend almost 3 hours trying to figure this out, hope someone can help me.

I have a a set up like this:

ScrollPane > Sprite > multiple Loader one after another along y coordinate > external swf.

  • The setup is to allow scrolling of the loader/swf vertically.
  • All the objects have unit scale (no scale) except for Sprite which may have a scale factor due to zoom.
  • The external swf are pages from a PDF, one page per swf.

All is good so far.

Now, I have a set of next and back navigation button to step through the pages. The problem is I cannot find the correct formula to calculate the ScrollPane.verticalScrollPosition to set to.

Can you spot the mistake here? Thanks…

scroll_per_height = scrollpane.maxVerticalScrollPosition / (sprite.height - scrollpane.height);
height_per_page = sprite.height / sprite.loaders.Count
scroll_position = (page - 1) * height_per_page  * scroll_per_height;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:46:29+00:00Added an answer on May 19, 2026 at 11:46 am

    Usually I just delete my question if i find out the answer before anyone replies. But I think this will help some people at least:

    The verticalScrollPosition is not the scrollbar’s scroller position, instead, it’s actually the y-coordinate offset of the scrollpane.content

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I spend most of my time in C# and am trying to figure out
I spend quite some hours banging my head against the wall trying to set
I just spent almost an hour trying to figure out an issue with having
It must be obvious, but I can't figure it out. I spent almost a
Im trying to compile this project h__p://ross-warren.co.uk/my-twitter-clone-using-jsp-and-cassandra/ I have downloaded it, and spend almost
About a month a go I spent almost an entire week trying to figure
Have spend quite some time to learn Sencha touch, just like an evaluation about
I have spend the last 1 or 2 hours diving into Java reflection. I
I have Google for almost 10 hours and it seems a bit unclear. When
I've spent a couple of hours searching about this error, and I have tested

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.