# Need Help with Text File Handler AS

**URL:** https://forum.kirupa.com/t/need-help-with-text-file-handler-as/191475
**Category:** flash
**Created:** [June 20, 2006, 7:55pm UTC](https://forum.kirupa.com/t/need-help-with-text-file-handler-as/191475 "2006-06-20T19:55:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![webJdesign](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@webJdesign](https://forum.kirupa.com/u/webJdesign)
#### Post date: [June 20, 2006, 7:55pm UTC](https://forum.kirupa.com/t/need-help-with-text-file-handler-as/191475/1 "2006-06-20T19:55:33Z")

</div>

[FONT=Arial]Hello folks,[/FONT]  
[FONT=Arial][/FONT]  
[FONT=Arial][SIZE=2]I am attempting to write an external AS file that will handle the code for loading external html formatted text files as well as a CSS file. I have been successful only so far as getting the text files to load (the loadData function).[/SIZE][/FONT]  
[FONT=Arial][SIZE=2][/SIZE][/FONT]  
[FONT=Arial][SIZE=2]However I have not been able to get the loadCSS function to work in the external AS file; instead I have to define and call the loadCSS function within each movieclip that loads a text file and I would just like to be able to define that function once in the AS file.[/SIZE][/FONT]  
[FONT=Arial][/FONT]  
[FONT=Arial]Here is a link to the AS file: [http://treehousepc.com/flash/textHandler.as](http://treehousepc.com/flash/textHandler.as)[/FONT]  
[FONT=Arial][/FONT]  
[FONT=Arial]Any thoughts or suggestions?[/FONT]  
[FONT=Arial]Many Thanks,[/FONT]  
[FONT=Arial]-J[/FONT]  
[FONT=Arial][SIZE=2][/SIZE][/FONT]
