Sitemap

Amicuk Programming Answers

Detect the end of flvplayback

-0001-11-30   Views:1

Advertisement

i have an flvplayback component on stage, named the instance flvPlayer and added this code to frame 1, so a video loads in it. flvPlayer.source = "clip1.flv"; the videos plays from the local folder perfectly. I need a code that when the video en

i have an flvplayback component on stage, named the instance flvPlayer and added this code to frame 1, so a video loads in it.
flvPlayer.source = "clip1.flv";
the videos plays from the local folder perfectly.
I need a code that when the video ends, it jumps and stop to frame 1 of scene2.
something like:
scene 1, Frame 1:
stop();
flvPlayer.source = "clip1.flv";
// code for detecting the end of the video and jumping
when flvPlayer completed
    MovieClip(this.root).gotoAndStop(1, "Scene 2");

The replay answer
Advertisement
i have "Scene 1" and "Scene 2".
i have the flvPlayback component on the stage of scene 1. i chose flvPlayer for the instance name.
and added this code to frame 1 of scene 1:
stop();
flvPlayer.source = "clip1.flv";
flvPlayer.addEventListener(VideoEvent.COMPLETE, completeHandler);
function completeHandler(event:VideoEvent):void
    MovieClip(this.root).gotoAndStop(1, "Scene 2");
and i have scene 2 with a stop action on it's 1st frame.
when i try to test the file, i get this error message in compile error section:

Go to See the other 5 answers

Detect the end of flvplayback

Category:DefaultRelease time:-0001-11-30Views:130

i have an flvplayback component on stage, named the instance flvPlayer and added this code to frame 1, so a video loads in it. flvPlayer.source = "clip1.flv"; the videos plays from the local folder perfectly. I need a code that when the video en[More]

AS3 - 1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place; 2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true - ActionScript 3 - flash cs3 cs4

Category:DefaultRelease time:-0001-11-30Views:130

Hi folks, Ronny's here again on forums, having particularly 2 (two) questions/problems to resolve: 1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place 2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLiv[More]

FLVPlayback Bandwidth Detection??

Category:DefaultRelease time:-0001-11-30Views:130

I've searched the web and found very little on bandwidth detection for FLVPlayback components UNLESS it's in relation to a streaming server. Is there no efficient way to accomplish this with a regular server and a few FLVs? The documentation is reall[More]

FLVPlayback Memory Leak in Flash CS3

Category:DefaultRelease time:-0001-11-30Views:130

Hi There, I' making a flash file with AS2 in Flash CS3. I put a FlVPlayback in stage and let it load a couple of FLV files from my local HDD and playing continuously. I use "addEventListener" to check the current running flash movie is completed[More]

AS3 - Refresh FLVPlayBack component!

Category:DefaultRelease time:-0001-11-30Views:130

Hey Guys, I am working on AS3 project using Flash CS3. I have to display some videos using FLVPlayBack component. I am using the same component instance to display videos but when a new video is loaded the max duration property does not updates and h[More]

Addeventlistener for FLVPlayback VideoError

Category:DefaultRelease time:-0001-11-30Views:130

Hello I am really stuck on finding a solution to detect when a connection problem is present on the FLVPlayback component: If I try the following: V1.addEventListener (VideoError.NO_CONNECTION, sourceFailed); function sourceFailed (e:VideoError):void[More]

Bandwidth Detection + Limelight in AS3

Category:DefaultRelease time:-0001-11-30Views:130

I used the code from this post here: this post Overall, it works well! However, the FLVPlayback object never seems to know the bandwidth. Neither of these work: vid.bandwidth vid.ncMgr.bandwidth They both return NaN. Is there a command I need to add[More]

FLVPlayback dynamic buffering

Category:DefaultRelease time:-0001-11-30Views:130

This is a multi-part request. I'm looking for a way to dynamically buffer progressive video using the AS3 FLVPlayback component. I am doing bandwidth detection using a SMIL file. I would like to set buffer via the clients bandwidth. I do not have FMS[More]

Flvplayback + fullscreen projector

Category:DefaultRelease time:-0001-11-30Views:130

is there anyway to have a projector ALWAYS fullscreen, and use an flvplayback  component with fullscreen button at the same time? it seems that they're somehow incompatible. if i have multiple instances of an flvplayback component on different scenes[More]

Windows no longer detecting my Audigy 4?(Non-P

Category:DefaultRelease time:2015-10-11Views:130

Hey all. I've had my Audigy 4 (non-Pro) installed and working super for about 50 days, but it started giving me a weird problem. Windows was no longer detecting the card! It was weird. DX Diag, programs like EVEREST... they all report no sound card w[More]

IPod Touch/Phone 4gens No Longer Detected in WINDOWS MY COMPUTER but OK in iTunes

Category:DefaultRelease time:2015-10-11Views:130

Since I have not found help online regarding the above situation I'm looking for help accordingly.   For most folks it's iTunes not detecting i-Devices, but my situation is unique. It started last night after I was on the phone for hours with Norton[More]

Hot
dear friends How can we see the report on the basis of material charactersctics report for viewing stocks at a particular plant, if so help me with transaction th anksHI,    Try this t-code RWBE Regards GKRead other 2 answers [More]
Hi, If the source structure is <bookstore>   <books>      <author>      <title>      <subject>   </books> </bookstore> And in the target structure i need to copy all the fields below <books> node in to anoth [More]
Hi , I recently purchased a MacBook Pro with retina display , I'm new to the " Mac world " and intend to purchase and install " Microsoft windows " using boot camp assistant , is it better to install " Windows 7 " or " W [More]
Dear All We have Placed P.O. nu. XXXXXX DT 01.08.2008, The U.O.M in P.O. is NOS, but the vendor has supplied the material in U.O.M. KG, now Stores has received the Material and prepared the GRN on NOS basis and also the material received has been Dis [More]
hi, I must create a picture (a connected graph exactly) with points and arrows stored somehow on db tables, then display it on a form (Best of all would be the possibility to create and modify the graph in place). I haven't any idea how to handle thi [More]
A little over a week ago I switched from my LG G2 that had a unlimited data plan over to my old Galaxy Nexus. I switched phones because I was worried I was going to damage my G2  and needed something I wouldn't mind breaking. However now that I want [More]
I'm unable to enroll a set of iPads in DEP using their serial numbers. I've previously entered in 80 other devices this way, but part of this set is giving me errors "Not_Accessible" in the error file spreadsheet. My serial numbers are correct a [More]
Hello, any help at all greatly appreciated. I need a dead-certain way of playing sounds with my java application. Java media player doesn't seem to be working with sound files with a duration of longer than 30 seconds. I need a way of accessing the w [More]
I've had some terrible crashing in InDesign CS6 (and Acrobat). At least 2-3 times per day. When InDesign crashes, I lose my preferences and some of my workspace settings. Any fix for this? Any fix for the crashing? It's inconsistent on when it crashe [More]
How is the electrical polarity of male jack cigarette charger?I'll forgo the obvious off color jokes But the question really doesn't makes sense. What is it you are trying todo?Read other 6 answers [More]