# Dynamic Text Problem

**URL:** <https://forum.kirupa.com/t/dynamic-text-problem/8616>\
**Category:** Uncategorized\
**Created:** [November 25, 2002, 5:40am UTC](https://forum.kirupa.com/t/dynamic-text-problem/8616 "2002-11-25T05:40:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eberth](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/eberth/32/41_2.png) [@Eberth](https://forum.kirupa.com/u/Eberth)\
**Post date:** [November 25, 2002, 5:40am UTC](https://forum.kirupa.com/t/dynamic-text-problem/8616/1 "2002-11-25T05:40:55Z")

</div>

Hi again, another question:  
I have a dynamic text, and i have some rollover buttons, and when i roll over those buttons, the content of the text changes, but i have a problem, i want the text to be in this format:

-Anuencia para la realización de eventos de peleas de gallos y/o carreras parejeras.  
-Anuencia para la realización de rifas y sorteos.  
-Carta de naturalización.  
-Declaratoria de nacionalidad mexicana.  
-Denuncia en contra de notario público  
-Obtención de Licencia para la venta de bebidas alcohólicas.  
-Documento de identidad y viaje  
-Tramite para la obtención de la autorización de empresas de seguridad privada

but i cant put it that way into the action script window, i need to put it in a single line, so, that’s my question, how can the text be in that format?, btw, i use this code:

on(rollOver){  
window.text = " here’s the 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:** [November 25, 2002, 6:54am UTC](https://forum.kirupa.com/t/dynamic-text-problem/8616/2 "2002-11-25T06:54:55Z")

</div>

Hi there,

You need to render text as html.

Click the text box where you want the text to change with rollovers and launch the property inspector. Click the button there to render text as html - it is represented by a less than sign and a greater than sign next to each other.

Now you need to go into the ActionScript you’ve assigned to your buttons and place the html break tags right next to the beginning of the parts of the text that you want to start on new lines. As you said you do need to keep all this on one line in the Actions editor but with the html tag br tags and the text box html rendered, the text will be the way you want it.

One more thing. In the property inspector - text box highlighted - change single line to multiline and make sure that the text box is large enough to contain all your text (that’s if you’ve not already done this).

The html tag for break is br enclosed by the less than and greater than sign by the question mark on your keyboard. (ignore this end bit if you already know; just making sure you know what I mean so I can help ya)

hope this helps

---

<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:** [November 25, 2002, 7:38am UTC](https://forum.kirupa.com/t/dynamic-text-problem/8616/3 "2002-11-25T07:38:12Z")

</div>

you can specify a line break without using html with "  
"

text = “first line  
second line”;

---

<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:** [November 25, 2002, 8:57am UTC](https://forum.kirupa.com/t/dynamic-text-problem/8616/4 "2002-11-25T08:57:01Z")

</div>

🙂

Thats so much simpler. If only I knew that before. Could you post some more of these short cuts: "  
"

---

<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:** [November 25, 2002, 6:36pm UTC](https://forum.kirupa.com/t/dynamic-text-problem/8616/5 "2002-11-25T18:36:27Z")

</div>

there’s a few more in the manual at:  
Understanding the ActionScript Language \> About data types \> String

---

<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:** [November 25, 2002, 7:18pm UTC](https://forum.kirupa.com/t/dynamic-text-problem/8616/6 "2002-11-25T19:18:12Z")

</div>

thanks, going to have a look now 🙂
