sir_URLik
15.09.2008, 13:23
Никак до меня не дойдет как определять переменные и потом к ним обращаться.
Есть вот такой код:
Cl.prototype.$getXmlData = function() {
this.calendar_array[1] = "test";
trace(this.calendar_array[1]);
this.getEvents = new XML();
this.getEvents.onLoad = function () {
trace(this.calendar_array[1]);
}
}
На выходе имеем:
test
undefined
Вопрос:
Как правильно обратиться из функции к массиву?
Есть вот такой код:
Cl.prototype.$getXmlData = function() {
this.calendar_array[1] = "test";
trace(this.calendar_array[1]);
this.getEvents = new XML();
this.getEvents.onLoad = function () {
trace(this.calendar_array[1]);
}
}
На выходе имеем:
test
undefined
Вопрос:
Как правильно обратиться из функции к массиву?