# Textbox + scroller mystery

**URL:** https://forum.kirupa.com/t/textbox-scroller-mystery/16220
**Category:** Uncategorized
**Created:** [March 22, 2003, 9:30am UTC](https://forum.kirupa.com/t/textbox-scroller-mystery/16220 "2003-03-22T09:30:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mooler](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mooler](https://forum.kirupa.com/u/mooler)
#### Post date: [March 22, 2003, 9:30am UTC](https://forum.kirupa.com/t/textbox-scroller-mystery/16220/1 "2003-03-22T09:30:32Z")

</div>

Hi I´´ve been struggling with a strange problem since the begining om MX release.

Sometimes when I wanna attach a scrollbar from the components it just don´t attach to the textbox. And I´m using dynamic, and multiline settings in the properties of the textbox.

Sometimes it works and sometimes it doesn´t.

I´m attaching a fla were it doesn´t work. and hoping that someone could resolve this “mystery” ro me.

---

<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 22, 2003, 9:44am UTC](https://forum.kirupa.com/t/textbox-scroller-mystery/16220/2 "2003-03-22T09:44:03Z")

</div>

Howdy…

Well… Change your text field to the Dynamic text field… Yours is set to Static at the moment… Give it an instance name and drag the ScrollBar component onto that text field and resize it… (It’s working abit weird though… :()

While I am at it… This code,

```auto
choice = Math.round(Math.random()*5);
switch (choice)
{
case 0 :
	loadMovie("picsload1.swf", holder);
	break;
case 1 :
	loadMovie("picsload2.swf", holder);
	break;
case 2 :
	loadMovie("picsload3.swf", holder);
	break;
case 3 :
	loadMovie("picsload4.swf", holder);
	break;
case 4 :
	loadMovie("picsload5.swf", holder);
	break;
case 5 :
	loadMovie("picsload6.swf", holder);
	break;
}

```

can be two liner

```auto
choice = Math.round(Math.random()*5);
loadMovie("picsload" + (choice + 1) + ".swf", holder);

```

---

<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 22, 2003, 10:04am UTC](https://forum.kirupa.com/t/textbox-scroller-mystery/16220/3 "2003-03-22T10:04:16Z")

</div>

OK thx I´ll try that

---

<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 22, 2003, 10:11am UTC](https://forum.kirupa.com/t/textbox-scroller-mystery/16220/4 "2003-03-22T10:11:58Z")

</div>

You’re welcome… 😉
