0

有没有办法像我在objectiveC中那样在带有锌的actionscript中获取ISO 3166中的国家语言代码(例如:US_en):

NSString* language = [[NSLocale preferredLanguages] objectAtIndex:0];
NSString *locale = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode];

NSString *updateLocaleLanguage =[NSString stringWithFormat:@"%@_%@",locale,language];
4

1 回答 1

1

是的。您想要 Capabilities 类: http ://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html

于 2013-11-19T21:23:49.207 回答