A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help with scrollbar formula

  1. #1
    Junior Member
    Join Date
    Dec 2008
    Posts
    9

    Question Help with scrollbar formula

    I've been trying to create a scrollbar for the last 12 hours and can't figure out the corect formula to use to scroll the content when dragging the scroller.

    I tried:
    content_mc.y = 295+(292-content_mc.height)/(292-(292*292/content_mc.height))*(sb_mc.y);

    295 is the y pos of the MovieClip and the scroller and 292 is the height of the mask. The height of the rectangle of the scrollbar is also calculated as: 292*292/content_mc.height.

    Please help! I am even willing to pay a small amount..I am desperate!

    files are here: http://lisag.xtreemhost.com/christianfm/christianfm.zip

  2. #2
    Junior Member
    Join Date
    Dec 2008
    Posts
    21
    I would be more then willing to help, but the links is wrong.
    It leads to MyBookFace

    16:12.12 2cbd76 : Buy phentermine
    16:09.32 9fc02e : pP9FTd bnflxvsdnlpe,
    16:09.14 4951a7 : ,
    16:08.34 1ba5b9 : jhxqPP nkfvllmiwtrn,

    Buy phentermine?

    I do not know very much about scrollbars in flash(actually none) but a general formula would be

    content_mc.y=295-content_mc.height*(sb_mc.y/sb_mc.height)

    (assuming you're scrolling down)

    For my services I charge 150$ per post


    jk I'm free
    Last edited by nichaey; 01-03-2009 at 05:59 PM.

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