A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Scrollbar Problem during dragging the scrollbar's button

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    3

    Scrollbar Problem during dragging the scrollbar's button

    please visit this website which I had developed it with flash action scripts before... www.baharmovahed.com
    It had a problem in biography page with its scrollbar, I want help to solve it.
    after draging scrollbar button in top or down sides of the scrollbar, it will be out of control! and the button will go up and down with mouse pointer.

    Kind Regards,
    Shery

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Use onReleaseOutside=onRelease;

    gparis

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    3
    my scrollbar have 3 parts of action scripts...

    scrollbar actions frame:

    txt = _parent.mc_method_txt;
    msk = _parent.mc_method_mask;
    txt.setMask(msk);
    sc_factor = (txt._height-msk._height)/(scroll_line._height);
    this.onEnterFrame = function()
    {
    ty =msk._y-scroll_mc._y*sc_factor;
    txt._y += (ty-txt._y)/6;
    };

    scrollbar action button:

    on(press){
    this.startDrag(false,ll,tl,rl,bl);
    }
    on(release){
    stopDrag();
    }

    and scrollbar action button frame:

    sl = _parent.scroll_line;
    ll = rl=sl._x;
    tl = sl._y;
    bl = sl._y+sl._height;


    I don't have control on scrollbar moving, I am an amateur in flash action script and I don't know where I can replace the previous helping statement.

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    on(release, releaseOutside)

    gparis

  5. #5
    Junior Member
    Join Date
    Jul 2010
    Posts
    3
    Dear gparis,
    Thanks so much for your help, I hope your more success in advance.

    Best Regards

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