
Код:
function startT(success) {
if (success == true) {
rootNode = myXML.firstChild;
XMLParsing(rootNode);
_root.onEnterFrame = function() {
if (lang == undefined) {
lang = 2;
}
running_string(txtarray[lang][str_param], 200, 200, 5, 20, clrarray[lang][str_param]);
str_param += 1;
};
}
}
и сама функция руннинг стринг

Код:
function running_string(str_var:String, x_coord:Number, y_coord:Number, x_diff:Number, f_size:Number, str_color:String) {
t_field._x = x_coord;
this.onEnterFrame = function() {
trace(str_var);
with (this) {
createTextField("t_field", this.getNextHighestDepth(), x_coord, y_coord, 10, 10);
t_field.autoSize = true;
t_field.selectable = false;
t_field.text = str_var;
t_field._x -= x_diff;
}
var my_fmt:TextFormat = new TextFormat();
with (my_fmt) {
bold = true;
size = f_size;
color = str_color;
font = "Tahoma";
}
this.t_field.setTextFormat(my_fmt);
if ((this.t_field._x+this.t_field._width)<x_coord) {
return true;
}
};
}
а насчет setInterval() интересно. Просто я привык все с помощью onEnterFrame делать
