Since Pano2VR 2.1 beta 3 it is possible to expose a JavaScript API for Flash 9 panoramas. This allows you to control the panorama from outside or request certain parameters from the panorama and process them within JavaScript. I have added a wiki page to document those features.
You can also see a short demo here.
I hope you like this new feature and you find it useful.