Does the Flash video player expose an AP…

Does the Flash video player expose an API for JavaScript?

Particularly interested in whether it’s possible to trigger some JavaScript when X% of a video has been viewed (for analytics/tracking views). Thanks!