Believe me I have searched before posting here, and I’ll do my best to explain this as simply as possible. Many thanks to any kind soul that can help.
I have made a menu system with 6 buttons, and on the layer above, I’ve made 6 ‘not active looking button’ movieclips:
WEB / MYSPACE / BUY DK / BUY EU / DOWNLOAD / iTUNES
And I have made an XML file that contains the links for each button.
<?xml version="1.0" encoding="utf-8"?>
<infoXML>
<releaseXML>
<getWeb>http://www.google.com</getWeb>
<getMySpace>http://www.myspace.com</getMySpace>
<getBuyDK>http://www.cdskiven.dk</getBuyDK>
<getBuyEU>http://www.cdon.com</getBuyEU>
<getDownload></getDownload>
<getiTunes>http://phobos.apple.com/</getiTunes>
</releaseXML>
</infoXML>
What I’m trying to do, is that if there’s an empty node, getDownload in this example is _visible = false; and the ‘not active’ _visible=true;
Here’s my feeble attempt, and I’ve tried various variations of this, to no avail.
if (xml.releaseXML.getWeb != undefined) {
btn1._visible = false;
nolink1._visible = true;
}
else {
btn1._visible = true;
nolink1._visible = false;
}