Hi,
I am trying to make a flash blog and basically I need to be able to load in text from an xml file into the different text fields I have setup and then I need to read the height of the loaded text so I can position the next post correctly below it.
blog_xml = new XML();
blog_xml.ignoreWhite = true;
blog_xml.onLoad = function(success) {
if (success) {
post_main.attachMovie("blogpost_clip","post_clip",this.getNextHighestDepth());
post_main.post_clip.posttext.text=blog_xml.firstChild.childNodes[0];
trace(post_main.post_clip.posttext._height);
}
};
blog_xml.load('blog.xml');
This code returns the height of the text field BEFORE the xml text is
added, I can’t figure out how to make this script wait until after it
is added.
Any ideas?