Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vertical Scroller 2

Status
Not open for further replies.

stewart111

IS-IT--Management
Jul 31, 2002
4
0
0
GB

I need a Vertical Scroller but in Flash.

Two problems continue to baffle me..argh!! (despite searching everywhere for clues directly on the 2 problem areas!)

1 How to make it fully automatic (if poss) (no scroll bar at all!)
and
2 How to make it scroll a variable distance (ie text length not fixed)

Hints on these 2 difficulties will be very appreciated!

Thanks
Stewart

 
In the clip with the textbox (I've given it the variable name "contents") put this code in frame 1:

if(contents.scroll<contents.maxscroll){
contents.scroll++;
}

...and this in frame 2:

gotoAndPlay(1);

And the text will scroll up until it reaches the end - the length of text isn't an issue.

 

Wangbar..thanks.
I'm going to play around and let you know (to be continued..)!
Stewart
 
would that scroll it line-by-line? or move it up pixel-by-pixel? is there a way to do it pixel-by-pixel if that's not it? - JGD -
 
Pixel by pixel is a lot more work.

One way is to place the text inside a textbox inside a movieclip and then move the whole clip pixel by pixel by altering its _y coordinate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top