# Scroll bar help

**URL:** <https://forum.kirupa.com/t/scroll-bar-help/19977>\
**Category:** flash\
**Created:** [May 3, 2003, 4:04pm UTC](https://forum.kirupa.com/t/scroll-bar-help/19977 "2003-05-03T16:04:16Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![TOKiN\_iT\_uP](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@TOKiN\_iT\_uP](https://forum.kirupa.com/u/TOKiN_iT_uP)\
**Post date:** [May 3, 2003, 4:04pm UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/1 "2003-05-03T16:04:16Z")

</div>

ok ive tried uploading this before, but the file was to big, so i took out some \*\*\*\* to lighten it up. now the scroll bar is were i want it to be, and ive been trying to edit the x and y code, but cant seem to get it right. so i was wondering if one of ya could take a look at it and tell me wut im doing wrong. thx!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2003, 1:21pm UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/2 "2003-05-04T13:21:43Z")

</div>

ive posted a few questions on this board, and hardly ANY GET ANWSERED…DO I HAVE SOME KINDA INTERNET AIDS, CANT TALK TO ME BECUASE U MIGHT GET INFECTED? wtf! ive posted on how to fix my problem 2 or 3 times… i even included the fla… and i still dont get a \*\*\*\*ing reply! But oh oh, the other guy that was having the same problem that i have got anwsered right away, he included a nice fla, and everyone was just so happy to help him. Wow it must be nice, CAUSE THIS \*\*\*\*ING SUCKS! cant i get a LITTLE help here, just a \*\*\*\*ing little, its not like im on here all day annoying the \*\*\*\* outa u guys. I have one **in problem and u blow me off. whatever, this is bull**!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2003, 11:46pm UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/3 "2003-05-04T23:46:07Z")

</div>

have u seen how many other infinte menu problems there are out there…and how everyone gets anwsered, except for ME!!!

and dont tell me im not getting help because of the way ive been acting, because i was as nice as can be. Ive asked like 3 times for someone to take a quick look and tell me wut im doing wrong, but does anyone help??? NO!@

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2003, 11:50pm UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/4 "2003-05-04T23:50:53Z")

</div>

calm down dude, now what is the problem i took a look at the fla and seen the loop problem, which is explained in the tut how to fix that so whta is wrong now?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2003, 11:56pm UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/5 "2003-05-04T23:56:51Z")

</div>

yea man, calm down, its not that big of a deal. And if other people had problems with it, read through their post and see if thay ran into the same problem. No need to flip out like you just did. …

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2003, 11:59pm UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/6 "2003-05-04T23:59:54Z")

</div>

omfg…im…aosdufiasdf…i dont even kno wtf to say…yet i told u i asked this question about 4 times in the NICES WAY POSSIBLE! NO ONE AWNSERS ME! THe only way i actually got ur attention was by flipping out! so now that i HAVE UR ATTETION, i need help with the x and y position, as u can see it doesnt loop perfectly, it kinda jumps. And i think someon was saying it was bcause the x and y position, but i cant seem to get the right mesurments to fix that…so help plz?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2003, 12:01am UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/7 "2003-05-05T00:01:27Z")

</div>

usally if i have a problem, i would download the source .fla

i am no go at this kind of stuff

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2003, 12:04am UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/8 "2003-05-05T00:04:51Z")

</div>

> \*Originally posted by Alex \*  
> \*\*usally if i have a problem, i would download the source .fla

i am no go at this kind of stuff \*\*

already have…tahts not my problem… see the size of the file is set to the code that it has… my size is different and i need adjustments to make it run right. Thers someone on this forum that helped someon with the exact question, i dont remember who it was but ikno hes in here somewere. i asked him if there was some kinda formula i could use to adjust this, but no awnser, so i aksed if someone could dl it and tell me wut it should be…o well

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2003, 12:06am UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/9 "2003-05-05T00:06:16Z")

</div>

run a search, it should be there.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2003, 12:14am UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/10 "2003-05-05T00:14:36Z")

</div>

no…u see… he didnt give me the forumula to change teh x and y posistions, the time i aksed him he didnt awnser, ive IMed him, no awnser, so i was wondering if someone esle out there knos how to do this, or can just take the fla and do it for me…not that hard… just someone who can spare 30 seconds of there life…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2003, 6:19am UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/11 "2003-05-05T06:19:45Z")

</div>

hi TIU! try this one…  
[AS]onClipEvent (load) {  
xcenter = 597.5; //=(mask width)/2+mask.\_x  
speed = 2/10;  
}  
onClipEvent (enterFrame) {  
var distance = \_root.\_xmouse-xcenter;  
\_x += (distance\*speed);  
if (\_x\>475) {  
\_x = 120;  
}  
if (\_x\<120) {  
\_x = 475;  
}  
}{[/AS]  
xcenter = 597.5 = (mask width)/2+mask.\_x  
or  
xcenter = 597.5 = 245/2+475;

475 = x of mask (rightmost)  
120= x of mask (lefttmost)

considering your mask has a width=245, x=475.0

in your case:  
[AS]onClipEvent (load) {  
xcenter = 593.8;  
speed = 2/10;  
}  
onClipEvent (enterFrame) {  
var distance = \_root.\_xmouse-xcenter;  
\_x += (distance\*speed);  
if (\_x\>476.8) {  
\_x =119.7;  
}  
if (\_x\<119.7) {  
\_x = 476.8;  
}  
}{[/AS]  
xcenter = 593.8 = (mask width)/2+mask.\_x  
or  
xcenter = 593.8 = 243/2+476.8;

leftover:  
please be considerate… you don’t have to do that to catch someones attention… not at all times pipol here got the time to jump on all questions…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 5, 2003, 6:15pm UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/12 "2003-05-05T18:15:23Z")

</div>

ahh ic, very cool, well thx noxious for taking the time out an explaining to me how to do it… thx man!

and yes i kno, i went about it the wrong way, im sorry, ill do beter next time 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 5:44am UTC](https://forum.kirupa.com/t/scroll-bar-help/19977/13 "2003-05-06T05:44:11Z")

</div>

sure! no prob at all! =)
