# Problem with htmlText and uiscrollbar?

**URL:** <https://forum.kirupa.com/t/problem-with-htmltext-and-uiscrollbar/272341>\
**Category:** flash\
**Created:** [October 4, 2008, 6:11am UTC](https://forum.kirupa.com/t/problem-with-htmltext-and-uiscrollbar/272341 "2008-10-04T06:11:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![teamstan](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@teamstan](https://forum.kirupa.com/u/teamstan)\
**Post date:** [October 4, 2008, 6:11am UTC](https://forum.kirupa.com/t/problem-with-htmltext-and-uiscrollbar/272341/1 "2008-10-04T06:11:00Z")

</div>

Hi!

I am having some trouble with a dynamic html-enabled textfield and the uiscrollbar component.

I created a dynamic textfield on the stage, named it “mytext”. Enable it for HTML and make it multiline.

I added this action:

mytext.htmlText=“test\<BR\>\<BR\>test\<BR\>\<BR\>test”

The html shows up just fine. I add a uiscrollbar to it. It is definitely targeted for “mytext”. Now when I test it I get:

\_level0.mytext

in the textbox instead. When I trace mytext.htmlText, I get the correct HTML but it just doesn’t show up. When I shorten my content so that the UIscrollbar isn’t necessary, the HTML is again displayed correctly.

Now if I update the code to say instead:

mytext=“test\<BR\>\<BR\>test\<BR\>\<BR\>test”

it actually does work, but I don’t want to do that because I’m trying to embed a movieclip inside the textfield, and to do so, it needs to be htmlText. When I trace mytext.htmlText after this I get “undefined”.

Can anyone help? I’ve tried to google the issue but found nothing. Is it just something really simple I didn’t think of?

Thanks,  
Ann
