Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Closed Captioning


Guru's,

I am creating interactive pieces in flash with voice overs and closed captioning. However, one thing I have learned with this experience is that when created closed captioning I have to change the variable on each frame according to what the audio says.. So I have a blank frame with a text box called "ccbar". And the whole code on the blank keyframe is

_root.ccbar.cctext = "text of whatever is being said in the audio file";

My question is that I have to go through the entire FLA file and add these blank keyframes for each sentence that is said. Does anyone know how I could possibly create this dynamically and possibly get it to sync up with the audio file? Lets say we had a song, and u wanted the lyrics to be read to you while the song is playing at the same time. I know this seems as if its a hard concept a little. I am just trying to figure an easier/faster way to resolve this issue.

Thanks,
Andy




FlashKit > Flash Help > Flash ActionScript
Posted on: 05-09-2005, 05:22 PM


View Complete Forum Thread with Replies

Sponsored Links:

Closed Captioning
How can I get an FLV to use the skinOverAll.swf with closed captioning, but have the captions start turned off? They seem to default on.

If I set the showCaptions parameter to false, they not only don't show, but the CC button on the skin will not toggle them on or off.

Thanks


Code:
import fl.video.*;
import flash.display.Sprite;
import flash.text.TextField;

// VIDEO CONTROLS
var flvDisplay = new FLVPlayback();
flvDisplay.scaleMode = VideoScaleMode.MAINTAIN_ASPECT_RATIO;
flvDisplay.x = -250;
flvDisplay.y = -270;
flvDisplay.setSize(500, 375);
flvDisplay.skinBackgroundColor = 0x999999;
flvDisplay.skinBackgroundAlpha = 0.75;
flvDisplay.skin = "SkinOverAll.swf"
flvDisplay.source = "content/video/video01.flv";
flvDisplay.autoPlay = true;
flvDisplay.skinAutoHide = true;
addChild(flvDisplay);

// VIDEO CAPTIONING CONTROLS
var captioning = new FLVPlaybackCaptioning();
captioning.flvPlayback = flvDisplay;
captioning.source = "content/video/captions01.xml";
captioning.autoLayout = true;
// captioning.showCaptions = false;
addChild(captioning);

captioning.addEventListener("captionChange",onCaptionChange);
function onCaptionChange(e:*):void {
// trace("caption change");
var tf:* = e.target.captionTarget;
var flvDisplay:FLVPlayback = e.target.flvPlayback;
};

View Replies !    View Related
Closed Captioning
Guru's,

I am creating interactive pieces in flash with voice overs and closed captioning. However, one thing I have learned with this experience is that when created closed captioning I have to change the variable on each frame according to what the audio says.. So I have a blank frame with a text box called "ccbar". And the whole code on the blank keyframe is

_root.ccbar.cctext = "text of whatever is being said in the audio file";

My question is that I have to go through the entire FLA file and add these blank keyframes for each sentence that is said. Does anyone know how I could possibly create this dynamically and possibly get it to sync up with the audio file? Lets say we had a song, and u wanted the lyrics to be read to you while the song is playing at the same time. I know this seems as if its a hard concept a little. I am just trying to figure an easier/faster way to resolve this issue.

Thanks,
Andy

View Replies !    View Related
Closed Captioning
I'm trying to create closed captioning for an FLV playing in my Flash file. I've looked at tutorials on Lynda.com and used that exact code but I get errors - I've checked a bunch of times to make sure I've typed it in correctly and I think I have. Can you see why I'd get errors with this code (errors and code pasted below) and can anyone suggest how I should do this? I plan to create ActionScript cuepoints and when it hits the cuepoints, display text for that section of video.


import fl.VideoEvent
import fl.video.MetadataEvent;

vid.addEventListener(MetaDataEvent.CUE_POINT, cueText);

function cueText(e:MetadataEvent();void{
var cuePointName = e.info.name;
if(cuePointName=="one"){
info.text = "one is the lonliest number";
}else if(cuePointName=="two"){
info.text = "two can be as sad as one";
}
}

ERRORS:
The class or interface 'fl.video.MetadataEvent' could not be loaded.





























Edited: 07/04/2008 at 06:37:37 AM by yevri

View Replies !    View Related
Is Closed Captioning Possible In Flash
Is it possible to create closed captioning for flash? I am wanting to add text that will follow along with the voice over that I am placing into a flash movie. If anyone could lend some insight I would greatly appreciate it.

Thank You

dc543

View Replies !    View Related
Closed Captioning Position
I have a flv closed captioning component on my stage, and no matter where I place it, it always appears at the very bottom when I play the movie. I even tried changing the position of it w/ code, but it still stays in the same place.

Any help would be appreciated!

View Replies !    View Related
Flash And Closed-Captioning
How is the closed-captioning acheived on the sample success story about Sony's use of Flash?

Thanks.

View Replies !    View Related
Setting Up Multiple Closed Captioning Videos In One Player
Hello,

I am trying to create an accessible multi-video player, and am using the FLVPlaybackCaptioning component. I am pulling my video files and my DFXP Timed Text files from an XML file. My code is attached.

Here are the requirements I'm facing, in no particular order. If anyone has any words of wisdom, I'm all ears!:

1) The player needs to have keyboard support. I think this means I can't use the default skins Adobe ships, as they aren't keyboard accessible.

2) I need captions to be turned off by default; In my current file, captions are turned off for my first movie; however once a user selects a new movie (from a list) captions turn on at default. I'm scratching my head about that one.

3) The controls for the video also need alt text for when a user hovers over. For instance, when a user hovers over the "play" arrow button, the word "Play" would appear.

Any help would be much appreciated. Thanks!









Attach Code

import fl.video.*;
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.xml.*;
import fl.controls.*;
import fl.accessibility.*;

var xml:XML;
var movieSource:String = new String;
var currentIndex:uint = new uint;


var moviePlayer:FLVPlayback = new FLVPlayback;
var movieCaption:FLVPlaybackCaptioning = new FLVPlaybackCaptioning;

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);


function onLoaded(e:Event):void
{
xml = new XML(e.target.data);
var il:XMLList = xml.videos.vid;
for(var i:uint=0; i<il.length(); i++)
{
videoList.addItem({data:il.vidurl.text()[i], captions:il.captions.text()[i], label:il.desc.text()[i]});
}
videoList.selectedIndex = currentIndex;

movieSource = videoList.getItemAt(currentIndex).data;
moviePlayer.height = 512;
moviePlayer.width = 640;
moviePlayer.x = 10;
moviePlayer.y = 10;
moviePlayer.align = "center";
moviePlayer.autoPlay = false;
moviePlayer.scaleMode = "exactFit";
moviePlayer.accessibilityProperties
moviePlayer.skinBackgroundColor = 0x332c2c;
moviePlayer.source = movieSource;
moviePlayer.volume = 1;
playPause.target = moviePlayer;
playPause.addEventListener(MouseEvent.CLICK, playControl);
function playControl(e:MouseEvent):void
{
moviePlayer.play();
}
addChild(moviePlayer);

movieCaption.x = 10;
movieCaption.y = 570;
movieCaption.source = videoList.getItemAt(currentIndex).captions;
addChild(movieCaption);


videoList.addEventListener(Event.CHANGE, playVid);


function playVid(e:Event):void
{
movieSource = e.target.selectedItem.data;
moviePlayer.source = movieSource;
movieCaption.source = e.target.selectedItem.captions;
movieCaption.showCaptions = true;
movieCaption.showCaptions = false;
movieCaption.showCaptions = true;
moviePlayer.play();
}
}

loader.load(new URLRequest("portalVideosTests.xml"));

View Replies !    View Related
FLV Captioning
I need to 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.

Any help is appreciated.

View Replies !    View Related
Video Captioning
Does anyone know of a tutorial or movie that I can get my hands on that captions video (captioning= runs the transcription of what is being said in the video in text format)?
I have the transcription in an external TXT right now but can import that into flash if needs be. But what I want it to do is run in a scrolling box under the video. So when the video plays the transcription runs under it like cretits from a movie would.
To put things in perspective the video is about an hour long so it has a long runtime.

Thanks for any wisdom in advance FLash Guru's

View Replies !    View Related
AS 3 Captioning Component Help
Is there a way to implement the FLVCaptioning component into a custom FLV player? I have a player that I have written, but I can't figure out how to get the captioning component to work unless I use a stock player. If I drag the component onto the timeline I get:

ReferenceError: Error #1065: Variable FLVPlaybackCaptioning is not defined.

ReferenceError: Error #1065: Variable MainTimeline is not defined.

I set the flvPlayBack name to testClip.flv and the captionTargetName to captionBox (a dynamic text box on the stage)

Any ideas on how to make this work?

Thanks!

View Replies !    View Related
Captioning Problem
I have a presentation in flash which i am trying to run the captioning is done using HIcaption, but i can't seem to make it work when i post it online just the black caption bar appears and nothing happens, even though it works perfectly on the local machine. i don't know what exactly is wrong so i will leave that to the Guru's here, please help me
here is the link
http://www.hofstrateach.org/test/chap01.html

View Replies !    View Related
Having Trouble With Captioning
I am currently going through a tutorial on creating captioning using cue points located here. I have my layout set up and my xml setup and everything, but there seems to be a problem with a line of code (in bold):


Code:
var captions:Array;

var captionsXML:XML = new XML();
captionsXML.ignoreWhite = true;

captionsXML.onLoad = function():Void {
captions = this.firstChild.childNodes;

for(var i:Number = 0; i < captions.length; i++) {
myVid.addASCuePoint(Number(captions[i].attributes.start, captions[i].firstChild.nodeValue);
};

};

captionsXML.load("cueData_0101.xml");

myVid.addEventListener("cuePoint", onCuePoint);

function onCuePoint(evntObj:Object):Void {
txtCaption.text = evntObj.info.name;
};
There error I get from the de-bugging window is:


Quote:




**Error** Scene=Scene 1, layer=Layer 13, frame=1:Line 10: Wrong number of parameters; Number requires exactly 1.

myVid.addASCuePoint(Number(captions[i].attributes.start, captions[i].firstChild.nodeValue);




This of course prevents the captioning from working, can anyone help me?

View Replies !    View Related
Close Captioning
Hi,

I work in State Government and I'm in the process of putting together a seminar video. I've purchased the Proxus FLV PLayer Component online specifically because of the visual media list offered. However, I've found that this player doesn't have any caption control mechanism build into it.

Could I build ontop of this player (using layers i assume) and if so, does anyone have any suggestion regarding the XML and Action Script code to use?

Your help would be greatly appreciated.

Thank you in advance.






























Edited: 12/27/2006 at 10:18:18 AM by OlejnikP

View Replies !    View Related
FLVPlayback Captioning
Greetings,

Have you used the FL8 FLVPlayback Captioning SKINs
for Captionate?

Do you know how to use the embed font feature?

I have the player under a mask and the text is showing up invisible. It is
indeed coming to the player,
but it's invisible.

HEEELLLPP! What about the CSS option. Is there a way?

Regards,
Toe Cutter

View Replies !    View Related
Live Captioning ?
hi

we have done live webcasting in real and windows , using a line 21 box..

can live captioning be done with flash, I know it can be done for VOD


please advise 2

View Replies !    View Related
FLV Xml-based Captioning (Subtitles)
Hi everyone!

I am following a tutorial from actionscript.org about creating xml-based subtitles in flash through actionscript. Although I have followed the instructions and explanations closely, I can't seem to make the thing work. Take note, there are no error notifications when I test the movie - I have all the classes required as well as a sample FLV. Can someone please point out what's wrong with this script?

This is basically the cached link of the tutorial I followed. Actionscript.org appears to be inaccessible at the moment.FLV Xml-based Captioning









Attach Code

var theContent:XModel = new XModel();
var listener = new Object();
theContent.addEventListener("onModelledObject", listener);
theContent.load("xml/cuepoints.xml");

var arr_cue_points:Array = new Array();
listener.onModelledObject = function(eventObject:Object):Void {
var cuepoints:Object = eventObject.modelledObject;
for(kk=0; kk<cuepoints.cuepoint.length; kk++){
var cueObj:Object = new Object();
cueObj.cueTitle = cuepoints.cuepoint[kk].cuename[0].text;
cueObj.cueTime = cuepoints.cuepoint[kk].cuetime[0].text;
cueObj.cueText = cuepoints.cuepoint[kk].subtitle[0].text;

arr_cue_points[cueObj.cueTitle] = cueObj;
createCuepoint(cueObj.cueTitle, cueObj.cueTime);
}
}

function createCuepoint(cTitle:String, cTime:String):Void{
var cuePt:Object = new Object(); //create cue point object
cuePt.time = Number(cTime);
cuePt.name = cTitle;
cuePt.type = "actionscript";
video1.addASCuePoint(cuePt); //add AS cue point
}

//populate cuepoints...
var lastCue:Number;
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
var str_name = eventObject.info.name.toString();
_root.txt_output.text = arr_cue_points[str_name].cueText;
}

View Replies !    View Related
FLV Captioning Problem With ShowCaptions
Greetings,

I am working on a simple FLV player for my website with closed captioning using Flash CS3 and ActionScript 3. I am using the FLVPlayback and FLVPlaybackCaptioning which work really great. Now, I wanted to use one player for all my videos, I use javascript functions to pass in the movie parameters (using ExternalInterface). However, I have a problem with setting the FLVPlaybackCaptioning.showCaptions parameter.

Basically, if I set this parameter to "false" then my Closed Captioning button stops working (hovering doesn't change its color and clicking on it doesn't do anything). I use a modified SkinUnderAll skin file for my skin.

Any help on why this is happening and how I can fix that is greatly appreciated!

EDIT: Also, my fullscreen button does nothing. Do I need to do anything special to enable it?





























Edited: 09/09/2007 at 09:26:55 PM by Koobazaur

View Replies !    View Related
Captioning Strangness When Changing Source
I have a tileList component with the following function that loads a new flv into a player when an item is selected. It also loads up a new caption xml file.

I've noticed, if video 1 plays with a caption on screen and I load video 2, it clears the caption text field as in this function but then as soon as video 2 is loaded, the original caption of video 1 displays again until it's duration is over or a new title is played in the video 2 caption xml.

If the caption component gets a new source, why does it persist on playing the old stuff? How can I stop that? Apparently the .text=""; didn't work.



Code:
function changeImage (e:Event):void
{
var myTarget:Object = e.target.selectedItem;
myCaptions.text = "";
flvDisplay.source = myTarget.video;
captioning.source = myTarget.captions;
}

View Replies !    View Related
FLVPlayback Captioning Button - Someone HAS TO KNOW The Answer To This...
Hey all,

Someone HAS TO KNOW how to connect a customized captionButton. Here's what I did. From the Components panel, under Video, I dragged by PlayPauseButton, MuteButton, SeekBar, and also the CaptionButton. I also have an FLVPlayback and a FLVPlaybackCaptioning components on stage to. I go ahead and render this bad boy out and, all is good. I even got my Captions working the way I want to...

It's come time to move all my video player components into 1 movieclip, "navbar" so I can fade it in and out. I go ahead and reconnect all my buttons like so:


Code:
theVideo.playButton = navBar.playPause_mc.play_mc;
theVideo.pauseButton = navBar.playPause_mc.pause_mc;
theVideo.playPauseButton = navBar.playPause_mc;
theVideo.muteButton = navBar.mute_mc;
theVideo.volumeBar = navBar.volbar;
theVideo.captionButton = navBar.caption_mc;
theVideo.seekBar = navBar.mySeekBar;
theVideo.bufferingBar = navBar.bufbar;


I render it out and get an error of "1119: Access of possibly undefined property captionButton through a reference with static type fl.video:FLVPlayback.

When I comment out the captionButton code like so:


Code:
theVideo.playButton = navBar.playPause_mc.play_mc;
theVideo.pauseButton = navBar.playPause_mc.pause_mc;
theVideo.playPauseButton = navBar.playPause_mc;
theVideo.muteButton = navBar.mute_mc;
theVideo.volumeBar = navBar.volbar;
//theVideo.captionButton = navBar.caption_mc;
theVideo.seekBar = navBar.mySeekBar;
theVideo.bufferingBar = navBar.bufbar;


...all works, minus the captionButton. So, my question is:

What is the correct syntax for connecting the captionButton? I should probably add that this is my 2nd project in AS3 so, if it's something really simple, I truly appreciate the help.

Thanks in advance,
-K =]

View Replies !    View Related
Playing Multiple FLV Files With Captioning
Thanks for reading. So I ran across this Live Doc talking about playing multiple FLV files with captioning, but I'm a bit confused. Here's what I think I understand:

1) I only need to reference one FLVPlayback instance, but multiple FLVPlaybackCaptioning Instances for this method.

2) I'm supposed to set two variables that I don't see listed in any other documentation, "captionURL" and "videoPlayerIndex". Am I supposed to create and initialize these variables myself, or did Adobe do it for me?

Any tips? Anybody?

View Replies !    View Related
FLVPlayback Captioning Hide Captions
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 Replies !    View Related
[FMX04] Provide Captioning For Movies
Hi

Can anyone point me to a tutorial for providing closed captioning for Flash movies.

Also, if possible, how to do closed captioning for multiple languages.

thanks

View Replies !    View Related
Captioning And Numbers For Photo Gallery
I would like to add in caption text and photo number indicator to this tutorial:

http://www.kirupa.com/developer/mx/photogallery.htm

1. caption for each photo:
I made text file named "animation.txt" with "&image1= this is pea****, &image2=this is elephant, &image3..............." and I put a dynamic text field with instance name of "caption".

I put this on top of all the code:
"LoadVariablesNum("animation.txt", 0);"
then I put right under "LoadMovie(this.pathtoPics + this.pArray.........":
"caption.text=eval(this.pArray[0]);"

The text field shows nothing. what is the correct code to make caption.text display the right text for its corespondent photo? I tried "&image1.jpg= this is pea****...." in text file and it did not work, either.

2. photo number indicator:
for each photo displayed, it will show : 1 of 10, 2 of 10, 3 of 10......
I have 2 text fields with instance names of "currentNum" and "totalNum". Then at the very end of all the code I put:
"currentNum.text=this.pIndex;
totalNum.text=this.pArray.length;"

Well, I got totalNum display the correct number, but the currentNum always stay at "1", no matter how photo has been changed. I guess I missed something, but I could not figure it out. (note: the tutorial file start with image0, for this purpose I want to start with image1, so I changed "this.pIndex=0" to "this.pIndex=1").

Thanks in advance.

View Replies !    View Related
Flash Streaming Video With Close Captioning
Hello,

I am trying to create streaming video using flash. I've already created the video and encoded as a FLV file.

Two questions:
1. I am currently hosting my streaming video on Playstream.com. How do I incorporate this video such that when a user views the content he/she will see a buffer bar loading as the video plays? A good example is on YouTube.com.

2. I've aready created my close caption file and have it in xml format. How do I sync my close captioned file with the flash video?

Thanks in advance.

mdawg

View Replies !    View Related
Closed Fla. Movie
Hi all!

Anyone that can help me open a closed fla movie? I crashed my hd shortly after createing an intro, and now im stuck with a non editable fla. movie. I tryed opening it with Unlock SWF from Swifty Utilities, witch lets me open it in Flash, but i need to be able to edit the text layer - How do i do that?

I hope that some of u guys have a good idea, thx in advance!

View Replies !    View Related
Can A Non-SWF Window Be Closed?
Hi folks,

I've put together a Flash app that, among other things, calls an EXE file. After the EXE runs in its own window, it calls an SWF.

Is there someway that the called SWF can close the EXE's window?

Many thanks,

Jason

View Replies !    View Related
Connection Not REALLY Closed With AS3
I'm using media server with AS3, when I say "application.rejectConnection(client);" at the server side code the clients counter at the management console do decreased ..., but the connection is closed at the client and NET_STATUS event is fired.

the way that the counter is decreased is to close the browser or go to another page !!!

but at AS2 the counter was decrease fine, is this will affect on performance ??? or is there an action could I do to really close the connection ???

View Replies !    View Related
How Is This Closed Caption Achieved?
I’m sure that most of you have seen these presentations or demos from macromedia.

http://www.macromedia.com/macromedia...line/ondemand/

Click on any of the 4 presentations to see what I’m talking about and once you have the presentation running click on the cc button onthe bottom to see the closed caption mc.

How is this achieved? because the closed caption is sincronised with the video and the movie clip displaying the pictures. And if you pause it, it stays paused like the video and the mc.

The only thing I can think of is, if you control the movie, the movie has tell target actions that call the caption to a desired name frame.
but if the movie is not enbeded, and is streamed how is it done?

Can you guys tell me how is this done?

View Replies !    View Related
Closed Web Broswer Question
I have a chat program I wrote using FlashMX. My problem is when a user closes his/her web broswer. I have a function on the <BODY> tag for onunload but if a person has their security settings set higher then Med-Low it doesn't work.

Is there a way to use geturl to lanuch a page when they hit the X on their broswer?

View Replies !    View Related
How Can The Parent Window Be Closed
Hi

I have imbedded a swf in an html page. The page pops up when a visitor clicks on an image. Is it possible from within Flash, to automatically close the html page when the mc finishes playing?

Thanks

View Replies !    View Related
Closed Caption Text
What is the most effective way of creating closed caption text? I need to do a read along where the words turn a different color as the narrator reads them.
Here is an example:
http://www.mightybook.com/MightyBook..._knocking.html

thanks
astro

View Replies !    View Related
Closed Caption Text
What is the most effective way of creating closed caption text? I need to created a read along where the the words turn color as the narrator reads them.

Here is an example:
http://www.mightybook.com/MightyBook..._knocking.html

thanks,
astro

View Replies !    View Related
[MX04] So Simple U Can Do It With Ur I's Closed
So simple of a button problem that I am ashamed, but I'm teaching myself. So I have a few buttons that are on the main timeline. The buttons are to control a movie clip instance (text.mc) that contains 20 frames ( 1-4:bio 5-9:contact 10-14:see me 15-20:home ).

When I release my mouse text_mc doesn't do anything.

Here is my script:

on (release) {
text_mc.gotoAndStop("home")
}


home is the name of the frames that I want it to go to on the text.mc
and each button script is written the same with the frame names.

What reason could it be that my movie clip or buttons are not working?

View Replies !    View Related
Closed Source Security
What is the definitive word up until this point on making our Flash files closed source? If I'm going to choose Flash as a primary development platform I need to know that not just anyone can go downloading a decompiler and rip off my application.

What can I do to protect my Flash files' source? Thanks.

Selfminded

View Replies !    View Related
Closed Caption Formatting
I'm using the flv playback and flv captioning components in CS3, and am curious if there is an easy way to format the bar behind the text. I can format the text just fine, but I would like the ability to change the color and alpha of the background.

Thanks in advance for the help.

View Replies !    View Related
How To Let Flash Know That A New Window Is Closed
Hi there,

I have a application in which I am loading a new window (modal) using javascript. As all know that in html if you open a new modal window the application freezes and doesnt execute any code until the modal window is closed. How to do that kind of functionality using flash (CS3). I want my timeline to jump to a different frame when the modal window is closed. Please If any one had similar problem then please help.

View Replies !    View Related
Flash CS3 64-bit Will Not Open Once It Is Closed
The issue that I am having is with Flash CS3 installed on Windows XP 64-bit. A user will open Flash and use it for awhile and then quit the application. Even after the application is closed it still shows up as running a process in the background called Flash. If that user logs off and another logs on Flash will not open for the user. The computer needs to be restarted in order to access Flash again. This does not happen all the time, just an intermittent issue. Does anyone have any ideas on what may be causing this?

View Replies !    View Related
Broadcasting When A Connection Is Closed
I am writing a streaming program and need to know if there is a way to tell when a published stream is closed when the publisher closes the program without properly calling a function to close the stream. Ideally, I would like to broadcast to every person receiving the stream that the stream from the publisher has ended. Any advice on how this is done would be greatly appreciated. Thanks!



























Edited: 09/12/2007 at 10:53:16 PM by natebaca

View Replies !    View Related
Closed Caption Problem
I have an FLVPlayback and a FLVPlaybackCaptioning component on the stage. If I set the video source in the ComponentInspector at design time the closed captioning works, but if I set the video source through action script at runtime then it doesn't work. Any ideas would be greatly appreciated





























Edited: 09/18/2008 at 11:37:11 AM by gac101

View Replies !    View Related
Detect If Browser Is Closed
how can i detect if someone has closed the browser that was using the swf. i want to then execute some code, and only then close the browser.

is this possible

View Replies !    View Related
Closed Caption Feature
First off - I got a job! I have never had a Flash job. I have always just been a fan and played with it. But this company needed it and now I'm employed.

Now, I am working on a project - it's interactive courseware. The client wants a Closed Caption feature.

I thought to put it on the same movie as the audio so that the text and audio could be synced up. There needs to be a button to toggle it on and of. This is what I don't know how to do. Can you hide an MC and it still play? Or can you hide a layer on the timeline?

There will also be pause, stop, forward and backward buttons too that need to be built in. So, I put all those control buttons on the audio timeline. I need to figure out how the control buttons will also pause and stop the other movies clips that get played by the commands in the audio timeline.

I'm so pressed for time to meet a deadline that I can't think clear and I'm afraid to spend time looking for the answer. I have other worries too like SCORM compliance and LSM stuff. Lots to learn!

View Replies !    View Related
Sound Bug After Browser Window Closed
Yet again FK has cut off the end of my post....so i'll try again:
I have the following actionScript on the first frame of my main timeline:
waves = new Sound();
waves.attachSound("waves");
if(!mute){
_root.waves.start(0,100);
}
The problem is that the sound often continues to play in the wew browser after closing the window with the movie in it and leaving the site. The sound only ceases after you quit the browser! Does anyone know how to fix this bug??

Cheers

View Replies !    View Related
Do Action When Browser Window Is Closed
Is there anyway to execute an action script if someone closes the browser window that the movie is playing in? Something similar to the "onUnload" javascript command.

View Replies !    View Related
Detecting That A Flash Movie Has Been Closed
Hello everyone,

I was wondering if there was a way to detect if a flash movie is being closed by the user.

For example a user clickes a link that opens a new browser window that loads a flash movie. While the movie is playing the user closes the new browser window by clicking on the little close window button on the top of the browser frame or by cliking on a close window button inside of flash movie. I need to detect when the user has closed the window to write a record in a database table that will hold the time the user has spent watching the movie.

Thank you all in advance.

View Replies !    View Related
Deleting SharedObject When Browser Is Closed
How do I delete my SharedObject when the user closes the browser??

As a normal memory cookie.



Regards


Godowsky

View Replies !    View Related
Dynamically Filling A Closed Region
I use 3d flash animator for creating flash animations. I am not an expert in this. Now I want to create a closed region and want to fill that closed region with a color. The color code will be passed by user to the flash swf file using some type of parameter passing. Is it possible in flash and how?

Can anybody help me?

-Mahesh

View Replies !    View Related
Run Function When The Flash Movie Is Closed
Im sure I have seen code for this before but I cant find it anywhere

Basically, if the flash movie is running in a html page, when that html page is closed or the user navigates to a different page - I want the flash movie to run a function when that happens.

Does anyone know how to do it? an onDie() or something like that?

Thanks for any help!

View Replies !    View Related
FScommand, On Top Animation To Be Closed [in Firefox]
Hi Everybody, (Flash MX v6.0)

I have a problem with my flash animation in Firefox. With an advanced javascript code I got from a friend (which is added below) I open up an Flash animation on top of a website. The animation is a nice magazine bladiebla, it works perfectly.... until...

I want to close the (on top) animation, and want to go back to the website! First I used the following command in a button to get back to the website:

Code:
on (release) {
unloadMovieNum(0);
}

This works in Internet Explorer, but in Firefox it does not work and leaves a area of unloaded flash movie behind... As I was troubleshooting (or reverse engineering the script below) the problem I came accros the FSCommand and figured I wasn't closing the animation the right way. I should have send a message again to javascript to toggle the animation off.

I found some good information about the fscommand at the website of Moock. They have an example as follows:

Code:
fscommand("call_alert", "Hello world!");

With the right scripts in the html page offcourse (as explained in the tutorial).

I want to do something similar with a fscommand to toggle the on top animation off. I tried codes such as the following:

Code:
on (release) {
fscommand("toggleMagazine", "false");
}

This does Not work in Internet Explorer, and gives a security alert in Firefox.

Well, I really wonder if anyone can come up with an answer to this particular problem. Maybe some of you have experience in such things in advertorials you see sometimes, but those you can close. Please help me if you have a clue... (If you have better alternatives I am also interested)

Well bye bye,
Erik





Below the code (in body) to toggle the animation on:

Code:
<!-- javascript functie om de site te openen: toggleMagazine() -->
<a href="javascript:toggleMagazine();">open Magazine</a><br>

Below the code (in body) I got from a friend and want to use (or similar):

Code:
<script language="javascript" type="text/javascript">

var MagazineVisible = false;
window.onscroll = function() {
if (MagazineVisible) document.getElementById('MagazineDiv').style.top = document.body.scrollTop + 'px'; }

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function Magazine_DoFSCommand(command, args) {
var mainObj = isInternetExplorer ? document.all.main : document.main; toggleMagazine(false); }

if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<script language="VBScript">
');
document.write('On Error Resume Next
');
document.write('Sub Magazine_FSCommand(ByVal command, ByVal args)
');
document.write('Call Magazine_DoFSCommand(command, args)
');
document.write('End Sub
');
document.write('</script>
'); }

function toggleMagazine(show) {
var selects = document.getElementsByTagName('select');
for (a = 0; a < selects.length; a++) { selects[a].style.visibility = 'hidden'; }
var gameDiv = document.createElement('div');
gameDiv.id = 'MagazineDiv';
gameDiv.style.position = 'absolute';
gameDiv.style.width = '100%';
gameDiv.style.height = '100%';
gameDiv.style.left = '0px';
gameDiv.style.top = document.body.scrollTop + 'px';
gameDiv.style.zIndex = "100000000";
gameDiv.innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="Magazine" align="middle"><param name="allowScriptAccess" value="always" /><param name="movie" value="frs_magazine.swf" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="frs_magazine.swf" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="100%" height="100%" name="Magazine" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
var bodyTag = document.getElementsByTagName('body');
bodyTag = bodyTag[0]; var y = bodyTag.childNodes[0];
bodyTag.insertBefore(gameDiv, y);
MagazineVisible = true; }

</script>

View Replies !    View Related
Make The Clock Go To Zero After The File Has Been Closed?
Hey! I have a clock that couts down to a date. My problem is that I have code that check when the clock reaches 0 and it works, BUT when I close the file and re-open it it seems to skip that code, and it shows the negative numbers! My code is as follows:

Code:
if (days=0 && hours=0 && minutes=0 && seconds=0) {
gotoAndStop(13)
}
I tried using the "<=" operand instead of the "=", but it didn't do anything.
Can anyone help me?
Thanks so much!
-Pippykk

View Replies !    View Related
[F8] Closed Caotions For Flvplayback Component
Hi all,

I am having a problem in CaptionDisplay class used to add captions for a video.
In my project I have to show many videos in a flvPlayback component, and every video have their own caption xml file.
The caption file is working fine for the first video but when the video is changed the caption doesn't work, here is the code snippet I have used:
In the root I put this code:-

import mx.video.captions.*
var initObj:Object = new Object();
initObj.font = "_sans";
initObj.embedFonts = false;
initObj.textSize = 16;
initObj.textColor = 0xFFFFFF;
initObj.textShadowColor = 0x000000;
initObj.backgroundColor = 0x000000;
initObj.backgroundAlpha = 60;
initObj.overlay = true;
var CC=new CaptionDisplay(_root.tv,initObj);
var ccbtn_ref=new CaptionButton(_root.controls_mc.cc_mc,CC);
ccbtn_ref.toggled=true;
CC.useTimedText=true;
CC.source = "test.xml";

And when the video is completed then I call a function, in which I change the contentPath of the flvPlayback and also put this code :
'_root.CC.source = "test2.xml";'
but this way the next video keep playing but the caption is not shown for the second video.

I also tried to make a new CaptionDisplay object every time a video is changed for the same flvPlayback component. But doing that way the flvPlayback goes to "loading" state and never recover from that state.
Any help will be most welcome.

Thanks in advance,
Vikas.

View Replies !    View Related
LocalConnection Not Closed When Played In A Browser
I have a strange pb that does not happen on all configurations.

I'm using LocalConnection to communicate between to swf.

It's embedded on a html page.

It works.

When I reload the page, I have an error when opening the LocalConnection ,the name is alrady in used by another swf.

I guess the page reloading has not killied the LocalConnection.

Did some of you had this pb also ?

What I had in mind is to catch a destroying event when the swf is killed and to close the LocalConnection myself. But is there such an exvent in Flash ?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved