Thanks to various tutorials, I've got buttons which load external text files into a dynamic text box, and I've worked out how to add images using <img> tags. I've got a scrollbar attached to the text box, but it doesn't show up until the text is bigger than the text box - for that, I used an adaption of this code.
Anyway, it's all looking good, besides the fact that if there IS enough text to need the scroller, and you scroll to read it, the image stays where it is (top and left). Is there any way of getting the image to follow the scrollbar down?
Cheers in advance!
boogooloo1
Here's my code so far:
on (press){
import mx.transitions.Tween;
import mx.transitions.easing.*;
loadText = new LoadVars();
loadText.load("text/solo-duo.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
_root.text_mc.textbox.html = true;
_root.text_mc.textbox.htmlText = this.myNews;
var textmcTween:Tween = new Tween(_root.text_mc, "_alpha", Regular.easeOut, 0, 100, 1, true);
var textmcTween:Tween = new Tween(_root.cover_mc, "_alpha", Regular.easeOut, 0, 80, 1, true);
}
}
;}
on (release){
_root.text_mc.scroller._visible = (_root.text_mc.textbox.maxscroll > 1);
}
