Plz Solve the problem of Flash Localization

Hi,
My problem is…when we browse localized .swf file in “any software”.This .swf file is not changing its language according to software…
Means before browsing …I choose russian language in software and upload it.when I click on play button…It plays by default language not by russian.
the code is like dis in .swf file

import mx.lang.Locale;
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
if (System.capabilities.language == “en”) {
my_xml.load(“ab_en.xml”);
my_xml.onLoad = function(success:Boolean) {
if (success) {
win_txt.text = my_xml.firstChild.childNodes[0].firstChild;
} else {
trace(“data is not loaded in English”);
}
};
} else if (System.capabilities.language == “ru”) {
my_xml.load(“ab_ru.xml”);
my_xml.onLoad = function(success:Boolean) {
if (success) {
win_txt.text = my_xml.firstChild.childNodes[0].firstChild;
} else {
trace(“data is not loaded in Russian”);
}
};
}