home
 
   

get flash menu to remember which page it’s on

Our flash menu components setup to remember which page it’s on and will stay “open” to that menu selection.

It is coded fro Param setting. see the below

———————————————————————————————————————— 

<OBJECT classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″
 codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0
 WIDTH=”778″ HEIGHT=”80″ ALIGN=”">
      <PARAM NAME=movie VALUE=”Navigation.swf?pageNum=1&subNum=4“>
      <PARAM NAME=quality VALUE=high>
      <PARAM NAME=bgcolor VALUE=#FFFFFF>
      <EMBED src=”Navigation.swf?pageNum=1&subNum=4” quality=high bgcolor=#FFFFFF  WIDTH=”778″ HEIGHT=”80″ ALIGN=”"
 TYPE=”application/x-shockwave-flash” PLUGINSPAGE=”http://www.macromedia.com/go/getflashplayer”></EMBED>
    </OBJECT>

 ——————————————————————————————————————————————————————-

When we add swf into a html page, Navigation.swf?pageNum=1&subNum=4  is a swf directory according to code above. 

just add ?PageNum=2 right after flash file directory.

normal.swf?PageNum=2 —-> Second Main menu will be selected
normal.swf?PageNum=4&subNum=2 —-> 4th Main menu and second submenu will be selected

About the Author

Flashsources

Flashsources

2 Responses to “get flash menu to remember which page it’s on”

  1. this bit of code is very basic and very important. project managers: cut/paste and tattoo onto the finger-webs of your programmers.

    thanks for the post!

    -karl

  2. How would I go about coding this if I was using swfobject instead of Flash’s object embedding?

Leave a Reply

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>