dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: AS2 - Scrollpane boundries

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    2

    Question AS2 - Scrollpane boundries

    I am using a scrollpane to hold my thumbnails of pictures. It has two arrows, one on the left side and one on the right side to scroll right and left. I can get them to scroll right and left just fine, but they keep going and going and going. I am trying to limit it, but my code isn't working. Please help! This is the code for the button:

    Code:
    on(press)
    {
    if(BFC_thumb_image_holder._x > 0 ) {
    	this.enabled = true;
    	this.onEnterFrame = function() {
    		BFC_pane.hPosition=BFC_pane.hPosition-10;
    	}
    	}
    else {
    		this.enabled = false;
    	}
    }
    on(release)
    {
    	delete this.onEnterFrame;
    }
    That was just the left one, I tried to limit it, because the edge of it is at 0 on the MC.

  2. #2
    I know nothing.
    Join Date
    Feb 2008
    Posts
    315
    Can you post your FLA? It may have to do more with the container of your scroller....

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