Deactivating a Hyperlink Navigational Button

Hi:

As shown via http://www.kirupa.com/developer/mx/hyperlink.htm – I can create a Hyperlink Navigational Button

However, how does one deactivate a hyperlink navigational button that is self-linked or self-referenced?

In other words, most web sites have multiple pages with a standard set of navigational buttons appearing on each page. Typically, when the user clicks a button, he/she is sent to that page. But, what if the user clicks a button that is linked to the page currently shown? If the button is active, then the page reloads – which is a waste of time and something I don’t want. However, if the button is deactivated, then nothing would happen – which is what I want.

So, how does one deactivate the button who’s hyperlink is the same page?

To do this, the button must somehow know the current page. I know I can get the current page from a call to the CGI environmental variable SCRIPT_NAME, but I don’t know how to do this from flash.

I have searched for over a week now through all the reference material I can find with no idea of how to do what I want. Furthermore, I have posted this question my times in several different forums without a single reply. I would think would be a common problem and, as such, how does everyone solve it?

Any ideas or solutions?

Many thanks for any replies.

tedd