I have a flash menu that I want to use on every page on a website. Ideally, I would like to somehow have my Flash movie detect the name of the html page it is part of, so that it can react accordingly. Does anyone have any ideas how this can be done?
you could possibly use fscommand, but iāve never done that, so iām not sure. take a look at some of 2advancedās sites to see what they do w/ hybrid sites.
:p:
thanks for the suggestion. Iāll look into it. I was also thinking i could pass a variable into Flash. But, thatās more work than I want to do at this point. So, iāll try and find an easier way first.
How do you want it to āreact?ā Y donāt you just have the āreactionā happen when you click on the button for the page its calling?
I want it so that the submenu containing that page link will remain open after you go to one of the inner pages.
something like:
if (page == about.php) {
display company submenu
}
if (page == webdesign.php) {
display services submenu
}
etc.
You could pass along a variable, for example $PHP_SELF to the swf using FlashVars
Isnāt that the SWF URL lost, not the HTML URL ?
Hey thanks! Thatās very helpful. Maybe I can tack a variable onto the menu (menu.swf?category=1), and try and figure out a way to parse the URL to get that variable and go from there.
And thatās what I get for āskimmingā and not fully reading :pa: