stepa323
21.12.2010, 20:07
ребят как мне обратится именно к нужному клипу или параметру? из всех что я считал с базы?
stop();
myXML = new XML();
myXML.load("http://kahoxa.ru/xml.php");
i = 1;
a = 0;
b = 1;
c = 2;
d = 3;
//function func(){
onEnterFrame = function () {
if (Key.isDown(Key.UP)) {
trace(kahoxa);
}
j = myXML.childNodes.length;
j = parseInt(j);
if (i<j) {
_root.login = myXML.childNodes[a].firstChild;
_root.osx = myXML.childNodes[b].firstChild;
_root.osy = myXML.childNodes[c].firstChild;
_root.online = myXML.childNodes[d].firstChild;
_root.osx = parseInt(_root.osx);
_root.osy = parseInt(_root.osy);
if (_root.online == yes) {
_root.attachMovie("player", _root.login, i);
this[_root.login]._x = _root.osx;
this[_root.login]._y = _root.osy;
}
trace(_root.login);
trace(_root.osx);
trace(_root.osy);
trace(_root.online);
i += 1;
a = d+1;
b = a+1;
c = b+1;
d = c+1;
myXML.load("http://kahoxa.ru/xml.php");
}
clearInterval(timer);
};
stop();
myXML = new XML();
myXML.load("http://kahoxa.ru/xml.php");
i = 1;
a = 0;
b = 1;
c = 2;
d = 3;
//function func(){
onEnterFrame = function () {
if (Key.isDown(Key.UP)) {
trace(kahoxa);
}
j = myXML.childNodes.length;
j = parseInt(j);
if (i<j) {
_root.login = myXML.childNodes[a].firstChild;
_root.osx = myXML.childNodes[b].firstChild;
_root.osy = myXML.childNodes[c].firstChild;
_root.online = myXML.childNodes[d].firstChild;
_root.osx = parseInt(_root.osx);
_root.osy = parseInt(_root.osy);
if (_root.online == yes) {
_root.attachMovie("player", _root.login, i);
this[_root.login]._x = _root.osx;
this[_root.login]._y = _root.osy;
}
trace(_root.login);
trace(_root.osx);
trace(_root.osy);
trace(_root.online);
i += 1;
a = d+1;
b = a+1;
c = b+1;
d = c+1;
myXML.load("http://kahoxa.ru/xml.php");
}
clearInterval(timer);
};