Solved

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

Posted on 2006-11-02
7
180 Views
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.

Thanks
Charles
0
Comment
Question by:grinchikins
  • 3
  • 2
7 Comments
 
LVL 16

Expert Comment

by:ellandrd
ID: 17864954
what are you using on button click?

onRelease()?

can we see some actionscript please?

Ellandrd
0
 

Author Comment

by:grinchikins
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.

Thanks
Charles
      
0
 

Author Comment

by:grinchikins
ID: 17907320
I have found that incrementally resizing the physical size of the scrollPane makes it work better.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 16

Expert Comment

by:ellandrd
ID: 17907337
good.  glad you got it working

ellandrd
0
 

Author Comment

by:grinchikins
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.

Charles
0
 

Accepted Solution

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

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now