You could do this so you don't see any "undefined" showing up in the text fields but you can leave either the title or description blank if you feel like it. Also if the title and description are both blank the box will not show.
Code:
function gf() {
with (this._parent) {
//TitleTf.htmlText = node.attributes.name;
if(node.attributes.name) {
TitleTf.htmlText = node.attributes.name;
}
else {
TitleTf.htmlText = "";
}
if(node.firstChild.nodeValue) {
BodyTf.htmlText = node.firstChild.nodeValue;
}
else {
BodyTf.htmlText = "";
}
BodyMc._y = FTop._y+fh;
checkSlider();
}
}
if (TitleMc._alpha>0) {
Tweener.addTween(TitleMc, {_alpha:0, transition:"easeOutSine", time:wait});
Tweener.addTween(BodyMc, {_alpha:0, transition:"easeOutSine", time:wait, onComplete:gf});
} else {
//TitleTf.htmlText = node.attributes.name;
if(node.attributes.name) {
TitleTf.htmlText = node.attributes.name;
}
else {
TitleTf.htmlText = "";
}
//BodyTf.htmlText = node.firstChild.nodeValue;
if(node.firstChild.nodeValue) {
BodyTf.htmlText = node.firstChild.nodeValue;
}
else {
BodyTf.htmlText = "";
}
BodyMc._y = FTop._y+fh;
checkSlider();
wait = 0;
}
this._visible = true;
if (TitleTf.htmlText == "" && BodyTf.htmlText == "") {
this._visible = false;
}
-scottyFlasher