# Hover Captions Tutorial Help

**URL:** https://forum.kirupa.com/t/hover-captions-tutorial-help/211290
**Category:** flash
**Created:** [December 29, 2006, 4:17pm UTC](https://forum.kirupa.com/t/hover-captions-tutorial-help/211290 "2006-12-29T16:17:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![briand5](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@briand5](https://forum.kirupa.com/u/briand5)
#### Post date: [December 29, 2006, 4:17pm UTC](https://forum.kirupa.com/t/hover-captions-tutorial-help/211290/1 "2006-12-29T16:17:06Z")

</div>

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](http://www.kirupa.com/forum/../developer/mx2004/hover_captions.htm)

Thank you for any possible help.

- Brian
