inkboy
12-22-2005, 06:08 PM
So I am loading an XML document into a text box component using the following script...
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
myStyle = new TextField.StyleSheet();
myStyle.load("elsagary.css");
myText.styleSheet = myStyle;
//load in XML
myContent = new XML();
myContent.ignoreWhite = true;
myContent.load("about.xml");
myContent.onLoad = function(success)
{
if(success)
{
myText.text = myContent;
}
}
Everything looks fine when I preview it in flash but once its viewed through a browser the scroll bar kurks out but jumping down to the bottom of the text file.
U can see the error at http://www.elsagaryphotography.com/swf/main.html
in the "about" section.
Any help would be fantastical!
Thanks in advance
IB
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
myStyle = new TextField.StyleSheet();
myStyle.load("elsagary.css");
myText.styleSheet = myStyle;
//load in XML
myContent = new XML();
myContent.ignoreWhite = true;
myContent.load("about.xml");
myContent.onLoad = function(success)
{
if(success)
{
myText.text = myContent;
}
}
Everything looks fine when I preview it in flash but once its viewed through a browser the scroll bar kurks out but jumping down to the bottom of the text file.
U can see the error at http://www.elsagaryphotography.com/swf/main.html
in the "about" section.
Any help would be fantastical!
Thanks in advance
IB