# HTML Formatting dynamic text

**URL:** <https://forum.kirupa.com/t/html-formatting-dynamic-text/165200>\
**Category:** flash\
**Created:** [October 8, 2005, 11:47pm UTC](https://forum.kirupa.com/t/html-formatting-dynamic-text/165200 "2005-10-08T23:47:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulsheff](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@paulsheff](https://forum.kirupa.com/u/paulsheff)\
**Post date:** [October 8, 2005, 11:47pm UTC](https://forum.kirupa.com/t/html-formatting-dynamic-text/165200/1 "2005-10-08T23:47:37Z")

</div>

[font=Arial]Hi guys[/font]

[font=Arial] [/font]

[font=Arial]I’ve used one of the tutorials on the site to import text into a dynamic text box[/font]

[font=Arial] [/font]

[font=Arial]

```auto
 loadText = new loadVars();[/font]

[font=Arial]loadText.load("kirupa.txt");[/font]

[font=Arial]//creating the loadVarsText function[/font]

[font=Arial]loadText.onLoad = function() {[/font]

[font=Arial] scroller.text = this.kirupatext;[/font]

[font=Arial]};[/font]

[font=Arial]

```

[/font]

[font=Arial] [/font]

[font=Arial]I’ve got a horizontal scrolling movie that duplicates the clips from the number of results passed to it by another script, and creates buttons with imported images and links with different querystring id data on them. So in actual fact what it does is instead of[/font]

[font=Arial] [/font]

[font=Arial]loadText.load(“kirupa.txt”);[/font]

[font=Arial] [/font]

[font=Arial]It does[/font]

[font=Arial] [/font]

[font=Arial]loadText.load(“[http://www.mysite.com/variablespage.php?id=1](http://www.mysite.com/variablespage.php?id=1)”);[/font]

[font=Arial] [/font]

[font=Arial]Now this is all works fine apart from 2 things.[/font]

[font=Arial] [/font]

[list]  
[\*][font=Arial]A double return in the text result in a massive gap in between the paragraphs? I don’t know where it’s coming from. The  
isn’t being converted to   
 or anything like that, does anyone know why the gap is so big?[/font]  
[/list][font=Arial] [/font]

[font=Arial]I thought I might be able to fix it by setting the box to render text as HTML, but it seems to be ignoring any HTML tags.[/font]

[font=Arial] [/font]

[list]  
[\*][font=Arial]The other problem is if I type[/font][font=Arial] [/font]  
[/list][font=Arial]

```auto
<a href=”address.php”>Link</a>

```

[/font]

[font=Arial] [/font]

[font=Arial]It just shows that and doesn’t make it a hyperlink?[/font]

[font=Arial] [/font]

[font=Arial]If I change the script to LoadNumVariables and the scroller text box has a variable ie scroller.scroller\_text then it shoes the html working fine, but won’t scroll it anymore!!![/font]

[font=Arial] [/font]

[font=Arial]Any thoughts appreciated[/font]

[font=Arial] [/font]

[font=Arial]Regards[/font]

[font=Arial] [/font]

[font=Arial]Paulsheff[/font]
