News - Happenings at iGeeks

November 21st, 2003

Flash Menu Auto Title Selection

I beleive some of you would have tried or implemented this technique, A single Flash menu on all pages but gets highlighted according to the respective page, sounds confusing right, just download the downloads/vinod/menu.zip” target=”_blank” title=”Flash Menu Auto Title Selection - fxtreme”>menu.zip file and unzip them and choose about.htm, This code is from a live project so most of the contents are deleted and only “about” and “product” menu works

Now Let me tell you how the code works
HTML file
1) open about.htm
2) look for the line in the javascript
3) look for the function fxvined(val)
4) look for the line fxtreme.SetVariable(”fxval”,clickedval);
a) where fxval is a variable specifed in flash document and clickedval is already specified in the javascript point number (1) which helps in setting the menu to “about ” menu
b) where fxtreme is the (swf) name=”fxtreme” id=”fxtreme” which you will find in your flash embed tags
now open menu.fla
1) look for function |– function fxHigh(mval)–| in frame 1 layer “script”
2) this function is evoked in frame 5 of layer “script” as _root.fxHigh(fxval);
3) the function fxHigh(fxval) evaluates the script |– eval(["navigation.a" add mval add "_mc"]).gotoAndStop(2);–| and sets the movie clip a1_mc.gotoAndStop(2) if the value of fxval is 1 About menu gets highlighted, hence if fxval takes 2 then product menu gets highlighted and so on. There might be many ways of implementing the menu and this is one way. If you want more information calling up flash with javascript visit this macromedia link
Further if you need any help, feel free to contact me, Well If I free I will surely help. ;-)

Vinod

Comments

There are no comments for this post so far.

Post a comment

Policy on Comments : First-time comments are automatically put under moderation (and will not be displayed) until they are approved. However, your comments in future will show up immediately.

Join iGeeks

Sign up with your email to be an iGeek

Managed by Yahoo Groups

If you wish to advertize on iGeeks, please contact the manager for the same.

Contribute

iGeeks would love to publish your technical articles; contact the manager if you wish to write for iGeeks.

Contact

brajeshwar [at] brajeshwar.com