Scale multiline text to fit textfield AS3

What should this code do? Can you explain?