Breaking Video into Small Segment

Hello Guys,

I have designed a flash player, which is working fine. The problem that I am facing now is if a long video is played, the sound still plays even if the video is finished.

So I decided to break the video into small segments, and play it in the player, Can someone help me with this,

some time a video can be of two small segments or of three small segments, I am using xml file to load the videos into the flash player.

Please help me

Thank You
Shriram