There is a tutorial on how to do just that
in the Flash Kit Tutorials.

I also have an example i can send you if you want.
e-mail

[email protected]

Also if you read through some of the old posts in this forum
i have and other members explain how to do that.