Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Menu Takes Long To Reload

Status
Not open for further replies.

tektipuser2005

Technical User
Nov 26, 2005
13
US
Hi All


I have a static website which has flash based menus on the left hand side of the page. Every time a user clicks to load another page, the flash based menus also reload.

Is there any way the flash menus load only once and whenever a user clicks on the menu, only the target page text loads with the changed header. ? As it is taking time to re-load the menus on every page.

I've considered placing the menu sections in frames. Is this possible? If yes, what sort of implications will it have on the overall design of the website. If not, are they any alternatives to framing?

I appriciate any pertinent input on this.

Thank you
 
You can do one of two things:

1) Use frames. It shouldn't have any impact on your site if implemented propery (i.e. use noresize for the frame, no scrollbars, etc). I haven't actually done it myself before, but you may have to control the content frame with some javascript called from the flash movie... (not 100% on that though, you may just be able to get away with setting a target in the getURL call within the swf).

2) Set a cookie (or session var) once the menu has loaded for the first time. Pass this to your swf as a movieclip parameter (if you haven't used these before, they're in the form of mymoviename.swf?alreadyloaded=true). Movie clip parameters are immediately retrievable as _global properties. So.. maybe in the first frame of the movie, check to see if _global.alreadyloaded is true. If it is, bypass loading anims..

Just throwin' 'em out :)

Hope that helps

-----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top