Can you post the code you are having problems with.
An inner class should be able to access class variables.