You can call Javascript functions from the main html file with the Flash player object. It should should allow you to do this.