Place caption button in flash video?

Hi, I just registered in and I am a new member. Hello to all of you.

I have a question – how to place a closed caption (CC) button in the flash video to turn the captions on and off?

I have made captions in a xml page, also made a movie clip that consists of (dynamic) text field for getting the captions and a gary bar behind the caption. The last thing I have done is to create a CC button in the flash video. I placed “tween class” action script on the actions layer. When I click the CC button to turn the captions off, the bar for the captions worked fine, but the caption text is still there, it can not be turned off when the bar is off. Please help me out!