Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Draggable Scroll - F5
From: Kristopher Schultz
Date: Fri, 27 Oct 2000 00:32:43 +0100

Jason,

I haven't delved into the clip events in Flash 5 yet, but you can download a
Proportional Scrollbar Widget that I created to see my approach to the same
task. It is coded to be compatible with Flash 4 as well as 5 and the code is
very well commented and laid out so that you should have no problem
dissecting it. You can get my file from Flashkit...
http://www.flashkit.com/movies/Widgets/Proporti-Kristoph-1802/index.shtml



kristopher schultz - mills james productions
programming : compression : management

@ www.millsjames.com - columbus, ohio
@ 614.850.2095



> From: Jason Bouwmeester <jasonatintervisual [dot] com>
> Reply-To: flasheratchinwag [dot] com
> Date: Thu, 26 Oct 2000 13:47:08 -0600
> To: "'flasheratchinwag [dot] com'" <flasheratchinwag [dot] com>
> Subject: FLASH: Draggable Scroll - F5
>
> 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 helpatchinwag [dot] com
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 helpatchinwag [dot] com


Replies
  FLASH: Draggable Scroll - F5, Jason Bouwmeester

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]