# Text formatting in text brought in from ASP page

**URL:** <https://forum.kirupa.com/t/text-formatting-in-text-brought-in-from-asp-page/12968>\
**Category:** flash\
**Created:** [February 6, 2003, 9:08pm UTC](https://forum.kirupa.com/t/text-formatting-in-text-brought-in-from-asp-page/12968 "2003-02-06T21:08:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Twinkles](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@Mr\_Twinkles](https://forum.kirupa.com/u/Mr_Twinkles)\
**Post date:** [February 6, 2003, 9:08pm UTC](https://forum.kirupa.com/t/text-formatting-in-text-brought-in-from-asp-page/12968/1 "2003-02-06T21:08:29Z")

</div>

I’m trying to pull a variable from an ASP page that’s pulling it’s info from a database. The ASP page has a response.write that outputs &ScrollText = text that comes from the database.  
The ASP page works fine, but when I try to pull in the variable in Flash, it takes in all the html URL escapes, i.e.: %20 for a space %22 for a ", etc. I’ve tried using Server.URLEncode in my ASP page, but that didn’t help any.  
I’m displaying this text in a dynamic text box with a scroll bar. Any help would be appreciated.

---

<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:** [February 6, 2003, 9:50pm UTC](https://forum.kirupa.com/t/text-formatting-in-text-brought-in-from-asp-page/12968/2 "2003-02-06T21:50:24Z")

</div>

Figured it out myself…  
I’m using loadVars to pull in the info from the ASP page.  
My code goes something like this:  
ScrollPaneText = new loadVars();  
ScrollPaneText.load (“nameofpage.asp”);

The variable I create in the ASP page is called ScrollText. To access it, I had to say myText(variable in flash) = ScrollPaneText.ScrollText  
Just a simple accessing problem. Thanks anyway, hope this helps someone else.
