I usually like to simply use getURL to call JavaScript in Flash, because it is the most simple way to do that, but I find if you need to using onbeforeunload event to prevent user leave a page accidentally, getURL will trigger this event in IE, therefore using fscommand or ExternalInterface are still the best solution.

Some note:
fscommand not support in Mac IE, onbeforeunload not support in opera, safari <2