# Caption and scroll slider problem

**URL:** <https://forum.kirupa.com/t/caption-and-scroll-slider-problem/14575>\
**Category:** Uncategorized\
**Created:** [February 27, 2003, 11:10pm UTC](https://forum.kirupa.com/t/caption-and-scroll-slider-problem/14575 "2003-02-27T23:10:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![elietabet](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@elietabet](https://forum.kirupa.com/u/elietabet)\
**Post date:** [February 27, 2003, 11:10pm UTC](https://forum.kirupa.com/t/caption-and-scroll-slider-problem/14575/1 "2003-02-27T23:10:08Z")

</div>

i have mouseover captions as in the Kirupa tutorial and i also have a scroller in that page.

the up/down arrows works fine, but when i click on the slider and drag it for more scrolling, the caption appears on the scroller if i mouseover any button, after dragging the slider.

i searched for other threads but nothing seems to work.

anyone can help ???

---

<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:** [February 27, 2003, 11:14pm UTC](https://forum.kirupa.com/t/caption-and-scroll-slider-problem/14575/2 "2003-02-27T23:14:27Z")

</div>

## this is the code for the slider:

## if (\_parent.SliderYScale\<100) { if (\_parent.ScrollType == “UpPress”) { \_parent.CurrentHeight = \_parent.ScrollSlider.\_y; if (\_parent.CurrentHeight\>(\_parent.HighestPoint+\_parent.ButtonClickSpeed)) { \_parent.NewHeight = \_parent.CurrentHeight-\_parent.ButtonClickSpeed; play (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.NewHeight); } else { stop (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.HighestPoint); } } else if (\_parent.ScrollType == “DownPress”) { \_parent.CurrentHeight = \_parent.ScrollSlider.\_y; \_parent.NewHeight = \_parent.CurrentHeight+\_parent.ButtonClickSpeed; if (\_parent.CurrentHeight\<(\_parent.LowestPoint-\_parent.ButtonClickSpeed)) { play (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.NewHeight); } else { stop (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.LowestPoint); } } else if (\_parent.ScrollType == “UpHover”) { \_parent.CurrentHeight = \_parent.ScrollSlider.\_y; if (\_parent.CurrentHeight\>(\_parent.HighestPoint+\_parent.ButtonHoverSpeed)) { \_parent.NewHeight = \_parent.CurrentHeight-\_parent.ButtonHoverSpeed; play (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.NewHeight); } else { stop (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.HighestPoint); } } else if (\_parent.ScrollType == “DownHover”) { \_parent.CurrentHeight = \_parent.ScrollSlider.\_y; \_parent.NewHeight = \_parent.CurrentHeight+\_parent.ButtonHoverSpeed; if (\_parent.CurrentHeight\<(\_parent.LowestPoint-\_parent.ButtonHoverSpeed)) { play (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.NewHeight); } else { stop (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.LowestPoint); } } else if (\_parent.ScrollType == “ScrollBarClick”) { \_parent.ClickHeight = \_parent.\_ymouse; \_parent.CurrentHeight = \_parent.ScrollSlider.\_y; if (\_parent.ClickHeight\<\_parent.CurrentHeight) { if (\_parent.CurrentHeight\>(\_parent.HighestPoint+\_parent.ScrollBarClickSpeed)) { \_parent.NewHeight = \_parent.CurrentHeight-\_parent.ScrollBarClickSpeed; play (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.NewHeight); } else { stop (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.HighestPoint); } } else if (\_parent.ClickHeight\>\_parent.CurrentHeight+\_parent.SliderHeight) { if (\_parent.CurrentHeight\<(\_parent.LowestPoint-\_parent.ScrollBarClickSpeed)) { \_parent.NewHeight = \_parent.CurrentHeight+\_parent.ScrollBarClickSpeed; play (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.NewHeight); } else { stop (); setProperty ("\_parent.ScrollSlider", \_y, \_parent.LowestPoint); } } } } else { stop (); }

* * *

and this is for the hover captions:

on (rollOver) {  
\_root.x = 1;  
\_root.caption.words = “About”;  
}  
on (rollOut) {  
\_root.x = 0;  
\_root.caption.words = " ";  
}

---

<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:** [February 28, 2003, 12:12pm UTC](https://forum.kirupa.com/t/caption-and-scroll-slider-problem/14575/3 "2003-02-28T12:12:34Z")

</div>

and here is the caption mc code:

onClipEvent (enterFrame) {  
if (\_root.x==1) {  
this.\_alpha = 87;  
} else {  
this.\_alpha = 0;  
}  
}

---

<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:** [March 1, 2003, 9:16am UTC](https://forum.kirupa.com/t/caption-and-scroll-slider-problem/14575/4 "2003-03-01T09:16:40Z")

</div>

so h88 got any idea ??

---

<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:** [March 2, 2003, 7:13pm UTC](https://forum.kirupa.com/t/caption-and-scroll-slider-problem/14575/5 "2003-03-02T19:13:20Z")

</div>

please help !!!

---

<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:** [March 2, 2003, 7:52pm UTC](https://forum.kirupa.com/t/caption-and-scroll-slider-problem/14575/6 "2003-03-02T19:52:04Z")

</div>

hmmm…have you got the fla we could view? If that’s not possible, I usually take out the button (or one of the objects) and get it to load on a different level and see if that helps. I really don’t see a problem with the code so that’s the best I can do for now…hmmm…if I get a minute I’ll try to use your code and create a file to fix the bug…

:love: ~ Seretha

---

<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:** [March 3, 2003, 12:13pm UTC](https://forum.kirupa.com/t/caption-and-scroll-slider-problem/14575/7 "2003-03-03T12:13:32Z")

</div>

i would appreciate if u can help me out man …
