From what you said, I see now that it can’t be done the way were going. I was hoping that I could write a single swf navigational file for the site. But I see that I must write five different ones – each with it’s own button deactivated. Bummer.
I was doing that two weeks ago, but thought that I shouldn’t be forced into writing five different swf files to do basically the same thing on each page, especially when the information could be gleaned from the page itself.
However, could I place a variable on each html page so that the swf file could read in that variable and then deactivate the corresponding button?
Do you have AIM or MSN Messenger? I’d like to help you out with this, but this is more a site architecture issue than a flash help thing. I’m sure we can set this up in a way that works better for you.
if you have AIM, my screen name is “muahahahahahaaa”…
Okay, I don’t have a solution, but I now see what the problem was/is.
What I wanted was a simple sfw file that would know what web page it was on and then deactivate the corresponding hyperlink button.
We all approached this problem as if we could solve it with various flag-type action script. In other words, if the home flag was set to false, then the home page would not show.
Unfortunately, the swf file resides on a web page that would reload whenever the user clicked a button – and in doing so would also reload the swf file thus making all flags ineffective. Remember, whenever a swf file is reloaded, no memory of the previous settings remain. Thus, no using flags would work.
One way to solve the problem at hand is to be able to communicate between the current html page and the swf file. For example, if the home html file could communicate some variable to the included swf file, then the swf file could act accordingly and shut down the home button.
SO, how does one communicate a value from a html file to an included swf file? Or, to place it in the vernacular of today “How can a html code populate a swf variable?”