Google API with flash AS3

Hi everybody,
I need a bit of help, I’m working with this code to get google maps + directions into flash, you can find the code here: http://code.google.com/p/gmaps-samples-flash/source/browse/trunk/samplecode/DirectionsAdvanced.mxml

the example is shown here:
http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/DirectionsAdvanced.html

What I can’t figure out is, how would I get the interface to display the distance between A and B?
Can anybody suggest any code which could help?
Thanks,
Will