# Closed Captioning for Flash WITHOUT FLV

**URL:** <https://forum.kirupa.com/t/closed-captioning-for-flash-without-flv/327439>\
**Category:** flash\
**Created:** [February 29, 2012, 10:52pm UTC](https://forum.kirupa.com/t/closed-captioning-for-flash-without-flv/327439 "2012-02-29T22:52:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JadeSerys](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@JadeSerys](https://forum.kirupa.com/u/JadeSerys)\
**Post date:** [February 29, 2012, 10:52pm UTC](https://forum.kirupa.com/t/closed-captioning-for-flash-without-flv/327439/1 "2012-02-29T22:52:09Z")

</div>

I have created a tutorial for users that will register to use an application. I am used to using Adobe Captivate, but that is not available to me at my current job. So, I am doing my best in Flash. I couldn’t figure out how to create a rewind button, so I cut up my tutorial into scenes that are based on what screen the user would see when registering. Because of this, my audio will be cut into the scenes. I have created pseudo Closed Captioning by hiding and showing text when a user clicks on a Show or Hide button. That’s great except, when the movie goes to Scene 2, the closed captioning returns to an off state and the user would need to click Show again. I want to know if there is a way to set a variable when the user clicks Show that can carry into subsequent scenes to then continue showing the Closed Captions. Alternatively, is there a way to make a rewind button or another way to handle Closed Captions? I am very new to ActionScript (3 or otherwise) and must have Closed Captions to meet federal law. Thank you to anyone who can help!:love: Oh… here is my code so far:=)

/\* Stop at This Frame- User presses play to begin\*/  
stop();  
/\* Initial Play button\*/  
button.addEventListener(MouseEvent.CLICK, fl\_ClickToGoToAndPlayFromFrame);  
function fl\_ClickToGoToAndPlayFromFrame(event:MouseEvent):void  
{  
gotoAndPlay(2);  
}

/\* Pause Button\*/  
OldPause.addEventListener(MouseEvent.CLICK, fl\_ClickToGoToPreviousFrame\_2);  
function fl\_ClickToGoToPreviousFrame\_2(event:MouseEvent):void  
{  
stop();  
}  
/\* Play Button\*/  
OldPlay.addEventListener(MouseEvent.CLICK, fl\_ClickToGoToNextFrame\_3);  
function fl\_ClickToGoToNextFrame\_3(event:MouseEvent):void  
{  
play();  
}  
/\* Forward to next Scene (Registration Step)_/  
OldForward.addEventListener(MouseEvent.CLICK, fl\_ClickToGoToScene\_3);  
function fl\_ClickToGoToScene\_3(event:MouseEvent):void  
{  
MovieClip(this.root).gotoAndPlay(1, “Form List”);  
}  
/_ Rewind to previous Scene (Registration Step)\*/  
OldForward.addEventListener(MouseEvent.CLICK, fl\_ClickToGoToScene\_2);  
function fl\_ClickToGoToScene\_2(event:MouseEvent):void  
{  
MovieClip(this.root).gotoAndPlay(1, “Old Registration”);  
}

/\* Turn On CC\*/  
Old\_TurnOnCC.addEventListener(MouseEvent.CLICK, fl\_ClickToHide\_6);  
function fl\_ClickToHide\_6(event:MouseEvent):void  
{  
Old\_TurnOnCC.visible = false;  
old\_TurnCCOff.visible = true;  
set cc\_On = true;  
}

/\* Turn Off CC\*/  
old\_TurnCCOff.addEventListener(MouseEvent.CLICK, fl\_ClickToHide\_7);  
function fl\_ClickToHide\_7(event:MouseEvent):void  
{  
var Caption\_On = true;  
old\_TurnCCOff.visible = false;  
Old\_TurnOnCC.visible = true;

}
