Why does trace function not work?

hi,

ive just started actionscripting instead of tweening so be gentle!

i use mx 2004 but i cant get the trace function to work…, here is the code form a kirupa tutorial…

_global.myvar=5;
trace (_global.myvar);

why does this not work? i thought it shud display 5.

ta, Billy