How to access a variable in one function by another function

Hello,
i am doing a small application and am a less knowledged fellow in actionscript.

consider

function a() {
var test = 20;
}

function b() {
trace(test);
}

in the above there is no global variable stuff…I need to acess test in function b…
Tell me how please!!!