Variable scope

ok I have a class wich has this

public static var XmlToArray:Array = new Array();

now when i trace this from inside a class’s function

public function trace() {

trace(XmlToArray*.url);

it traces. But when I am trying to trace it from inside a function that a define as a listener :

tmpTimer.addEventListener(TimerEvent.TIMER, function tmp() {
trace(XmlToArray*.url);
}

traces null so I guess the tmp is not a member of my class and can’t see the array. when can I do to get access to the array.