# Kirupa caption

**URL:** <https://forum.kirupa.com/t/kirupa-caption/17232>\
**Category:** Uncategorized\
**Created:** [April 2, 2003, 10:19pm UTC](https://forum.kirupa.com/t/kirupa-caption/17232 "2003-04-02T22:19:17Z")\
**Posts on this page:** 9\
**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:** [April 2, 2003, 10:19pm UTC](https://forum.kirupa.com/t/kirupa-caption/17232/1 "2003-04-02T22:19:17Z")

</div>

the kirupa caption tutorial doesnt seem to work with any scroller at all.

i searched all threads regarding this issue and couldnt find the right solution.

anyone had the same thing and fixed it ??!!!

---

<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:** [April 2, 2003, 10:49pm UTC](https://forum.kirupa.com/t/kirupa-caption/17232/2 "2003-04-02T22:49:20Z")

</div>

can you please post a link to it. thanks:)

---

<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:** [April 2, 2003, 10:50pm UTC](https://forum.kirupa.com/t/kirupa-caption/17232/3 "2003-04-02T22:50:24Z")

</div>

i don’t really understand what you mean… what kind of scroller? text scroller?

---

<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:** [April 2, 2003, 10:52pm UTC](https://forum.kirupa.com/t/kirupa-caption/17232/4 "2003-04-02T22:52:25Z")

</div>

try removing this line in the timeline

```auto
startDrag(_root.caption, true);

```

and use this one in the movie clip _caption_

```auto
onClipEvent (enterFrame) {
if (_root.x == 1) {
this._alpha = 50;
} else {
this._alpha = 0;
}
this._x = _root._xmouse;
this._y = _root._ymouse;
}

```

😉 =)

---

<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:** [April 2, 2003, 10:53pm UTC](https://forum.kirupa.com/t/kirupa-caption/17232/5 "2003-04-02T22:53:05Z")

</div>

I think this is what he is referring to and I am also confused:  
[http://www.kirupa.com/developer/mx/captions.htm](http://www.kirupa.com/developer/mx/captions.htm)

---

<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:** [April 3, 2003, 11:11am UTC](https://forum.kirupa.com/t/kirupa-caption/17232/6 "2003-04-03T11:11:52Z")

</div>

yeah thats the link.  
the problem is that when u drag the slider of any scroller and then hover back on any of the buttons that has the caption, the caption appears on the scroller and not on the button.

GOD BLESS U kax, ur advice worked fine. can u plz give me a glance of what exactly this code did ??

also, i wrote the code on the caption MC.

but…

on another layer, the action layer, i kept this code “startDrag(\_root.caption, true);” and it worked fine. the caption is not messing up anymore. should i remove this line or keep it ??  
i tried with and without it and the problem is solved. what do u think?

---

<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:** [April 3, 2003, 1:51pm UTC](https://forum.kirupa.com/t/kirupa-caption/17232/7 "2003-04-03T13:51:26Z")

</div>

ok… =)

i thought the scrollbar component used MovieClip.startDrag but it doesn’t [size=1]at least i couldn’t find it in its scripts[/size]… so i don’t know why you had problems in the first place 😛

the thing is that you can’t drag two objects at the same time, the first object being dragged just stops :-\

so i replaced it with the script above. basically it just moves the \_x and \_y properties of the movie clip to \_xmouse and \_ymouse which obviously are the x and y location of the mouse 😉

---

<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:** [April 3, 2003, 2:35pm UTC](https://forum.kirupa.com/t/kirupa-caption/17232/8 "2003-04-03T14:35:19Z")

</div>

exactly - and dont forget to replace the caption string by = “” when you stop the caption. because sometimes ( i have no idead why though) a 0% opacity in a MC will still show the text… probably because it’s a dynamic text…

---

<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:** [April 3, 2003, 2:45pm UTC](https://forum.kirupa.com/t/kirupa-caption/17232/9 "2003-04-03T14:45:30Z")

</div>

> _Originally posted by mlkdesign_  
> **…because sometimes ( i have no idead why though) a 0% opacity in a MC will still show the text… probably because it’s a dynamic text…**

yup… you must embed the font outline 🙂
