t = my_xml.firstChild.childNodes [i]. childNodes [0]. childNodes [0]. nodeValue + "%";; "4": _Vostok = my_xml . firstChild.childNodes [i]. childNodes [1]. childNodes [0]. nodeValue;
_root.tVostok.text = my_xml.firstChild.childNodes [i]. childNodes [0]. childNodes [0]. nodeValue + "%";; "5": _Centr = my_xml . firstChild.childNodes [i]. childNodes [1]. childNodes [0]. nodeValue;
_root.tCentr.text = my_xml.firstChild.childNodes [i]. childNodes [0]. childNodes [0]. nodeValue + "%";; "6": _Moscow = my_xml . firstChild.childNodes [i]. childNodes [1]. childNodes [0]. nodeValue;
_root.tMoscow.text = my_xml.firstChild.childNodes [i]. childNodes [0]. childNodes [0]. nodeValue + "%";; "7": _Ural = my_xml . firstChild.childNodes [i]. childNodes [1]. childNodes [0]. nodeValue;
_root.tUral.text = my_xml.firstChild.childNodes [i]. childNodes [0]. childNodes [0]. nodeValue + "%";; "8": _Volga = my_xml . firstChild.childNodes [i]. childNodes [1]. childNodes [0]. nodeValue;
_root.tVolga.text = my_xml.firstChild.childNodes [i]. childNodes [0]. childNodes [0]. nodeValue + "%";; "9": _NW = my_xml . firstChild.childNodes [i]. childNodes [1]. childNodes [0]. nodeValue;
_root.tNW.text = my_xml.firstChild.childNodes [i]. childNodes [0]. childNodes [0]. nodeValue + "%";;
}
// trace (my_xml.firstChild.childNodes [i]. childNodes [0]. childNodes [0]. nodeValue);
// trace (my_xml.firstChild.childNodes [i]. nodeName);
// trace (my_xml.firstChild.childNodes [i]. childNodes [1]. childNodes [0]. nodeValue);
} flash.geom.ColorTransform; flash.geom.Transform;
// Розфарбування по регіонах в залежності від вхідного параметра
// поріг спрацьовування задається змінною "Threshold" Vostok: Transform = new Transform (this.MV_VOSTOK); Sibir: Transform = new Transform (this.MV_SIBIR); Moscow: Transform = new Transform (this . MV_MOSCOW); Centr: Transform = new Transform (this.MV_CENTR); Ural: Transform = new Transform (this.MV_URAL); Volga: Transform = new Transform (this.MV_VOLGA); Kavkaz: Transform = new Transform (this.MV_KAVKAZ ); NW: Transform = new Transform (this.MV_NW);
// виклик функцій
// vostokcVostok (v_Vostok) {
// Red (v_Vostok <= threshold) {colorVostok: ColorTransform = new ColorTransform ();. redOffset = 50;. greenOffset = -150;. blueOffset = -100;}
// Yellowif (v_Vostok> threshold && v_Vostok <0) {colorVostok: ColorTransform = new ColorTransform ();. redOffset = +180;. greenOffset = +100;. blueOffset = -5;}. colorTransform = colorVostok;
}
// sibircSibir (v_Sibir) {
// Red (v_Sibir <= threshold...