# Caption problem with loaded swf

**URL:** <https://forum.kirupa.com/t/caption-problem-with-loaded-swf/60703>\
**Category:** Uncategorized\
**Created:** [August 11, 2004, 9:12pm UTC](https://forum.kirupa.com/t/caption-problem-with-loaded-swf/60703 "2004-08-11T21:12:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron353](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@aaron353](https://forum.kirupa.com/u/aaron353)\
**Post date:** [August 11, 2004, 9:12pm UTC](https://forum.kirupa.com/t/caption-problem-with-loaded-swf/60703/1 "2004-08-11T21:12:36Z")

</div>

i have a movie that has captions on different frames and that works but when i load a movie that also has captions for areas it does not work.

this is the caption code that is loaded in the main movie first frame.

> /\*tooltip metod for MovieClip object  
> parameters definition:  
> m= the message for tooltip.  
> rgb= the background color for the tooltip.  
> \*/  
> MovieClip.prototype.toolTipL = function(m, rgb) {  
> tipOn = this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true) ? true : false;  
> format = new TextFormat();  
> with (format) {  
> font = “verdana”;  
> size = 6;  
> color = 0x14444D;  
> }  
> if (tipOn) {  
> //if bolean object=true create field.  
> this.createTextField(“tipL”, 1, 0, 0, 0, 0);  
> with (this.tipL) {  
> text = m;  
> \_x = this.\_xmouse;  
> \_y = this.\_ymouse-20;  
> autoSize = “left”;  
> type = “static”;  
> background = true;  
> border = true;  
> selectable = false;  
> backgroundColor = “0x”+rgb;  
> borderColor = 0x000000;  
> setTextFormat(format);

}  
} else if (!tipOn) {  
//if bolean object=false remove field.  
this.tipL.removeTextField();  
}  
};  
MovieClip.prototype.toolTipC = function(m, rgb) {  
tipOn = this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true) ? true : false;  
format = new TextFormat();  
with (format) {  
font = “verdana”;  
size = 6;  
color = 0x14444D;  
}  
if (tipOn) {  
//if bolean object=true create field.  
this.createTextField(“tipC”, 1, 0, 0, 0, 0);  
with (this.tipC) {  
text = m;  
\_x = this.\_xmouse;  
\_y = this.\_ymouse-20;  
autoSize = “center”;  
background = true;  
border = true;  
type = “static”;  
selectable = false;  
backgroundColor = “0x”+rgb;  
borderColor = 0x000000;  
setTextFormat(format);  
}  
} else if (!tipOn) {  
//if bolean object=false remove field.  
this.tipC.removeTextField();  
}  
};  
MovieClip.prototype.toolTipR = function(m, rgb) {  
tipOn = this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true) ? true : false;  
format = new TextFormat();  
with (format) {  
font = “verdana”;  
size = 6;  
color = 0x14444D;  
}  
if (tipOn) {  
//if bolean object=true create field.  
this.createTextField(“tipR”, 1, 0, 0, 0, 0);  
with (this.tipR) {  
text = m;  
\_x = this.\_xmouse;  
\_y = this.\_ymouse-20;  
autoSize = “right”;  
background = true;  
border = true;  
type = “static”;  
selectable = false;  
backgroundColor = “0x”+rgb;  
borderColor = 0x000000;  
setTextFormat(format);  
}  
} else if (!tipOn) {  
//if bolean object=false remove field.  
this.tipR.removeTextField();  
}  
};

Then this is the code of the loaded external swf on the frame in a movie.

> this.onEnterFrame = function() {  
> Laurel.toolTipC(“Laurel”, “CCCCCC”);  
> };

then i have a invisible movie clip named Laurel that when you mouse over it should show up.

Can some one help?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 15, 2004, 9:52pm UTC](https://forum.kirupa.com/t/caption-problem-with-loaded-swf/60703/2 "2004-08-15T21:52:40Z")

</div>

any help would be greatly appreciated! 🙂
