ActionScript 3.0 :: Checking For End Of Video With FLVPlayback.STOPPED?
Feb 22, 2010
Forgive my "desperate newbie" begging, but I could really use a little help here. REALLY new to actionscript 3.0, can't really get my brain wrapped around it yet. I'm working on a kiosk presentation that allows a user to select from a number of videos. When the video is complete, I'd like playback to return to the main menu. This is running directly from a hard drive, so there's no need to dynamically load and stream video. I've placed several FLV Components at various points on the main timeline, and set the pathname for each using the Parameters on the Properties box. ALL I need to figure out is how to set up a listener to detect when the video ends and perform a navigation function that I've set up. Pretty sure it's gonna use FLVPlayback.STOPPED, but I've tried a zillion different options on how I think it's supposed to be used, but nothing is working out for me.
The clock is ticking on my deadline and I just...can't...figure...it...out. If anyone can tell me how to accomplish this I will sing your praises to the heavens. I know it's simple stuff and I promise not to bother you anymore with stupid questions.
If you have a solution for me, please be VERY specific as to where any code gets placed ("put this in frame 1 of the main timeline," and "put this in the frame where your video starts.")
View 8 Replies
Similar Posts:
Jul 19, 2009
The below code is used to bring up the video initially, stop it after rendering, then restart upon clicking the video component.Unfortunately the statement "myVideo1.addEventListener(MouseEvent.CLICK,start1);" does not call function start1 upon the mouse click.
package code{
//fades in, after fade in video stops
import fl.video.*;
[code]........
View 2 Replies
Apr 27, 2010
I have attached a video on a frame of my website in Flash. When I preview the movie the film plays as it should.But when I export the Fla. as a Swf. file it then doesn't have the movie there anymore?It does show this error:
**Warning** The linkage identifier 'FLVPlayback' was already assigned to the symbol 'Video/FLVPlayback', and cannot be assigned to the symbol 'FLVPlayback', since linkage identifiers must be unique.
I really don't know what that refers too.
View 1 Replies
Jun 15, 2011
I'm having great problems getting Javascript to resume a flash file.The flash file loads up and the video is set to autoplay false. For some reason, any Javascript is not recognising the AS3 function. It keeps saying the function is undefined. e.g.
function getFlashMovie(movieName) {
var isIE = navigator.appName.indexOf("Microsoft") != -1;
return (isIE) ? window[movieName] : document[movieName];
[code]....
View 1 Replies
Apr 26, 2010
I am wanting to play a number of movie clips and flash produced video clips. On the main timeline I have a frame for each clip I want to play. In that frame is a flash movie that contains the video that I have embedded onto the timeline for the movie. The filesize for this project is massive and I am struggling to work on the file. I want to be able to play the video files with the playback component in each of the frames where the video was.
[Code]...
View 5 Replies
Feb 16, 2009
I have a cube built in papervision. It has a video on each side. I want the videos to be stopped at the beginning when it appears. I thought I could just use pause on the stream. ncStream2.pause(); no luck. When I do that I just get a black box. There is no black at the beginning of the videos. I do not think the papervision part is really a big deal. It's probably just a straight forward AS3 and video problem.
[Code]....
View 3 Replies
May 1, 2011
Am building a video chat application and i was wondering if there are any native events for the NetStream that fire,that can help in detecting when a remote client starts/stops streaming video over his outgoing stream (NetStream) to which the other client has subscribed over P2P/RTFMP in AS3 ?I maybe able to dispatch custom messages since the two clients are already connected, but i don't want to add the extra overhead.
View 1 Replies
Jun 26, 2009
I'm doing the exercises included in the book "ActionScript 3.0 for Adobe Flash CS4 Professional Classroom in a Book", but I have run into a problem I cannot solve regarding the use of the source property of the FLVPlayback component.
[Code]...
An error like this appears: "NetsStream.Play.StreamNotFound", saying that there is no video file there I also try with absolute paths, with slashes instead of backslashes..., and I just get to get it working if I copy this video file in the same folder in which lesson11_start.fla is, and enter "solution5.f4v".
View 1 Replies
Jun 14, 2006
We have a major project on here at the moment to do with flash menu designs and videos etc. Basicly we have a menu where u click a button and it jumps to a frame. On that frame is the information etc, and a video for that particular subject. What im asking is this: We have put the video in using FLVPlayback and was wondering if it is possbile to have the FLV loop the video.
View 12 Replies
Apr 22, 2009
I have some .mov files I need to play with the flvPlayback component. When I had them in my actionscript it does not work. I've read allot and it says that the component will play mov video but it does not for me.
I am running CS4 with FlashPlayer 10 and AS3.
View 1 Replies
Jul 30, 2009
this one is really doing my head in and any advice (even vague thoughts) would be really great.I have an FLVPlayback component on the stage and I am loading 8 FLVs in to 8 separate video players within it. I then play the first one and when it ends I randomly select which to play next.Everything seems to work fine except that each time I run it one or two of the clips play back with only audio only and no video. It is not the same clip each time but whichever one it is will consistently fail to playback untill I re publish when it chooses a differrent clip to fail on.I am publishing for FP8 from CS4 on a Mac and it fails when I test movie as well as in FF and Safari.
If anyone has any ideas on this at all please shout them out or I am heading for the forrest never to return
View 3 Replies
Apr 7, 2010
I wanna know how to play video in flvplayback in as3. in as2 the method was flvplayback.contentpath=video.flv
but what's in as3?
View 1 Replies
Oct 28, 2011
I try loading my video from a swf file using flvplayback component using the script below
[Code]....
but I notice that the swf file doesnt link the video instead i have to place my video the same directory with the swf file and change to flvPlayback.source = "Listening_to_Community_Voices.flv"; Does that mean the video file im linking must be on the same directory as the swf or did I wrote my code wrongly.?
View 2 Replies
Aug 7, 2009
I have a flash program that loads an external flv dynamically. I first create an empty movie clip then I attach an instance of the FLVPlayback component using Moviclip.attachMovie();. Then i control the FLVPlayback component with AS2. I have a play and pause button, a scrubber, and a loading progress bar. None of these are components. When I publish and preview the file in Flash CS4, Adobe Flash Player 10, and all my internet browsers everything works fine, all the buttons, the multiple functions of the scrubber, and even the loading progress bar.
However when I uploaded all the files from my computer to my company's server and tested it from there, I recieved audio but no video. All of the various controls still worked for the audio but I couldn't see anything on the stage. If I waited for the loading progress bar to complete and then reloaded the external flv then I got video, but the purpose of this program is to stream the video and I cannot have the users waiting for a preloader.
If you want to look at my FLVPlayback code here it is:
_root.createEmptyMovieClip("lesson_mc",-16381);
lesson_mc.attachMovie("FLVPlayback","lesson_video",0);
lesson_mc.lesson_video.contentPath = page.attributes.url;
lesson_mc.lesson_video.autoSize = true;
[code]....
View 4 Replies
Dec 16, 2009
I imported multiple flvplayback videos on my file via the Video Wizard Import. After that I removed all videos except one. But it's still trying to load those old video and the skin of their player when I preload the file. I am sure there's no player on the stage except the one I need. And when I need to play the file, it's working well, the only problem is the extra loading for 6 skins that I don't use anymore and the time to look for 6 videos that are not there. So here're my questions;
1-When you import a video via Wizard, it there a script hidden somewhere that can be found? 2-When you import a flv to the stage, there's a loading bar saying getting metadata. Is there a place to edit or erase this metadata ?
3-Any other ideas of where I could look to find this hidden data or trace or ghost that needs to be remove from the file ?
View 1 Replies
Jul 14, 2010
I'm using the flvPlayback/flvPlaybackCaptioning components.My file works perfectly when I test the movie within Flash.When I publish it,I cannot see any video, even on my own PC.I have the fla, flv and xml files in the same directory.In flvPlayback component,I have skin set to None and I'm using a captionButton and playPauseButton.The source has the flv filename and autoPlay is set to False.In flvPlaybackCaptioning, source has the xml filename and the captionTargetName has the textbox instance.showCaption is set to False. Everything works fine until I insert the captioning elements. The captioning works perfectly when testing.I can't see where I've gone wrong.
View 2 Replies
Sep 7, 2010
Is it possible when publishing a Flash CS4 file to have the Video swf and the Skin swf be in one swf file? I have a Flash CS4 (AS2) file that has a FLVPlayback Component. When I publish or test movie 2 swfs are output. I need only 1 swf as I am then going to insert this 1 swf into a Captivate 4 project. When I insert the video swf by itself into Captivate 4, I do not have a play bar/skin. If it is not possible to publish as one swf, how I can insert the 2 swfs into a Captivate file and get them to work?
View 3 Replies
Jul 27, 2011
i'm trying to embed h264 mp4 video into website using flash cs3 professional.
when i select the source file it's looking for .flv files and not the mp4 file so the mp4's are greyed out.i read a great tutorial using a pc which shows the workaround for being able to see the mp4 files.url...I'm however using a mac and this method of putting an * in the file name box doesn't work on mac.
View 1 Replies
Oct 19, 2011
Is there any way to read cue points from a flv which i load intro a netstream object? I dont want to use a component.
View 1 Replies
Feb 19, 2010
I have developed a video player using Flash 8 Professional and the FLVPlayback component. Recently I have been testing a few 720p .mov files converted to FLV by FFMPEG running on an encoding server. I am noticing that these files do not play back in my video player. It appears that they do not have any audio attached to them but when I play them in Adobe Media Player the audio is there.
Is this due to the FLVPlayback component in Flash 8 not supporting HD videos? When I test locally the video picture plays with no sound but when I run in a browser the video freezes and does not play. The progress bar appears to move as if the video is playing however.
[Code].....
View 2 Replies
Aug 10, 2011
File A has a MovieClip on stage that has a linkage to a class in which I import fl.video.FLVPlayback File B also attempts to import fl.video.FLVPlayback.
File B throws a COMPILE TIME error that it cannot locate the definition for fl.video.FLVPlayback. I'm noticing that my FlashDevelop also offers no syntax highlighting for that line.
Both are exporting for the same version of FlashPlayer (10). Both are being authored on the same platform, the same software (CS4).I have not messed with any Publish settings, other than that File B is associated with a Document Class.
Of interest may be that File A will eventually be loaded into File B, into the context of File B.
View 2 Replies
Dec 11, 2011
I link my mp4 video directly using video.source = "my.mp4" in AS3 and the link is not broken, but then player keeps on loading forever.
View 1 Replies
Nov 9, 2007
I have made a short movie which I intend to loop on the web using Flash CS3. I found setting up the FLVplayback component really easy and currently have the .swf playing my external .flv perfectly. Now I need to figure out how to loop the movie - seamlessly if possible. I found this video tutorial, but it appears I can't add actionscript to the FLVplayback component in CS3, and the parameters bit doesn't seem to have a option for it. I heard elsewhere that the best way to seamlessly loop a movie in Flash is to embed the movie. Is this true? If so, how do I go about doing this?
View 10 Replies
Oct 18, 2009
Look at this code,
// display ContainerFourvar containerFour:MovieClip = new container4();var bjwC = new bjwContainer();var timer6:Timer = new Timer(39000, 1);timer6.addEventListener(TimerEvent.TIMER, displayContainerFour);timer6.start();
function displayContainerFour(e:TimerEvent):void{ addChild(containerFour); containerFour.x = 192.0; containerFour.y = 108.0; TransitionManager.start(containerFour, {type:Photo, direction:Transition.IN, duration:2, easing:
[code]....
I am using As3 to add to the stage dynamically, now what seems to be happening is the video is playing before I add the containerFour - how can I code this, so that the video only begins to play when I add containerFour, and not before it?
View 2 Replies
Jan 6, 2010
i am creating a package, MainTimeLine.as, to extend my main timeline. i use the FLVPlayback component under the package. however, i get the compile error:
1172: Definition fl.video:FLVPlayback could not be found. so i added the "import fl.video.FLVPlayback;" line to my MainTimeLine.as file, but flash gives the above error. now i had this problem when i added this code directly under a frame of the main timeline until i added a FLVPlayback instance to my library. now, i am trying to simply embed all of the code under the MainTimeLine.as file and have the as file encapsulate all of it. but, i still get that error.
so, how do i get flash cs4 to recognize and use the import properly
View 2 Replies
Feb 8, 2010
I've got a video I'd like people to be able to navigate away from in my project, but resume where it left off if they come back to it. I would think I could do this by just saving its current position when they exit that frame as a variable and then using .seek() to go back to that spot if/when they return.
The only problem is that I can't find any script to capture the current position. I tried .time, but it gives me an error.
View 6 Replies
Feb 7, 2010
What is the differences in use of these two objects? Which one should be used for a "Youtube-like" video player with a custom skin and playlist?
View 2 Replies
Sep 9, 2010
Creating a simple video for embedding by importing a video into flash creates a separate swf for the controls. Is there a way to have the controls embedded in the main SWF, so you don't have to worry about paths to the control swf?
View 1 Replies
Nov 18, 2010
Is it possible to use the FLVPlayback class to play an instance of the Video class? I'm loading the video (which is just an audio track with cue points) in using GreenSocks LoaderMax (along with the rest of my assets) and so have various instances of Video. The FLVPlayback class only accepts a String as its' source. Is there any way to hack it to bypass whatever loading it does and just feed it the video directly?
View 1 Replies
Mar 26, 2012
I am working with Playing FLVPlayBack Video. i was wondering about best practice to use buffer time and how exactly buffer behaves while video is in play, pause and stop states. If i set my FLVPlayBack instance buffer time to 30 sec, Is it contiguously keep 30 secs video in buffer. for e.g if video is on 15 sec , then it will be having upto 45 sec stream in buffer, for 25 it will have 55 sec stream , for 1.10 it have 1.40 sec stream and so on.? do it behave same as of in play, in pause and stop states . and if behaves diff. then what is the diff.
View 1 Replies