[thelist] Flash slider
Erik Mattheis
gozz at gozz.com
Tue Mar 12 12:42:01 CST 2002
Pretty simple ...
Assumtions:
- Your animation's timeline is _root.animation
- You made your slider by making a movieclip and putting a thumb
inside the slider which is also a movie clip ... this way the _x of
the thumb divided by the _width of it's parent will indicate the
progress of the movie.
- A button inside the thumb movieclip sets a variable called sliding
to true/false and you also are saying this.startDrag() for the thumb.
You could have this action on the thumb movieclip
onClipEvent(enterFrame) {
if (sliding) {
new_frame = Math.ceil((this._x/_parent._width) *
_root.animation._totalframes);
_root.animation.gotoAndPlay(new_frame);
}
else {
this._x =
(_root.animation._currentframe/_root.animation._totalframes) *
_parent._width;
}
}
>so, let's say i have a Flash movie that has simple VCR-style
>controls... and let's say i have a progress bar showing where you
>are in the movie... and let's say that i now want that progress bar to
>be something a user can grab and use to quickly scroll to another
>point in the movie...
>
>and let's say google searches and Flash site surfing turned up
>nothing...
>
>might anyone here have any suggestions?
--
__________________________________________
// wealth accumulation experiment:
- E. Joseph Mattheis
(612) 377 2272
newer, gaudier: http://goZz.com/
__________________________________________
More information about the thelist
mailing list