grinchikins
asked on
ScrollPane does not move on first click - moves back up to wrong position
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.
Thanks
Charles
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.
Thanks
Charles
ASKER
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("bord erStyle", "none");
scrollCard1.vLineScrollSiz e = 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.
Thanks
Charles
scrollCard1.setStyle("bord
scrollCard1.vLineScrollSiz
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.
Thanks
Charles
ASKER
I have found that incrementally resizing the physical size of the scrollPane makes it work better.
good. glad you got it working
ellandrd
ellandrd
ASKER
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.
Charles
Charles
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
onRelease()?
can we see some actionscript please?
Ellandrd