For..in using this?

Is it possible to use a for…in loop using this? I tried, but it doesn’t seem to work, is there an alternative way to do this?

for( var prop in this)
{
    trace(this[prop]);
}

Doesn’t give an error, but it doesn’t work either.