Hi everyone,
I am new here and this is the first time I post as the scrollpane is killing me.
I have a simple fla. In the library I have a clip called myMovie. This clip consists of a Input box with four lines of text already typed in. Then there is the scrollpane component.
I dragged the scrollpane to the main stage and named it myScrollBar. In the Parameters page I entered myMovie as the Scroll Content Identifier, and auto for Vscroll and Hscroll. Drag is false. I put action script code in the first frame.
Two problems:
1) The scroll bars don't show up if I don't set them to true in here, even though there are more rows hidden (e.g. the fourth line don't show but the scroll bars were not there. I can move the arrow keys to go up and down)
var content = myScrollBar.getScrollContent();
myScrollBar.setSize(content._width,content._height);
myScrollBar.refreshPane;
stop();
2) If I set them like the following then I see the scroll bars but I still can't scroll to the last row eventhough it is there (as you can use the arrow keys to move down.
var content = myScrollBar.getScrollContent();
myScrollBar.setSize(content._width+10,content._height+10);
myScrollBar.setVScroll(true);
myScrollBar.setHScroll(true);
myScrollBar.refreshPane;
stop();
Yes I could use the scroll bar instead of the scroll pane. But I want to see how the scroll pane would work on a simple text box.
Anyone can help? Thanks so much in advance!
Yan