Link to home
Start Free TrialLog in
Avatar of DEPAdmin
DEPAdminFlag for United States of America

asked on

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.
Avatar of dgofman
dgofman
Flag of United States of America image

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
Avatar of DEPAdmin

ASKER

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
Sorry, I was busy do you still need a help?
Yes I do, I'm still lost in how to do this lol.  Thank you.
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.
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?
ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.