Okay, this worked in a simple file where it was the only thing on the stage (see this thread). Now I am implementing it in a much more complex scenario and the movie clip in question is quite buried so bear with me:
This is in my main timeline:
Movieclip.prototype.hover = function(sometxt) {
this.onRollOver = function() {
_root.m = 1;
mainMap.map.pan.box.createTextField("caption", 1, mainMap.map.pan.box.test._x+2, mainMap.map.pan.box.test._y+2, 110, 30);
mainMap.map.pan.box.caption.type = "dynamic";
mainMap.map.pan.box.caption.multiline = true;
mainMap.map.pan.box.caption.wordWrap = true;
mainMap.map.pan.box.caption.size = 10;
mainMap.map.pan.box.caption.text = sometxt;
mainMap.map.pan.box.caption.autoSize = "left";
mainMap.map.pan.box.test.resize();
trace(mainMap.map.pan.box.caption.text)
};
this.onRollOut = function() {
_root.m = 0;
mainMap.map.pan.box.caption.text = " ";
};
};
mainMap.map.pan.mapElements.ktn.hover("text for a caption");
The resize() function is just some simplified code from the resizing slideshow. Now this works as in when the ktn MC is rolled over the box appears where the mouse is and resizes to fit the text. When I do a trace on sometxt it reports back the correct text but the text itself doesn’t show. The box is a light blue and the default for createTextField is black so that shouldn’t be a problem.
I’m sure it is something simple and obvious that I am missing so if anyone sees it could you please point it out to me?
Thanks!! :hr: