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
FlashKit > Flash Help > Flash MX
Posted on: 11-28-2002, 05:27 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Deleting SharedObject
Is it possible to delete a SharedObject when the browser window is closed?
I have a banner that appears on every page with a background sound, with a sound off button. I am using a SharedObject so the sound does not replay every time a new page loads. I would however, like the sound to play by default when a user first arrives at the site - even if they visited it on a previous day and switched it off. Is it possible to remove this SharedObject after the site has been left or the browser window is closed?
Here is the code I am using (adapted from an Ultrashock posting, but I can't get a reply over there...)
stream = new Sound();
//uncomment on the next 2 lines so this can be used for testing
//delete cookie_so.data.soundIsOff;
//cookie_so.flush();
var cookie_so = sharedObject.getLocal("myFlashCookie");
// CHECK FOR EXISTING DATA
if (cookie_so.data.soundIsOff == undefined || !cookie_so.data.soundIsOff) {
var turnTheSoundOn = true;
} else {
var turnTheSoundOn = false;
}
if (turnTheSoundOn) {
turnSoundOn();
} else {
turnSoundOff();
}
function turnSoundOn() {
//SOUND-ON CODE HERE
stream.setVolume(25);
_root.frame = sound;
cookie_so.data.soundIsOff = false;
cookie_so.flush();
}
function turnSoundOff() {
//SOUND-OFF CODE HERE
stream.setVolume(0);
_root.frame = nosound;
gotoAndStop("nosound");
cookie_so.data.soundIsOff = true;
cookie_so.flush();
}
sound_bt.onRelease = function() {
gotoAndStop("nosound");
if (_root.frame == nosound) {
turnSoundOn();
} else {
turnSoundOff();
}
};
//save frame number into a SharedObject
_root.frame_so.data.frameNumber = _root._currentframe;
_root.frame_so.flush(); //saves the cookie
stop();
Thanks
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
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
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.
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 ?
Clear Cache When Browser Closed
is there a way to clear a file (flash or html) from the cache when the browser gets closed
this so people who don't regularly clear out their cache get the new version of the website everytime
AS3 - SharedObjects - Clear When Browser Is Closed
Hi everyone,
I've been truying to figure out the best way of tracking web sessions in flash.
the main problem is having a flash animated that has two animations, one for the entry and one that loops.
What I need is the user to see the "entry" animation when the browser first opens to that page, and then I play the loop animation throught a timer event every couple seconds. Now what is happening is the entry keeps playing on every refresh, or when the user visists another link on that same website.
To work around that, we set up a cookie in JavaScript that tracks the session and tells flash which animation to play, after the browser is closed that cookie is cleared, worked perfect except in IE.
I have no experience in JavaScript and wanted to work around this problem using flash to set a cookie wiht SharedObjects.
when the swf is loaded I set a variable to true rioght after the entry animation plays, so if the user is still on the page, the swf checks the cookie and if it finds "true" then it plays the loop animation.
better drawn below:
1. browser is launched
2. cookie created value = false (default)
3. swf checks the cookie finds false --> plays Entry animation
4. end of Animation, in the cookie value is set to true
5. swf checks the cookie finds true ---> plays Loop animation
6. anyway to clear that cookie or set it back to false, right before the browser is closed
all this is to track the session pretty much.
is there any work around? I couldn't find anything anywhere :S
Please help
Are SharedObjects Flushed Or Deleted When The Browser Is Closed?
I've been working on something of late that will display text the first time the user views it, and the second time, say something different. I've accomplished this using SharedObjects. However, it seems that the information (the shared object) isn't removed when the user leaves of closes the browser. I there a workaround for this?
Thanks!
Flash Browser Persistence Without Using SharedObject
Hello,
I was wondering if there is anyway to store data in flash and make it persistent while browsing a site, without using the sharedObject? sharedObject just works like cookies, where it stores a file on a user's computer. I want to be able to store data in a flash object and have it persist throughout a session without storing anything locally. For example, storing something in the Flash Player and retrieving it via javascript or something. But, i have no idea if this is possible.
any help would be greatly appreciated!
thanks,
k
Deleting Shared Object On Browser Close
I searched for this and did find a similar topic where it was suggested to put a time limit on the shared object (put a time when it was set and compare with time when user accessed the flash again and then decide what to do)
However, I would really like the shared object I am setting to be removed when the browser is closed. Is this possible?
SharedObject EXPERTS? Only Want Flash Movie To Appear 1 Time Per Browser Session?
This is what I have thus far - it works, but I'd like to have it
load if the user comes back later... - Just Browser Session Based?
Any Ideas?
On Frame1
Code:
var haveWatched:SharedObject = SharedObject.getLocal("watchedit");
if( haveWatched.data.skip == 1 ) { gotoAndPlay("whever we go to skip the intro"); }
on your last frame of the movie
Code:
haveWatched.data.skip = 1;
haveWatched.flush();
I am hoping someone can Help me? Please!! Oh Please!
-Jen
SharedObject EXPERTS? Only Want Flash Movie To Appear 1 Time Per Browser Session?
This is what I have thus far - it works, but I'd like to have it
load if the user comes back later... - Just Browser Session Based?
Any Ideas?
On Frame1
Code:
var haveWatched:SharedObject = SharedObject.getLocal("watchedit");
if( haveWatched.data.skip == 1 ) { gotoAndPlay("whever we go to skip the intro"); }
on the last frame of the movie
Code:
haveWatched.data.skip = 1;
haveWatched.flush();
I am hoping someone can Help me? Please!! Oh Please!
-Jen
[CS3] SharedObject Being Set In Swf A, Check SharedObject In Swf B
Hi guys,
I haven't done any real work with sharedObjects so forgive me if the answer is obvious.
I am setting a SharedObject in swf 'A' if and i want to check it is set in swf 'B'
Both swf's are in the same folder space.
I have been messing with it the past couple of days but i cant get it to read what is set in swf 'A'.
am i able to read in swf 'B' what was set in swf 'A'?
Thanks
SharedObject Being Set In Swf A, Check SharedObject In Swf B
Hi guys,
I haven't done any real work with sharedObjects so forgive me if the answer is obvious.
I am setting a SharedObject in swf 'A' if and i want to check it is set in swf 'B'
Both swf's are in the same folder space.
I have been messing with it the past couple of days but i cant get it to read what is set in swf 'A'.
i am able to read in swf 'B' what was set in swf 'A'?
Thanks
SharedObject Being Set In Swf A, Check SharedObject In Swf B
Hi guys,
I haven't done any real work with sharedObjects so forgive me if the answer is obvious.
I am setting a SharedObject in swf 'A' if and i want to check it is set in swf 'B'
Both swf's are in the same folder space.
I have been messing with it the past couple of days but i cant get it to read what is set in swf 'A'.
am i able to read in swf 'B' what was set in swf 'A'?
Thanks
SharedObject Being Set In Swf A, Check SharedObject In Swf B
Hi guys,
I haven't done any real work with sharedObjects so forgive me if the answer is obvious.
I am setting a SharedObject in swf 'A' if and i want to check it is set in swf 'B'
Both swf's are in the same folder space.
I have been messing with it the past couple of days but i cant get it to read what is set in swf 'A'.
am i able to read in swf 'B' what was set in swf 'A'?
Thanks
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!
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
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
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;
};
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
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
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 ???
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?
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?
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
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
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
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
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!
[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?
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
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.
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.
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?
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
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
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!
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.
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
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!
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>
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
[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.
Connection To The Mediaserver Is Automatically Closed?
Hi,
I am making a multiplayer game using mediaserver.
when user is playing he is automatically disconnected.
any one can give some suggestions, why it is happening,
am i missing any settings?
thanks in advance
regards
advika
Creating A Closed Arc With Mouse Movement
I am drawing circles with mouse movement around objects. the problem arises when I want to check if the circle drawn with mouse is closed or not( note that the circle created is not a regular one instead a line drawn arc like with pencile tool) . I tried storing the x,y cordinate on a array with mouse move and matching it again to find the intersection point. But it didnt work as when I draw fast it fails to check. I also tried to hittest a movieClip on the array but same problem when drawing is done fast it fails at times. can any one suggest me a alternative methood or any round about method
Video Scrubbing With Closed Captions
Hi everyone,
I am building a slide presentation with video. I have closed captions, using HI-Caption. I want to be able to advance/reverse in the video and have the captions change to the nearest cue point along with the video. The HI-Caption site gives the code, but it won't work for me. Any ideas?
This is the actionscript with the changes made for the caption and display names:
captions.HookMediaComponent(display);
Here is the page if this helps any one:
http://www.hisoftware.com/hmccflash2...GettingStarted
Hi_Caption tutorial
Or if anyone knows how to do this with any video file, scrubbing to the nearest point?
Thanks, Cletus
|