ActionScript 2.0 :: Clear Flvplayback And Play Movie Again

Dec 18, 2009

I have this code as a preloader for flvplayback and it work ok

[Code]....

I have the flvplayback (flvplayer) inside a movieclip (mcfilm) all this I have in a function so I can easy call it when I need the movie to run. The problem is that it run the first time but if I stop it with a button and want to play it again, nothing happend, it just say loading (the mcladdar show)

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Flvplayback, Rewinding With .seek(0) Getting An Audio Pop - How To Clear Buffer

Sep 28, 2011

I have an flvplayback component on the stage of a parent flash project. One can preview a video that has some text overlaying it that the user entered in a previous scene.  Dynamic cuepoints sync the video with the overlaying text.If the viewer doesn't like the preview they can go back to the previous scene, edit the text, and rewatch/preview the video with the overlaying text to make sure they like it.
 
I'm running into an issue when they stop watching the video preview, they go back to the previous scene and they return to the video preview scene. I stop the video with a .stop() and I rewind it with a .seek(0) but when they return to the video player and rewatch the video there's a brief audio pop. I'm assuming the pop is a bit of video/audio left in the buffer of the flvplayback component.
 
My question is - is there a way or what is the best way to clear the buffer of the flvplayback component when I rewind the video so it can be replayed?Is there a better way to rewind an flvplayback to the beginning other than .stop() & seek(0) so I don't get a audio pop when it's replayed?

View 1 Replies

ActionScript 3.0 :: Play Next In FLVPlayback?

Jul 9, 2009

I'm using the FLVPlayback component to play 4 FLVs.

There are 4 buttons in the swf that can call up each video to start playing. Here's what's on the button 1:

-----
function vid1(e:Event){
vidPlayer.source = "mymoviename.flv"
}
vid1_btn.addEventListener(MouseEvent.CLICK, vid1);
-----

All the controls in the skin (play, stop, pause, etc) are great, except I need to also have a "play next" control.

What type of script to do I need to attach to the "play next" control?

View 1 Replies

ActionScript 3.0 :: FLVPlayback Cannot Play On First Visit

Jul 14, 2009

I have a strange problem that I was hoping someone might resolve. I'm a new visitor to the Flash world from other development platforms, so the language seems pretty straightforward, but I have now spent a week and a half on this one bug.

Basically, I'm trying to play an F4V using an FLVPlayback component.  However, it seems that the video only plays if the f4v is already in the client cache. If the cache is empty, or disabled, then the FLVPlayback component throws an Error 1000, which seems to suggest it's having trouble connecting/pulling the video off the server.  But since it does work on the second visit, then I suspect that it does indeed perform the download -- it just THINKS it can't. [code]...

View 2 Replies

Media Server :: Play Over 5h FLV In FLVPlayBack

Aug 17, 2009

I'm using Flash CS3 Pro. I want to play over 5h FLV video by FLVPlayback. but 4h video -> no problem. 5h video -> seekbar and total time view have BUG. duration : 21117.796totalTime : 4340.615 why return different value??? FLVPlayback have limit of flv??

View 1 Replies

Play Mp3 File Using Flvplayback Component?

Mar 9, 2010

Is there any way that i can load a local mp3 file using flvplayback?

View 2 Replies

ActionScript 3.0 :: Play Video In Flvplayback?

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

ActionScript 3.0 :: Play 2 FLVPlayback In Sync?

Sep 15, 2010

I didn't find any solution in the past discussions, I want to sync two FLVPlayback in the stage.Now I quickly solved with a Countdown of about 10sec;one can choose a project from a ComboBox and the two FLV play when the countdown reaches 1. That's not the right way as they never play in sync the first time..
 
I think a BufferingBar can do the job, detecting the end of the buffer. but I don't know the code to add...
 
This is the code I use with the Countdown: 
 
cb.addEventListener(Event.CHANGE, changeHandler);function changeHandler(event:Event):void {   if(ComboBox(event.target).selectedItem.data != "")

[Code]...

View 15 Replies

Actionscript 3.0 :: FLVPLayback Can't Play Dynamically

Aug 8, 2009

I am building a faq page with flvs for each of the 10 questions. But for some reason the flvs will not load dynamically (with Actionscript). When I load the source from AS and write play(); I can only hear the sound but no video.

The weird thing is that the flvs play ok when i specify the source in the component inspector and don't load them from the AS.

Even weirder, i tried replicating my project on a smaller version to show the problem, just with two buttons and two FLVPlaybacks and this time it worked. But will not work on my page! I am going nuts cause i dont know why it does that! I Mean it should work but it just doesnt![code]...

View 1 Replies

Actionscript 3.0 :: XML And FLVPlayback Component Won't Play

Apr 8, 2010

Video won't play from XML

I have been trying to pull a single random video (.flv) from an XML list to play it using the FLVPlayback component. I managed to get the description from the <desc> tag and the title <vidtitle> tag in the xml file but can't get the flv to play in the player.

I dragged a FLVPlayback component onto the stage and gave it an instance name of "display" but I still cannot get it to work. I get no errors when hitting "control + enter" the video never loads. My code is below.

Code: Select all//Let's load our video classes
import fl.video.*;
import flash.events.Event;
import flash.net.*;

[Code].....

View 1 Replies

IDE :: FLVPlayback Doesn't Play At At (only On Browser)?

Jul 17, 2009

If I double click on the published SWF file (thus opening it with the FlashPlayer 10 executable), the video plays correctly. Nonetheless, if I double click on the published HTML file, there isn't any video played at all. This doesn't happen if I put the files on a webserver, the video plays correctly on the browser.I checked the "source" property of the component, which doesn't have any absolut path (the video file resides on the same folder as the FLA/SWF folder, so the "source" property only has the FLV filename).

View 3 Replies

ActionScript 3.0 :: Will FLVPlayback Component Play MP3s Without FMS?

Sep 29, 2009

Will the FLVPlayback Component (version 2.5.0.15) play an MP3 file without it having to be streamed through a Flash Media Server? All I'm looking for is to place a player into my Flash that plays an MP3 file that's in the same directory as the SWF.

Here's my code... it's pretty simple:
import fl.video.FLVPlayback;
var myMusic:FLVPlayback = new FLVPlayback();
myMusic.source = "mySong.mp3";
myMusic.skin = "SkinOverPlayMute.swf";
myMusic.skinBackgroundColor = 0xCCCCCC;
addChild(myMusic);

View 3 Replies

Media Server :: Path To FLV On FMS To Play In FLVPLayback?

Mar 24, 2011

I have FMS 4 and using AS3, no matter what I do I can't get any of my recorded FLVs to play in FLVPlayback.

Is there somethign I'm supposed to install on FMS to get it to play properly?
 
WHat should  my path be? I've been told that the flv are living in the fms/applications/storyvideos/streams/videos folder.

I've tried every combination of paths I can think of.

View 2 Replies

Professional :: Play H.264 Video Using FLVPlayback Component

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

ActionScript 3.0 :: Graphics Clear() Doesn't Clear Bitmap Data From BeginBitmapFill()?

Jul 30, 2011

I'm working on a game whose background has many layers that each scroll at different speeds.

Inside each layer I have a Sprite, I've started using graphics.beginBitmapFill, but what I've found is that the graphics.clear() function doesn't actually clear the contents set by the previous call to graphics.begin.BitmapFill. Each frame, I adjust the matrix to shift the layer as needed.  Then, I call graphics.clear() and graphics.beginBitmapFill() with the adjusted matrix. Since my layers have alphas in the bitmap, I can see the contents that was drawn the previous frame.

View 3 Replies

ActionScript 1/2 :: Play SHOUTcast Streams Using The FLVPlayback Control?

Feb 22, 2007

Is it possible to play SHOUTcast streams using the FLVPlayback control?

View 2 Replies

Flash :: Use FLVPlayback Class To Play An Instance Of Video?

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

Flash :: Use FlvPlayBack To Play Back And Live Videos?

Nov 19, 2010

I want it to automatically detect if there's a live video,then play live;otherwise play back.

View 2 Replies

Actionscript 3 :: BufferTime For FLVPLayBack - Behaves While Video Is In Play?

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

ActionScript 3.0 :: FLVPlayback Via XML - Play Videos From A XML Based Playlist

Aug 1, 2011

I am trying to play some videos from a XML based playlist. I found this, but it's for AS2: Quote:

[Code]...

The instance is named flv and the XML file flv.xml, what would be the correct way to do this in AS3?

View 9 Replies

ActionScript 2.0 :: FlvPlayback Component Play Next Video After Finished?

Aug 2, 2006

My Challenge is this...To feed up to 5 video references (filepaths) into the SWF which contains the FLVPlayBack component, and have these play in sequence automatically.

Once the first video ends, the next begins...Currently our FLV player takes 1 filepath passed by FlashVars and play it.

First things first... I just want to get the function of having one .flv file play after the first has finsihed... do I need some kind of listener?

View 3 Replies

ActionScript 3.0 :: Performance - Videos Play Slow Using FLVPlayback

Feb 25, 2009

My scene has a video background which scales to the stage size. Then, each section has another video when transitioning in. The problem is that the videos play really slow than they should, very low fps. When there are 2 videos on the stage, it goes even slower. I've tried with embedding videos, using FLVPlayback, wrapping in movieclips, but still the same result. The videos are exported at 30 fps, same rate than the flash movie.

View 3 Replies

Flash 7 :: Play A FMS Stream (live Or On Demand), Either An FLVPlayback Component

Jul 16, 2009

In order to play a FMS stream (live or on demand), either an FLVPlayback component or the Video class is needed.And they require ActionScript 3 and Flash 8 or above.
 
As far as i know , Youtube, Dailymotion and Google Video stream their on demand videos from a FMS, and their players are compatible with Flash 7.
 
How can they achieve this?  If Youtube, Google and Dailymotion do that, i deduce it's possible..
 
I tried to create a Flash 7 application that plays a video coming from FMS, using a MediaDisplay component, but it doesn't work well. Sometimes it shows the video, sometimes not.So i don't think youtube player uses MediaDisplay..

View 7 Replies

Media Server :: Play Recorded Videos Using FLVPlayback Component?

Jan 17, 2011

I recorded videos using fms and i want to play them using FLVPlayback component. I've done some research but i cant find somethinguseful, I tried this code :
 
flvplayback.source = "rtmp://localhost/appname/instancename/video";

View 5 Replies

Media Server :: Set The Flvplayback Properly So That It Can Play Both Live And Recorded Videos?

Nov 19, 2010

I've read the reference here,but it seems to me that I can only make it work with live OR recorded videos.How can I make it work with both live AND recorded videos?

View 7 Replies

ActionScript 2.0 :: On Button Release Clear Current Movie Clip And Bring In New Movie Clip

Feb 21, 2010

I have created a flash website, each button is a movie clip with an invisible button over it containing the following script

on (rollOver) {
_root.mouse_over_profile_btn = true;
}
on (rollOut) {

[Code]....

each page is also a movie clip and on release of a button its played. the problem is that when i press another button to play another movie clip 'page' the old content is still there.

Is there a way of reversing the page transition i have used to bring out the movie clip and then bring in the next movie clip.

View 0 Replies

ActionScript 3.0 :: Use The Standard Adobe FLVPlayback Components And Skins And Be Able To Play Back Files?

Jul 9, 2008

I have been trying for days to write my own custom NCManager class that allows us to connect to a Limelight stream. We have to issue a NetCOnnect.call() that has the command "FCSubscribe" and the stream name. I've written a 100% custom player(url...) (have to register!) but what I want to to resolve that player with the video-on-demand player(url...) into a single Flash project.I want to allow our Graphics guys (aka Flash developers) to be able to use the standard Adobe FLVPlayback components and skins and also be able to p lay back files, streaming content and Limelight content. To this end I thought that writing a custom NCManager class would be the way to go.

I have 99.9% succeeded: my class gets the connectToURL(),connects to Limelight, subscribes and all is well but I am really really stuck now on how to tell the FLVPlayback component that it .can start playing back now that the stream is connected.FLVPlayback and VideoPlayer parts appear to be AS2 and I cannot call the rtmpStatusInfo() function on the VideoPlayer part to tell it that it is good to go.I am so close I can taste it: If I create a NetStream object and play() it, I can hear the content to I know that if I could only get the FLVPlayback / VideoPlayer dynamic duo to playback then the job would be done.

I have attached the code, warts and all in the hope that either somebody has done this before or can tell me what I have misunderstood about the internal state-machine / FSM logistics that VideoPlayer et al implement.By reading the source code and my debugging statements I can see that I have maneuvered it towards the ultimate goal of playback but I don't know how to make that final step.

PS: I *know* that reconnect() is non-functional but if I uncomment the call all it does is go around the loop again; the real problem is I cannot tell the VideoPlayer that it can play (via rtmpStatusInfo) the data etc

PPS: The meta-data related stuff *only* gets called if I uncomment the NetStream code; this was to check that I had a valid playback stream, which I do at that point.

View 13 Replies

ActionScript 2.0 :: Way To Clear All Intervals In Movie With One Command

Nov 11, 2002

i 'd like to know if there is a way to clear all Intervals in a movie with one command.in my current project I use setInterval()very often in different clips and though i cleanly put the corresponding clearInterval() commands in the script I realized, that on slow computers some of them don't get stopped.Which puts more weight on the CPU and sometimes slows down the comp very much.

View 9 Replies

ActionScript 3.0 :: Reloading Movie To Clear Cache?

May 21, 2010

I have a Flash game that runs fine, and if the player loses he can retry by clicking the retry button. For some reason I have listeners from previous scenes that won't go away, or are malfunctioning, when the user hits retry and the game and starts back at frame one in the first scene (the actual game is at scene 2 but the retry takes them to scene 1). Is there a way that I can reload the whole movie so previous data won't show up when the player restarts the game? I am kind of looking for a "refresh movie" script for the .swf file.

View 3 Replies

ActionScript 1/2 :: FLVPlayback: Disabling VolumeBar, Seek, Play/pause, Mute, Fullscreen Buttons?

Feb 15, 2012

Is there a way to disable/enable the buttons in FLVPlayback component? I got a flv files loaded into a fla file and the swf file then loaded onto the main fla file which where I want to disable/enable the FLVPlayback button at certain time.

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved