# Dynamic tooltip text

**URL:** https://forum.kirupa.com/t/dynamic-tooltip-text/164202
**Category:** flash
**Created:** [September 29, 2005, 9:08am UTC](https://forum.kirupa.com/t/dynamic-tooltip-text/164202 "2005-09-29T09:08:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![superprg](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@superprg](https://forum.kirupa.com/u/superprg)
#### Post date: [September 29, 2005, 9:08am UTC](https://forum.kirupa.com/t/dynamic-tooltip-text/164202/1 "2005-09-29T09:08:37Z")

</div>

I created some dynamic boxes using the  
\_root.attachMovie(“box”, “box”+x, x);  
Now, I was trying to make the tooltip using the onrollover function for all the boxes created.  
I tried using

\_root[“box”+x].onrollover=function(){  
trace(x);  
}  
in the for loop  
but it dint work. It says undefined always in the output  
Can anyone please tell me how do I get the tooltip to work with dynamic controls.  
I want the text corresponding to the particular control/button where the mouse is being kept  
Thanks
