Hi all,

I am messing around with Flash and have created a Flash NAV bar and was wondering how to implement the nav bar so it only loads once.

What I have is about 5 buttons that lead to other pages and the problem I am having at the moment is that the flash movie reloads whenever a new page opens and the web user then needs to click to activate the nav bar before they can navigate.

What I would like to see is that the nav bar loads once and then doesnt need to load on any other pages. Is my best option to use frames and have the nav bar in one frame and when the use clicks on a particular button the contect loads up on a second frame on the same page or is there a more modern way to do this.

Thanks
ikhan42

I'd suggest using SWFObject to handle the IE click to activate problem. As for reloading the page, you could load subsequent pages onto your main page using the IFRAME tag.

However, I would just toss it out there that maybe a Flash nav with the rest of the site content in HTML may not be the best way to go. Flash navs present some search engine optimization challenges and very often if you're dealing with an HTML site, having the nav in HTML ensures faster loading and no risk of a user not having the right version of Flash. Plus the usual rollover effects and the like which are done in Flash navigation can often be done in DHTML.

Believe me, I'm not dissing Flash (it's my bread and butter and I love it!), but sometimes it's not the best tool for the job.

Regardless, good luck and happy coding!

Best,

--eric

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.