Flash CS5 AS3 Scrollbar Works locally but not online

here is a link to my project files (.zip): http://www.psychtrain.com/R-PAS/R-PAS.zip

My scrollbar is added to a textfield with the following AS3 code:

//Add Scrollbar
import flash.net.URLLoader;
import fl.controls.UIScrollBar;
import flash.events.Event;

mySb.direction = "vertical";
mySb.buttonMode = true;
mySb.scrollTarget = myText;
addChild(mySb);
------------------------------------------------------------

The scrollbar works on the first section, but when I skip to the next section using the FF button, the scroll bar loses its little "thumb-bar" (or whatever you call the thing you can grab to scroll down more quickly) (see images). Any ideas why this happens?
It works all the way through when I test the file locallybut looks like this after the first section when testing it onlinefileList.jpg
tlengnickAsked:
Who is Participating?
 
tlengnickAuthor Commented:
Somehow, I got it working...not exactly sure how...sorry.
0
 
tlengnickAuthor Commented:
Here's where you can see the project: http://www.psychtrain.com/R-PAS/Shading_NEW.html
0
 
tlengnickAuthor Commented:
Maybe something to do with the text not being fully loaded before the scrollbar gets added to the textfield?

How can I create a little function that waits until the text is fully loaded, then add the scrollbar child?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.