# Detecting url of the page where swf is

**URL:** <https://forum.kirupa.com/t/detecting-url-of-the-page-where-swf-is/82222>\
**Category:** Uncategorized\
**Created:** [March 8, 2005, 5:52pm UTC](https://forum.kirupa.com/t/detecting-url-of-the-page-where-swf-is/82222 "2005-03-08T17:52:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![z3r0](https://avatars.discourse-cdn.com/v4/letter/z/cdc98d/32.png) [@z3r0](https://forum.kirupa.com/u/z3r0)\
**Post date:** [March 8, 2005, 5:52pm UTC](https://forum.kirupa.com/t/detecting-url-of-the-page-where-swf-is/82222/1 "2005-03-08T17:52:27Z")

</div>

I need to use the same flash menu for 2 different languajes.  
The swf menu are just buttons with photos but is there a small  
text that should reflect the current page languaje

IE:

index.htm should have menu.swf in english  
but index\_spanish.htm should have menu.swf and show only the texts  
in spanish.

I though just using dynamic txt fields with a var name “lang” to set  
the text to “buttonname” or “nombredeboton” depending on what page  
the swf is located.

So what I need is a method to swf detect whether the page is english or  
spanish (perhaps based on browser url?) that way I could use just one swf  
file for both languages.

Any ideas?
