Hide/view scrollbar in flash mx

i have read the tutorial on hide/view scrollbar but i want to make it work when reading from an external file dose any one know how to do this in flash mx