Xml/ flash thumbnails again

Hi again. Sorry about this. I’m trying to hide the button if there is no url between the <link></link> tags.

<link>niente</link>

Is this the correct action script to hide this button?

if (link[p]= “niente”) {
link_btn._visible = false;
} else {
link_btn._visible = true;
}

If so, where does it go? I tried putting it at the end of the onenterframe.function() but it remains visible.

thanks
m