Creating a closed captioning button in Flash/AS2

Hello -

I'm using Flash CS5 on a Mac and ActionScript 2.0 (I have to use this language because the software I need to import the SWF to only supports AS2).

I need to create a "closed captioning" button in my .fla file.  I am NOT looking to control a Flash video with this button.  I NEED to place it on the timeline with the "rewind" and "pause/play" buttons I have created that control the movieclips on the timeline.

I have a few audio files and would like the CC button to scroll the words/sentences spoken on the bottom of the screen.  I then will publish my file as a SWF and use software (Articulate) to publish it to my LMS.

Any help would be greatly appreciated.
DEPAdminAsked:
Who is Participating?
 
dgofmanConnect With a Mentor Commented:
No, using XML it's not difficult in ActionScript, but easier using in AS3.

Any ways if you will use my second suggestion you will able to handle show or hide subtitles.
Displaying word frames add into onEnterFrame handler function there you will able to set test to empty is user click on hide button.

    onEnterFrame=function(){
        text.text = (showTitles.selected ? words.childNodes[this._currentframe] ? “”;
    }


http://tiffanybbrown.com/2006/07/18/parsing-xml-using-flash-and-actionscript-20/



0
 
dgofmanCommented:
I am still cannot understand what do you want?
Creating button or stream audio?
 
"I have created that control the movieclips on the timeline. " Did you embed an audio into timeframes?

The best if you will share your FLA file but you need to save as CS4 and attach to this post
0
 
DEPAdminAuthor Commented:
I need to create a closed captioning button.  

I currently have a "pause/play" button on the timeline of each movieclip that controls it.  In each movieclip I have an audio file on the timeline that plays.  I'd like to add a closed captioning button next to the "play/pause" button in each movie clip so that the words spoken in the audio will show up on the screen (preferably 1-2 lines at a time).

I have attached the CS4 file.  There are 3 movieclips located on the main timeline (layer labeled "mcs/txt").  Within each movieclip's timeline you'll see an "audio" layer that contains the MP3 file, and a "controls" layer that contains the "play/pause" button.
Definitions-CS4.fla
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
dgofmanCommented:
Sorry, I was busy do you still need a help?
0
 
DEPAdminAuthor Commented:
Yes I do, I'm still lost in how to do this lol.  Thank you.
0
 
dgofmanCommented:
What do you mean?

 I'd like to add a closed captioning button next to the "play/pause" button in each movie clip so that the words spoken in the audio will show up on the screen (preferably 1-2 lines at a time).

Do you want subtitles?

1)      Your audio embedded into timeline, you can add one more layer and add text and mark as read word corresponding your audio frame (like karaoke)
2)      Create an XML file with words and timeline index. Now before to start playing a movie you have to load this function, parse and check indexes.
Example

<movie1>
   <w frame=”5”>Let’s</w>
  <w frame=”15”>defined</w>
 <w frame=”30”>the terms</w>
Etc.
0
 
DEPAdminAuthor Commented:
Yes, I guess you can call them subtitles.

How would you add text and mark as read word corresponding to audio?  I thought I'd have to add in another layer and type some text to show up that would fade in and out in conjunction with the audio.  I was actually wondering if I can create a Closed Captioning button that could toggle that layer on/off to show or hide the text from appearing on the screen.

I've heard of XML, but I'm unfamiliar with it.  I've only done some AS3/AS2 coding in Flash.  Is this complicated to learn?
0
 
DEPAdminAuthor Commented:
I would prefer to use AS3 also, however, the program I need to publish the .swf files in can only handle AS2 :/

Thanks for your help, I'll definitely check this out and get back to you.  I'm also going to look at some XML tutorials on Lynda.com since I'm clueless about this technique.
0
 
CyanBlueCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.