Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: Draggable Scroll - F5 |
From: | Jason Bouwmeester |
Date: | Thu, 26 Oct 2000 21:03:59 +0100 |
Asked this to the Flashcoders list but it seems to be down so here goes...
I have a textbox that reads in HTML formatted text from a .txt file. I've
got the two scroll buttons working no problem, I have a small ball that is
more of a status bar indicator, i.e. it goes down as you get closer to the
bottom of the list and up as you get closer to the top, much like a
scrollbar in OS windows. Anyways, I want the ball to be draggable and scroll
the content in the text box at the same time, I just can't quite get it.
Here's what I have for code so far:
onClipEvent (enterFrame) {
if (mousePressed) {
mousePositionVAR = _root._ymouse;
startDrag("",true,137,190,137,254);
if(_root._ymouse > mousePositionVAR){
_root.headlinesVAR.scroll =
_root.headlinesVAR.scroll + 1;
} else {
_root.headlinesVAR.scroll =
_root.headlinesVAR.scroll - 1;
}
}
}
Now, when I take out the if else statement, it does scroll no problem, so I
know that there is something wrong with the if else... not to sure what
though as it seems to be making sense.
Any ideas/suggestions would be appreciated!
TIA,
jb
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: Draggable Scroll - F5, Kristopher Schultz
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]