Hover Captions Tutorial Help

Hi, I am working thru the Hover Captions Tutorial and I need alittle help modifying the coding for my project.

Problem 1:
Currently the text for the hover caption is loaded dynamiclly thru actionscript: (“Cut & Style” is the text)

captionFN(true, “Cut & Style”, this);
I am wanting to load the text from a text file instead, does anyone know if this would be possible with this coding?

Problem 2:
Currently the code is setup up so that the width of the caption box is based on the text width. I am needing the caption box to also have the height based on the text height because I need to have multiple lines of text within the caption.

cap._width = 7*cap.desc.text.length;
I tried to changes all of the width and length text in the code to height but this did not work.

Here is the link to the tutorial:
http://www.kirupa.com/developer/mx2004/hover_captions.htm

Thank you for any possible help.

  • Brian