Need flash to read html to pull id from same page

I need my flash program to be able to read an ID embeded into the html of whatever html page it is posted on. The ID will need to be with the code either in or surrounding the code that displays the flash movie. Does anybody know how this can be done?