Flash Dynamic XY Coordinates in page

Hello all -

I am having an issue, I need to know if there is a way that when a swf is embedded into another page, ie a 300x250 flash banner ad in an html page, is there a way that the Java or the Flash can know where it has been placed on that page?

Does that even make sense? I need my Flash piece to be able to expand up down left or right but don’t want to make four different files, would love for it to be done dynamically. Any suggestions?

Thanks in advance