Flash Q

Out of context: Reply #10

  • Started
  • Last post
  • 12 Responses
  • unfittoprint0

    It's more easy than you think to do an horizontal scrollbar.

    you have a rectangleMC called scroller. Insert it inside another MC.
    You then create a variable that is going to contain the width of scroll track [ie. scrollWidth]
    Within your MC you have to create a loop [I advise a setInterval] wich is going to update [on startDrag] the position oof the scroller in relation to the target ._x. Rememer it has to be the opposite positon [-scroller._x: targetC slides in the opposite direction].

    In the startDragr parameters, the final one shopuld be the dragSize , like:(0,0,0,dragsize)

    dragsize = scrollWidth-scroller._width.

View thread