This example shows how a Flash Movie can call a JavaScript function using getURL() from within the movie.
getURL()