Scroll Limit

This is a discussion on "Scroll Limit" within the Flash & Multimedia Forum section. This forum, and the thread "Scroll Limit are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 8th, 2007, 20:56
New Member
Join Date: May 2007
Location: Philadelphia, PA
Age: 27
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Scroll Limit

I have a issue with my scroll arrows. When dragging the scroll bar is stops at the initial X and Y. When using the up/down arrows, it ignores that boundary. How would you set that limit?

Thank you in advance.

Code: Select all
...previous code

scroller_mc.onEnterFrame = function() {
    current=((this._y - initialY)/scrollLength*maxScroll);
    news_txt.scroll = current+1;
}

scroller_mc.onPress = function() { this.startDrag(false, initialX ,initialY, initialX, endY); }
scroller_mc.onRelease = function() { stopDrag(); }
scroller_mc.onReleaseOutside = function() { stopDrag(); }

up_mc.scroll = function() {
    this._parent.scroller_mc._y--;
}

up_mc.onPress = function(){
    this.int_down = setInterval(this, "scroll", 0);
}

up_mc.onRelease = up_mc.onReleaseOutside = function(){
    clearInterval(this.int_down);
}
down_mc.scroll = function(){
    this._parent.scroller_mc._y++;
}

down_mc.onPress=function(){
    this.int_down = setInterval(this, "scroll", 0);
}

down_mc.onRelease = down_mc.onReleaseOutside = function(){
    clearInterval(this.int_down);
}
Reply With Quote

  #2 (permalink)  
Old May 9th, 2007, 13:08
Reputable Member
Join Date: May 2006
Location: NC, USA
Age: 16
Posts: 355
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to MrMadison Send a message via MSN to MrMadison Send a message via Skype™ to MrMadison
Re: Scroll Limit

I've never had this problem before...

Could you show us an example?

And also...
http://www.kirupa.com/developer/flash8/scrollbar.htm
Might help you somewhat. Go to the third page or http://www.kirupa.com/developer/flash8/scrollbar3.htm
and look at the actionscript...it might help a little bit.
Reply With Quote
  #3 (permalink)  
Old May 9th, 2007, 13:18
New Member
Join Date: May 2007
Location: Philadelphia, PA
Age: 27
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Scroll Limit

Here is the page that is affected: http://www.wrtdesign.com/currents2.html
Reply With Quote
Reply

Tags
scrollbar, actionscript

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email account, MB limit jimz Hosting & Domains 4 Sep 18th, 2006 11:41
Scroll button to scroll flash page helpmhost Flash & Multimedia Forum 3 Apr 26th, 2006 11:30
movie width limit Smokie Flash & Multimedia Forum 4 Oct 4th, 2004 11:54
Is there a limit? charter Databases 4 Jun 22nd, 2004 08:35


All times are GMT. The time now is 19:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43