-
Hi all,
i want to have a horizontal/dragging scroll bar that will "scrub" through my main time line. Any tutorials or suggestions out there for this one?
thanks in advance
-
well, i'm not sure where you are starting on this, experience-wise. do you know how to make a scroll bar and get its value? that would be the first step. there are tons of tutorials and sample fla's right here on flashkit for that.
from there, it's a matter of taking that value and applying that to a gotoAndStop() action for your timeline.
assuming your main time line is 175 frames, and your scrollbar is a movieclip named "slider" which returns a value of 0-100, this code would go on it:
onClipEvent(enterFrame){
_root.gotoAndStop(175/100*value);
}
where 175 is the number of frames on the main time line
100 is the top possible value of the slider and
value is the variable that the slider controls.
-
thanks
thanks for the help.
I found that Phillip Kerman ActionScript in FLASH book which I proudly own actually has a chapter that pertains to my problem. So anyway problem solved. Off to other problems!
mike
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|