You should post your ActionScript so people can see it.
Sorry for the delay stanie44,
Couple more questions:
1. does your code have a semicolon at the end of the getURL() line?
2. you say the getURL doesn't work when the SWF is in a web page. Is that html page on the local machine when it doesn't work? and do other links within the html itself work?
3. is that a web page you created yourself, or one that Flash auto-generated for you via the publish command? Try a flash auto generated html page and see what happens.
Thanks for getting back to me, and sorry I took so long to reply.
The swf file is on local machine, when I try the file on a web page on my computer the link does not work. It's not flash auto generated just one I designed myself using flash. I know that you can change the flash settings when testing files localy on a machine but I did upload a flash file that I created onto a site I designed but the link still did not work. As for the semicolon the exact code I used is above.
use the html published by flash to see if your html is the problem. if it's not, leave the flash-published html on your site and post the url.