# Dynamic text loading but without scrollbar activated

**URL:** <https://forum.kirupa.com/t/dynamic-text-loading-but-without-scrollbar-activated/280745>\
**Category:** Uncategorized\
**Created:** [January 31, 2009, 4:38am UTC](https://forum.kirupa.com/t/dynamic-text-loading-but-without-scrollbar-activated/280745 "2009-01-31T04:38:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhomatude](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bhomatude](https://forum.kirupa.com/u/bhomatude)\
**Post date:** [January 31, 2009, 4:38am UTC](https://forum.kirupa.com/t/dynamic-text-loading-but-without-scrollbar-activated/280745/1 "2009-01-31T04:38:46Z")

</div>

Hello –

ASC FlashCS 9.0

I have what should be a very simple dynamic text box (multiline and html) embedded within a MC loading an external text file with html tags (properly formatted for flash).

I have a scrollbar component attached to the text box. Everything works if I test the movie and if I just play the swf file.

But when the swf file is embedded in an html file the scrollbar does not activate and only the text within the window is seen.

Here is the script:

var url:String = “news.txt”;  
var loadit:URLLoader = new URLLoader();  
loadit.addEventListener(Event.COMPLETE, completeHandler);  
loadit.load(new URLRequest(url));

function completeHandler(event:Event):void {  
news.htmlText = event.target.data as String;   
}

Any suggestions? Thanks.
