PDA

View Full Version : css no frames with flash menu problem


catsneeze
05-04-2005, 10:02 AM
Hello,
I am building a website with CSS Html-no frames.
I have a flash menu for navigation.
Problem is that flash menu reloads at every click and therefore
doesnt keep the right section highlited to show where you are.
How do I tell flash what frame to go to in order to have the right section
highlited?
I read stuff on forums about putting in the html at the end of
the param name and embed swf : ?item=1 ...but I dont understand clearly.
Would that call on my 1st frame?
what code does flash need to have?
Hope somebody understands what I am trying to say...
Thanxs.

sleekdigital
05-06-2005, 04:33 PM
Basically you need to tell flash what page you are on when the page loads, so the flash movie can update its display to reflect the current page. There are 2 ways to get informatoin into the flash movie when the page loads ... using the querystring in the URL to the flash movie (as I assume you are describing above) or you can use the FlashVars parameter of the object/embed tag.

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417

If you use the variable "item" as in your example, you could then do something like gotoAndStop(item) in your flash movie, and it will go to whatever frame number you had set "item" to in the querystring/flashvar. Note that the variables are loaded into the root of the flash movie.

Hope that helps,
s