PDA

View Full Version : Questions about Dynamic text and scrollbars(file inside)


Drew91
05-04-2009, 06:37 PM
The explination here probably won't be that good, so bear with me.

I'm making a sports section for my schools website in full flash. I want to make it so the results of recent games will update from an external text file (Already got it working).

The problem is (I think), is that my scroll bar that worked before doesn't seem to detect that the height of my dynamic text box (that my content loads into) autosizes itself. I want to be able to scroll the dynamic content so that I can actually see it.

Any help would be appreciated

mhughson
05-13-2009, 10:33 PM
Hey Drew,

Took a quick look and I think all you need to do is add this line:


//check to see if the loading is completed and, if so, put the contents in the text field
BaseballResultsVar.onLoad = function (success){
if (success == true) {
BaseballUpdates.htmlText=BaseballResultsVar.Baseba llResults;
_parent.scrolling( );
}
}


You had all the pieces in place, you just need to update all your variables to account for the change in your text field; that was only being done once at startup.

Drew91
05-14-2009, 07:25 PM
Ugh, one line off.

Thanks for the help though, It was gonna look pretty weird with those default TextArea compenent scroll bars.