# Scrollbar component and dynamic text

**URL:** <https://forum.kirupa.com/t/scrollbar-component-and-dynamic-text/7442>\
**Category:** Uncategorized\
**Created:** [October 31, 2002, 1:38am UTC](https://forum.kirupa.com/t/scrollbar-component-and-dynamic-text/7442 "2002-10-31T01:38:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deviant](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@deviant](https://forum.kirupa.com/u/deviant)\
**Post date:** [October 31, 2002, 1:38am UTC](https://forum.kirupa.com/t/scrollbar-component-and-dynamic-text/7442/1 "2002-10-31T01:38:37Z")

</div>

I’m trying to load a dynamic text file using PHP/MySQL into a dynamic text box and I’ve hit a bit of a snag.

I originally had issues with escaping certain characters but that has been fixed… now all the text is loading into the text box but I can’t seem to get the scrollbar component in Flash MX to detect the presence of the actual text or variable i guess… If I use an external text file just typed up in notepad and #include it or use loadVariables or a loadVars Object everything works fine… the scrollbar scrolls etc…

However, the system which I am currently building is basically to allow a client to update articles on a webzine of sorts from an admin section which they can access on the server… and of course after I get everything server side working… I end up with scrollbars that don’t scroll… I’m baffled…

Has anyone ever encountered this before?? If so I would greatly appreciate any input or suggestions… at this point the only thing I’m sure of is that it is a Flash issue and not a PHP issue since everything loads perfectly but the component is just not listening…

Thanks!

---

<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:** [October 31, 2002, 11:07am UTC](https://forum.kirupa.com/t/scrollbar-component-and-dynamic-text/7442/2 "2002-10-31T11:07:37Z")

</div>

not being a php regular user myself this is gonna be basic have u tried the tutorial that is sumwhere on kirupa in the flash mx tutes might give u sum idea on how to use php with it also i dont know if the scrollbar component actually works with php when u do it in notpad it will be for instance  
news=  
wot u want to appear here

add this to the keyframe that the dynamic text box is in and make sure the component snaps to it

the text box var must be named textbox if u see the bottom line and the txt file must be like new.txt as it is here

````php

loadText = new loadVars();
loadText.load("news.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
		scroller.text = this.textbox;
};

```php

if this doesnt work then hopefully sum1 who knows more about php will answer i am a component guy myself

-Tom
````

---

<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:** [October 31, 2002, 11:08am UTC](https://forum.kirupa.com/t/scrollbar-component-and-dynamic-text/7442/3 "2002-10-31T11:08:38Z")

</div>

forget the

```php
 signs in the actionscript i **** ed up the post just use it in between them

-Tom
```
