Unable to access variables in a class file

Hi,

I am unable to access variables written in a class file.

This is the class file:

class readXML {
public var modArray:Array;

public function setModule() {
modArray=new Array(“mod1”,“mod2”,“mod3”,“mod4”);
}

public function getModule() {
trace('Mod Array: '+modArray);
}

public function readXML() {

}

}

When I access the getModule method from flash (on click of a button), I get modArray as undefined.

Any clues how I could get the data of modArray?

Regards,
Abhi