# Load image into tooltip?

**URL:** <https://forum.kirupa.com/t/load-image-into-tooltip/323828>\
**Category:** Uncategorized\
**Created:** [July 20, 2011, 8:43am UTC](https://forum.kirupa.com/t/load-image-into-tooltip/323828 "2011-07-20T08:43:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WMike8](https://avatars.discourse-cdn.com/v4/letter/w/8797f3/32.png) [@WMike8](https://forum.kirupa.com/u/WMike8)\
**Post date:** [July 20, 2011, 8:43am UTC](https://forum.kirupa.com/t/load-image-into-tooltip/323828/1 "2011-07-20T08:43:19Z")

</div>

Hi!

I’m trying to create tooltips for a menu. I want the tooltip to have differend backgrounds for each menu item.

For this I created a UILoader component inside the tooltip mc. When I simply load an external image into the UILoader, everything works just fine. The problems start when I try to load the images on MouseOver. My AS for the MousOver is following:

prch\_button.addEventListener(MouseEvent.MOUSE\_OVER, fl\_MouseOverHandler);

function fl\_MouseOverHandler(event:MouseEvent):void  
{  
tooltip.background\_tween.myLoader.load(new URLRequest(“Premium Chardonnay bevell2.png”));  
prch\_anim.play();  
tiptext\_container.tiptext\_tween.tiptext.text = “Pécsi Chardonnay Premium Selection 2008”;  
tooltip.x = mouseX;  
tooltip.y = mouseY;  
tiptext\_container.tiptext\_tween.tiptext.autoSize = TextFieldAutoSize.CENTER;  
tiptext\_container.x = (mouseX) + (tooltip.width \* .5) - (tiptext\_container.width \* .5);  
tiptext\_container.y = (mouseY) + (tooltip.height \* .5) - (tiptext\_container.height \* .5);  
tiptext\_container.gotoAndPlay(2);  
tooltip.gotoAndPlay(2);  
}

When mousing over the mc the whole thing kind of gets stuck (no errors though). I can actually tell that it loads the image, since when I roll over an identically scripted mc (whitout the loader), after mousing over this one, it displays the tooltip correctly.

I tried to create and position the loader in several different ways but nothing seems to work, any help would be greatly appreciated!

Link to my (broken) project:

> **[Mammutmail.com | Fájlküldés, nagy fájlok küldése](http://mammutmail.com/?action=download&sid=80f7b7b6ba4aaae89e3fb6c7c2af25ec)**
>
> Nagy fájlok, filmek, videók, képek küldése és megosztása ingyen. Testre szabható fájlküldő és fájlmegosztó.
