ScrollPane does not move on first click - moves back up to wrong position

Posted on 2006-11-02
Last Modified: 2010-04-03
I have ScrollPane working properly - it scrolls a mc with a row of buttons on a recipe card.  The only problem is the first click on the down arrow does nothing - the second click starts the scroll - and when I click the up button to scroll back to the top the first line ends up past the top of the card (so the text is cut in half) - ie it's going half a line higher than its start position.

I have tried changing the default vLineScrollSize = 5 to other numbers but that just makes the behavior even more erratic.  For example, the actual pixel height between each line is about 14, although Macromedia says that this number is the pixel height of the line, if I set it to 14 it jumps down three lines and clicking the up button sends it back to the 2nd line - not the first.  Very bizarre.

Maybe this is a registration issue.

Question by:grinchikins
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 16

Expert Comment

ID: 17864954
what are you using on button click?


can we see some actionscript please?


Author Comment

ID: 17867329
Ok here you go. On the main time line I have a background card color on the bottom layer.  On the next layer I have the scrollPane (instance scrollCard1) - in its Parameters I have "buttons1" which is the name of the mc with a series of buttons.  When clicked (onRelease) the buttons open a text field beside the recipe card (center of stage) - this works perfectly.  On the main frame script layer I have:

scrollCard1.setStyle("borderStyle", "none");
scrollCard1.vLineScrollSize = 5;

I only put vLineScrollSize there so I could try different numbers more easily than in the Parameters box.

Everything is working except for the odd scrolling behaviour.

If this turns out to be a complicated answer I'll increase the points.


Author Comment

ID: 17907320
I have found that incrementally resizing the physical size of the scrollPane makes it work better.
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

LVL 16

Expert Comment

ID: 17907337
good.  glad you got it working


Author Comment

ID: 18078098
Since my last post I found that you simply need extra space at the top of the scrollpane because the scroller does not stop as far up at the top as where it started.  Then by incrementally adjusting the window size you can get the bottom to end where you want.  not very exact, to the say the least.  Maybe Adobe will make it work better in future versions.


Accepted Solution

PashaMod earned 0 total points
ID: 18193225
Closed, 50 points refunded.
Community Support Moderator

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question