ActionScript 3.0 :: Making For Timing Out Closed Captioning?
Jun 16, 2011
I have a simple mp3 player I'm making for timing out closed captioning. It plays one mp3 based on an ExternalInterface call, updates a text field with the position and allows for pausing and jumping the position back a bit. It will have a scrubber, but that code isn't in there yet. There is no complex code anywhere in the file, but it is still getting confused with btnPlay.visible or btnPause.visible, depending on which is visible first.
[Code]...
View 4 Replies
Similar Posts:
Feb 29, 2008
implement closed captioning into my FLVs. I have successfully set up the FLVplayback component, and the FLVplaybackCaptioning component to work. That's not the issue. The issue is, once I have my swf, flv, and xml files (needed to successfully use CC in a FLV), I need to insert that .swf into my captivate project.
It appears to insert/import OK, but once I publish the project, the swf does not appear, and in fact the FLV icon sits on the slide rapidly blinking. Neither the video plays, nor can I even see the playback component/closed caption component (swf) that holds the FLV.
All paths are relative, so the only things I can think of that may be causing the issue are:
a)Captivate doesn't support CS3 FLVPlayback or
FLVPlaybackCaptioning components
b)Since Captivate allows importing of FLV files directly, running the FLV through the component's swf is a problem
c)The hierarchy of files needed for the Closed Captioning FLV (xml, flv, swf), interfere with compiling the new Captivate .swf
upon publishing I've also been told that the FLV captioning component only works in Actionscript 3.0 which runs on Adobe Virtual Machine 2.Captivate publishes .swf files using Actionscript 2.0 which runs on Adobe Virtual Machine 1. Therefore, what I need to do will not work.
View 4 Replies
Sep 7, 2010
I am using using Flash Builder to create an AS3 video player which needs to support Closed Captioning. However, I am not using the FLVPlayback component. Is there a way of doing something like addASCuePoint() to flash.media.Video;, or is my only option using Flash' Timer to do my own check?
View 2 Replies
Sep 19, 2011
I am looking to add closed captioning to video being played via Netstream. The "cuePoints" and text-data would be pulled from an external XML file. I am tinkering around with different libraries/add-ins but not having much luck. I've read that you cannot add cuePoints to a netstream programmatically.
View 7 Replies
Jun 10, 2011
I currently have a problem with captioning on a video file that I am streaming from Flash Media Server. For some reason, the first time the video is viewed, the captioning pauses right around 6 mins. I've verified this happens from multiple computers, from different physical locations and on different networks. The video continues to play, but the pause button on the playbar also looses functionality and the captioning does not progress.
I've created a total of 11 videos all using the Flash CC plugin with a custom button for show/hide captions and minimal playbar which only includes the pause button and the mute button. This only happens in this one particular file, but they are all setup the same. From what I can tell, the xml is constructed correctly (TT XML generated by contractor).
The code I've written works fine on all the other files. The only thing I can see that's different among the files is possibly the size of the movie I'm streaming. Its the longest. If the viewer refreshes the page and watches the movie again, the pause does not happen. Is it possible that a setting may need to be changed on the Flash Media Server?
View 1 Replies
Feb 29, 2012
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.
[CODE]...
View 4 Replies
Aug 2, 2010
A NetStatusEvent with info.code of "NetStream.Connect.Closed" is dispatched by NetConnection when a NetStream is closed. This seems kind of weird, shouldn't the NetStream dispatch the event? how do I know which NetStream has been closed if I have more than one running (which I do)? I need to know so I can cleanup the now dead stream.
View 1 Replies
May 27, 2011
I'm creating accessible content for a html elearning module. I'm including video, which I have successfully imported into flash, and added captions to by linking a XML document.The issue I am having is that my styling in the XML isn't working in flash, and my captions play in a tiny horrible font, making it very difficult for people to read, therefore not making it accessible content.I've used two tutorials online to create these styles in XML but neither are working.I'm using CS5 Flash and Dreamweaver.XML content is as follows: (I have removed my content for the script)
<?xml version="1.0" encoding="UTF-8"?><tt xml:lang="en" xmlns="http://www.w3.org/2006/04/ttaf1" xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling"><head><styling><style id="1"
[code]....
View 3 Replies
Sep 13, 2008
I'm using the flvPlayback and Captioning component/skin for some videos. Works great, but I can't figure out how to have the captions off by default, and use the caption button to turn them on for users who want to see the caption buttons.
flvCaption.showCaptions=false;
--hides the captions, but also disables the captionButton in the skin, so there is no way to toggle showing and hiding the captions.
View 1 Replies
Dec 13, 2011
I'm setting up a simple little OSMF-based media player, and I have hooked up the org.osmf.captioning plugin found in the samples. It is working just groovy with video, but I also have audio files to play with captions, and it doesn't seem to do anything for those. On initial inspection, I can't see anything in the plugin that ties it to a specific type of media. Nor can I find any indication that the timeline metadata used for captioning is only relevant to certain types of media. Does the captioning plugin support audio playback? Might I have set it up incorrectly?
View 1 Replies
Oct 28, 2009
I am loading an XML file and when I run a trace inside the onLoad event the results show.When I put the same trace outside that event, the trace returns undefined because it runs before the XML is Loaded.I don't know how to assign the results of the XML to a variable being used outside the XML unless I call that through another event.For example. I want to preload some images if the user has been to the movie before. I call XML which has the image array. But I can't tap into that array because my function is outside the XML Load event and my function is not tied to an event.
View 2 Replies
Jun 27, 2009
I'm making a flash movie and I have all of the audio timed out right in the .fla, but when i hold Ctrl+Enter to play the .swf, the audio is not timed right. I haven't expoted the video yet so I'm hoping that the file will be fine when exported.In the file attached, (it is unfinished) the audio, "You talkin' to me?" should happen after the camera has already finished panning up to the man's head. Instead, the audio plays while the camera is panning upward.
View 3 Replies
Sep 10, 2011
How to find starting and ending time of each word in the audio
View 4 Replies
Oct 28, 2009
I have a Flex GUI which is using AMF Streaming to BlazeDS on WebLogic 9.2. As the AMF Streaming uses long polling, it keeps the connection open for extended periods of time.
WebLogic has a max thread timeout of 600 seconds. WebLogic throws an error and times out the thread if it has been alive for longer than the timeout. This causes my GUI to lose its connection and hang.
I could change the default setting in WebLogic (StruckThreadMaxTime) but this would obviously negatively effect legitimately stuck threads.
View 2 Replies
Jul 18, 2009
I have two boxes on the stage and on a button click I want box 1 to change colour then once that has changed the other changes colour using tweener class, at the moment box 1 and two change together?
Code:
import flash.events.Event;
var oneArray:Array = new Array("0x99CC00", "0x99CC99", "0x99CC00");
var boxArray:Array = new Array();
[code]....
View 2 Replies
Oct 23, 2009
As you don't know when as3 will actually do a draw, how do you time the draw? Basically I have my logic seperate, and can time it. I wish to time the render also. Then I can adjust how many frames I render per second but always run the logic at full speed (I assume that's 50fps if flash is set for that). Meaning of course the game runs the same speed on any platform, but the draw only happens when there is time i.e. less time more jerky but game speed the same.
View 0 Replies
Jan 24, 2007
In the tutorial named "How to load random movies" it loads random movies when the page refreshes. I want to modify the code to load random movies 5 seconds at a time.This is the code from the tutorial, how can i add the property I wanted.
Code:
filename = ["circular.swf", "vibration.swf", "random_movement.swf"]; path = "http://www.kirupa.com/developer/actionscript/animation/"; i = filename.length; k = Math.floor(Math.random()*i); loadMovie(path+filename[k], movieTarget);
View 3 Replies
Jul 2, 2011
Is there a script in AS2 that will call a function when the SWF is closed? I found solutions, but they're all in AS3.
View 1 Replies
Jul 20, 2009
I have two movieclips on stage (red_mc and blue_mc). I'm attempting to have blue_mc fade in first, then when it's finished, I'd like red_mc to fade in. Why is the following code not working? ....
import fl.transitions.*;
import fl.transitions.easing.*;
function doBlue(e:TweenEvent = null):void {
[code]....
In another file, I have four movie clips: blue_mc, yellow_mc, green_mc and violet_mc. The idea is to make blue "invisible" to reveal yellow and back with keyboard command. And switch from green to violet and back with keyboard command. Problem is, one keyboard press switches both blue to yellow AND green to violet. I'd like it to happen sequentially ... meaning first keypress switches blue to yellow only. Next keypress switches the green to yellow only and so forth.
Subquestion for #2: the way it's set up now, it requires a keypress to switch BACK from the second color to the first. Ideally, I'd like to put it on a timer so that one keypress, turns blue to yellow, waits 5 seconds and resets back to blue. Next keypress, switches green to violet, waits 5 seconds and resets back to green.
// shows blue and hides yellow, switches at key_down
yellow_mc.visible=false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, hideShowBlueYellowKeys);
[code]....
View 3 Replies
Mar 30, 2009
I am still pretty new to Flash, but I do understand mostlyhow things work. Basically, I have 5 banners (each in a named frameof their own) in a banner rotation SWF and I want to make themrotate continually through all 5 banners without using the timelineto do so. How would I use setInterval to force them to rotate, sayevery 3-5 seconds? Or, what command would I need to make them do
View 6 Replies
Feb 17, 2009
in the old version of flash, there was an option in the property inspector where one could have assigned ie. 8 seconds to a keyframe (esp. text) so one could read the let's say 3 sentences before the next set of sentences came on the stage. i swear there was an option for this in flash 8. can anyone tell me how to control the timing in flashcs4 in between frames? i know how to make the very last frame stop( ); in actionscript 3.
View 2 Replies
Oct 17, 2009
I am as new as a flash newbie can be and I was editing a template for a flash intro. My company wants to use a different soundtrack for the intro which would necessitate changing the timing of the intro. What I mean is that I want certain scenes to display slightly longer than they are now.
View 2 Replies
Jan 13, 2012
I'm having an issue getting URLLoader to work the way I want. I basically need to pull information from xml files, parse that information into objects, and then work with said objects afterwards.Here's pseudocode for my current implementation (which does not work)
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, loadXML);
xmlLoader.load(new URLRequest("xml1.xml"));
[code]....
View 8 Replies
Mar 5, 2012
I have file with a button that plays a sound. When the sound is played the words are highlighed as the narrator says the words, like in a children's book:
[Code]...
View 1 Replies
Sep 13, 2010
Does anyone know how accurate flash timing is and its ability to identify the client monitor's refresh rate? I need to be able to calculate time durations with up to 10 milliseconds accuracy of response time. Also if it is off, is there a way to possibly calibrate the response based on monitor refresh rate and action to make sure the value is as close to precise as possible? Any info would be great! Even better would be some examples of existing benchmark test.
Update:I've found this post which is helpful but wanted to see if anyone else has anything else to add on the subject.[URL]..
View 2 Replies
Sep 22, 2005
I was using the following script adapted from a post i found on this site and realized I needed to delay the showing of my dynamic, XML based HTML rendered text untill after the picture had faded.
text and image arive....text changes images fades out new image fades in.
you see the new text which doesnt match the previous image.....
How can i trigger the text to appear (alpha?) when the new picture is at a certain alpha say 50%?
pasted below is the script - have tried everything I can think of (which i admit is not probably enough).
delay = 4000;
function loadXML(loaded) {
if (loaded) {
[Code]...
View 3 Replies
Apr 22, 2006
I'm having a few problems with loading swf after swf. I want one swf to load after another has loaded and so on... Down a long chain until everything is loaded. I know this code doesn't work... But it shows you what I'm trying to do. Should I use listeners to achieve this? Because _root.theMC.onLoad = function(){-Do Stuff-} doesn't seem to work at all...
[Code]...
View 1 Replies
Jun 12, 2003
i have a little Query. iv looked on the past forum posts but the solution i found did'nt work "for me".I was wondering how to delay an action with actioniscript i.e. press wait 10seconds then perform action/function i have a crude way but i it calls for animating in the time line and i want to do as little of that as possible
View 5 Replies
Jun 6, 2007
Using my intermediate but growing AS skills I can place 3 MC�s onto the screen.
I do not want these 3 MC loading on at the same time. I would like to load the first one and X amount of time later load the second MC and the same for the third one.
How would I go about putting in X amount of delay between the MC's as they are placed on the stage.
circle1._x=50;
circle2._x=50;
circle3._x=50;
[Code].....
View 2 Replies
Oct 27, 2009
I would like to know how to manage timing in AS3.Let say I have some functions in a code and all of them trigger an animation.
A) I would like to run the functions one by one, but next function must not be triggered before the animation of the previous one is completed
B) I would like to run the functions one by one, but next function must be triggered certain time after the animation of the previous one is completed.
View 7 Replies