A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: drag-scroll through main timeline

  1. #1
    Member
    Join Date
    Apr 2001
    Posts
    35
    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

  2. #2
    Senior Member
    Join Date
    Dec 2000
    Posts
    515
    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.

  3. #3
    Member
    Join Date
    Apr 2001
    Posts
    35

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center