Flash CS5 Professional.
fl.languageCode
Property; a string that returns the five character code identifying the locale of the application’s user interface.
The following example returns the five character langauge code indicated by the Flash application’s localized user interface:
locConfigURI = fl.applicationURI + fl.languageCode + "/Configuration";