I am tweaking the famous XML Flash Gallery posted on this site (which is sweet by the way). I have added a button to the Flash file for URLs (and a <url></url> childNode to the XML file). I am able to parse the url node into the Flash file just fine.
My goal is to have a button named “go” link off to a URL for each entry made in the XML file:
go.onRelease = function() {
getURL(url[p], "_blank");
};
This works just fine. However, not all nodes in the XML file will have a childNode. So I’m stuck trying to write some action script that says this:
If (the XML file contains data for <url></url>, ){
go._visible=true;
} else {
go._visible=false;
}
Basically if the XML contains data for the URL Node, this button shows up. otherwise this button isn’t visible.
any help is greatly appreciated. Thanks.