Lean+Mean Flash Nav?
- Started
- Last post
- 13 Responses
- TwinLobe
Hello All,
I'm in the process of developing a PHP site that will feature a single Flash Nav. I'd like to simulate visited/active states for each of the links to show where the visitor has been, what page they're on, etc...
Does anyone have a suggestion on the best way to implement this? I'd like to keep things as streamlined as possible, but still be intuitive to navigate.
Thanks in advance!
- TwinLobe0
( le Bump )
- mikotondria20
get a script to set the session vars when someone enters a page, then read the vars back, and pass this info to the flash movie, to show 'visited' state on each button, is my first thought.
:P
- blackspade0
would each nav item need to remain in the 'visited' state when a user re-visited the site? or only for the one session ?
- TwinLobe0
This would only be for one session...
I've seen quite a few portfolio sites use this method, but I can't put my finger on 'em right now.
- imakedesign0
do you mean when a user click on a link the link is marked in some way because thats as easy as making a dot visable.
- blackspade0
yea id just do the nav items as movie clips rather than flash buttons as usual, play to a certain frame on click, stop.
- caseyc0
Easiest way would probably be to add some php or js on every page to append that page's url to a cookie/session var and then pass flash a comma delimited list.
In flash use string.split(",") to get an array of all pages visited, then loop over your buttons and if the url matches the link url, set it to visited mode.
- Blofeldt0
Write some action script on the page like this for example
assets/flash/mov_base.swf?page=2
And then write some varibles in your flash movie that send the play head to a certain frame when the value is called.
That's what I reckon
- UndoUndo0
why not use css in flash and define all "a" states. ??
- mydo0
Blofeldt. what do you know.
- Blofeldt0
Three little words for you Mydo my dear fellow
cut and paste
Oh yeah
- mydo0
that was my idea.. way back in the day and now you're bandying it around NT like you're some sort of guru!
- Blofeldt0
Your filthy words leave me tainted with the smell of park royal