Detecting HTML embed params from within Flash

I am wondering if it is possible to detect Flash’s HTML parameters from within Flash itself. Specifically reading the values of AllowScriptAccess and AllowNetworking.

The reason I ask is I would like to be able to program my SWF to disable itself if it doesn’t have these parameters set correctly. I have a Flash game I developed which has spread virally to several websites. I’ve just encountered one of these sites who has the AllowScriptAccess parameter set to Never in the HTML. This cause’s any outgoing web links to simply not work, pretty annoying when you’re trying to get people to check out your website.

Ideally I would like for the SWF to check these immediately on load and display an error message halting the game from loading if not correct.

Can this be done?

Also, is there a way have a SWF check itself to see if it has been loaded into another SWF?