XML nav bar malfunction

Arrrrgh! The Nav bar isn’t showing!!! And why are the xml buttons of this navbar displaying the NEXT buttons info instead of the correct one? And can anyone tell me if I can include pics or links in the display text? I’m enclosing the .xml file just in case someone can help me … Thanks!

The site is here: http://www.fjvenezia.com/EWF/index.html

But I can’t upload the file since even zipped it’s 128kb … :frowning:

The problem isn’t with your .xml file, it is with the way it is being parsed in your .swf file, so that means it is something wrong in the .fla file.

[edit]and no, you cannot add images into a textfield, you dynamically load non-progressive .jpg images to a level or to an empty movie clip, but not in a textfield[/edit]

Ok … It’s still hebrew to me as far as the actual error is concerned …Is there a way for me to send you my .fla file (since it’s apparently too big to post here?)

can you upload to a server and post a link to it? (or PM me the link to it if you don’t want it posted)

I don’t have attachments enabled for my e-mail so a server would be the only other way that I can think of.

Its 3:45 am here right now, so I have to go to bed, but I will check it out later.

ok, will do. Thanks! ANd sweet dreams

Here is the link to the zipped .fla and .xml:
http://www.fjvenezia.com/EWF/EWF.zip

Thanks again!

Sorry for taking so long to get back to you flobair, I was on vacation.

I found the answer to your problem though :slight_smile:

In your sublink button within your on (press) handler you have this line… [AS]strContent = _root.mainTag.childNodes[_root.txt_btnClicked].childNodes[btnID].firstChild.nodeValue;[/AS]

Change that to this…
[AS]strContent = _root.mainTag.childNodes[_root.txt_btnClicked].childNodes[btnID+1].firstChild.nodeValue;[/AS]

Works like a charm =) (figured if you were one node off, might as well jump up a node)

[edit]

Oh yeah, and “add” is deprecated syntax. Now you can use the + symbol for words as well as numbers :slight_smile:

no more _root[“navbar” add i], instead it would be _root[“navbar”+i]

How can I thank thee! Let me count the ways!

Can I just ask you one last question: how can I add links in the .xml doc so that when one clicks on COLLECTIONS, for example, and the GLASS, they have the opportunity to click on various links inside that sublink button’s text?

Again, though, merci!!

So you want a submenu for a submenu?

Given your current set-up I honestly have no clue how to go about this, your code is scattered everywhere and it’s quite difficult to deal with :x

Ok …so drop forget the idea. But do you know why when I debug the film, I have all of these level_10 issues that come up - which oddly also come up at ON SCREEN itself where the word ‘contents’ is written?

That is happening because your textbox has the same instance name and the same var name.

Either remove one and use the other, or give each one a different name (although I don’t really see much use in using both instance and var name)