Restart a FLV playback

Hi all

OK I was everywhere on the web and havn't really found what I need. I've created an interface that plays videos when you click the buttons. Everything works beautifully. I use the FLVplayback component for each video. The customer wants to be able to restart the video button. The scrubber apparently not enough. Y at - it an easy way to start the FLV after he started playing. I just need to restart the video from the beginning. I know there is a skin that does this but not what the customer wants and I noticed that the right arrow of the skin is a little buggy. Anyway, please let me know if there is a simple script, that I can use to restart the Start button (IE "video restart"). I am a complete newbie with actionscript, so I can assume there is a simple solution to my problem.

Thank you in advance for any answers or advice.

Of the below should do what you're after. Some of them you will have to call play() afterwords, according to the current state of the game.

flvPlaybackInstance.seek (0);

flvPlaybackInstance.playHeadTime = 0;

flvPlaybackInstance.playHeadPercentage = 0;

flvPlaybackInstance(flvPlaybackInstance.source) .play;

flvPlaybackInstance.load (flvPlaybackInstance.source);

flvPlaybackInstance.source = flvPlaybackInstance.source;

--

Kenneth Kawamoto

http://www.materiaprima.co.UK/

Tags: Adobe Animate

Similar Questions

  • FLV playback component problem

    Hello world.

    I have problems with the FLV Playback component in Flash Professional CS5. In particular, I have works perfectly under Flash, I published it and yet when I go to insert the SWF file on my Web page using Dreamweaver CS4 the play with all the controls bar disappears. I am a completely free taught novice so I've probably missed something very obvious, but any help would be greatly appreciated because it is now driving me crazy!

    Thanks in advance

    Let yourself be guided by the server.  It is a random test in DW.

  • Start the flv playback component playing mailed paused after n seconds

    I have a component playback flv (vidPlayer) with a set number of landmarks.

    When a cue point is reached the flv playback component stops

    and an externel swf is loaded from the staging. I know that the swf file plays for

    124 seconds. What I would like is for the flv playback component to start

    playing again hence is was suspended at the end of these seconds 124

    [code]

    If (event.info.name == "lit_23") {}

    lit_22.visible = false;

    var Xpos:Number = 94;

    var Ypos:Number = 78;

    var swf:MovieClip;

    var loader: Loader = new Loader();

    Loader.x = Xpos;

    Loader.y = Ypos;

    var defaultSWF:URLRequest = new URLRequest ("colours.swf");

    Loader.Load (defaultSWF);

    addChild (loader);

    component playback FLV stops

    vidPlayer.pause ();

    now start playback position break after 124 seconds

    }

    [/ code]

    Import fl.video.MetadataEvent;

    vidPlayer.addEventListener (MetadataEvent.CUE_POINT, fl_CuePointHandler_3);

    function fl_CuePointHandler_3(event:MetadataEvent):void
    {

    If (event.info.name == "lit_1") {}
    lit_1.Visible = true;
    }
    If (event.info.name == "lit_21") {}
    lit_20.visible = false;
    lit_21.Visible = true;
    }

    If (event.info.name == "lit_23") {}

    var loader: Loader = new Loader();

    Loader.Load (new URLRequest ("smallvideo.swf"));
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, swfLoaded);

    Loader.x = 91;

    Loader.y = 82

    }

    If (event.info.name == "lit_22") {}
    Loader.Visible = false;
    lit_22.Visible = true;
    }

    }

    function swfLoaded(event:Event):void {}

    var loader: Loader = event.target.loader;

    trace ("Loaded")

    MovieClip (loader.content). your_flv_pb_instance_in_smallvideo. addEventListener (Event.COMPLETE, smallVideoFLVCompleteF);
    lit_21.visible = false;
    lit_1.visible = false;
    addChild (loader);
    Loader.x = Xpos;
    Loader.y = Ypos;

    vidPlayer.pause ();
    }

    function smallVideoFLVCompleteF(e:Event):void {}

    vidPlayer.play ();

    }

  • Stop the flv playback when you exit the current image

    I searched countless forums (here and other sites) and have yet to find the solution I'm looking for (if all goes well, if it exists).

    I have an flv file is loaded by the flv playback component.  Everything works except that the video (and audio) continue to play even after you leave the frame on which is the instance of the component.

    I found a solution that stops the audio using: SoundMixer.stopAll ();

    But the video is still streaming and affect the performance of the site.

    I want to stop the audio and video, which means using the: playbackInstance.stop ();

    However, all of the solutions I've met basically say to add the stop function to all buttons that potentially could borrow the framework with the instance of reading.

    This seems completely tedious and bulky, especially because I have visible navigation buttons from my 'main' swf and MULTIPLE instances of reading I have are found within a swf loaded with its own navigation as well.  By the nature of the design, instances of reading will not always be on the scene calling references will probably trigger errors.  Of course, there are ways to do this with conditional statements, etc.  But it just seems like a waste of time.

    Is there a simple way to call playbackInstance.stop () to navigate away from the current image?  An event to listen to?  I forget one obvious answer?

    I really want to think that there is a more elegant solution than adding so much in bulk to each eventHandler for button on my site.

    Add an event listener for the removedfromstage event.

  • Auto/hide with Flv playback doesn't work with javascript lightbox, need help?

    Hello world

    I've created a few swf loading an flv file in flv playback and check on the parameter auto/hide. When I test the movie, it works fine. BUT, in my site, I put these swf files in Lightbox (javascript based) and when the mouse passes over the flash video, it shows the Player skin and when the mouse goes off, the Player skin stays on the video! Why? Does anyone has an idea on how to force the parameter auto/hide in this case?
    Thanks for your help

    Orlenka

    Found this post while searching for an answer, but not found much elsewhere so I will post my solution quick and ugly here. I'm sure it can be improved, but I didn't have much more than 5 minutes. Note: .visible affecting false just finished what causes the transition from autohide to happen again and again, to remedy this I'm just temporarily spend the whole sprite off the screen.

    (AS3, using the CS5 component... Note that 'player' is the FLVPlayback instance):

    # force "Auto hide" what inactive mouse

    var: timer = new Timer(1500, 0);

    timer.addEventListener (TimerEvent.TIMER, onTimer);

    Timer.Start ();

    var skinSprite:DisplayObject;

    var prevMouseX:Number;

    var prevMouseY:Number;

    function onTimer(e:TimerEvent):void {}

    get skinSprite if have not already

    {if(!skinSprite)}

    var child: DisplayObject;

    for (var i: Number = 0; i< player.numchildren;="" i++)="">

    child = player.getChildAt (i);

    If (i == 2) {//this is the skinSprite

    child = skinSprite;

    }

    }

    }

    Check if the mouse has not moved since the last event of the timer

    If (skinSprite & mouseX == prevMouseX & mouseY == prevMouseY) {}

    skinSprite.y = - 1000;

    }

    prevMouseX = mouseX;

    prevMouseY = mouseY;

    }

    stage.addEventListener (MouseEvent.MOUSE_MOVE, stage_onMouseMove);

    function stage_onMouseMove(e:MouseEvent):void {}

    {if (skinSprite)}

    skinSprite.y = 0;

    }

    }

  • Flash FLV Playback component - problem with swf

    Hope someone can point me in the right direction here - try just the FLV Playback component to replace a couple of short videos on a Web site with a version of flash.

    I've got the SWF works OK - when I saw in HTML it everything works fine.

    However, on the page I have downloaded on my site, it is not and looks like:

    link here

    Any ideas why not?

    I checked, and html, flv and swf files are all downloaded, as is the AC_RunActiveContent.js file.

    See you soon.

    Spotted it - didn't know there was a separate .swf for controls.

  • Possibility of fade the FLV Playback component?

    Is it possible to fade a FLV Playback component? I tried to put it inside a clip, then using the Transition fade in actionscript, but no luck? Is there another way to make the video look like it disappears without using ._visible?

    Thank you


    Julia

    Mind - I got it - never forgot to import the classes from Transition... Sorry...

  • FLV Playback component

    Fast forward and rewind on the FLV Playback components buttons do not work as normal. If you have tried to use them, you will notice that they meet a click rather than an event mouse_down event.

    By taking a part of the skins, I found that the fast forward clip is forward_mc.

    How to create an event listener to the buttons inside the FLV Playback component?

    If the instance of my FLV Playback component is called 'film', how it access?

    I tried this, but it does not work:

    This.Movie.forward_mc.addEventListener (MouseEvent.MOUSE_DOWN, fastForwardDown);

    function fastForwardDown(e:Event):void {}
    FastForward film
    }

    Thank you

    OK... Thank you. Here's what seems to work.

    If (e.target.name == 'forward_mc') {}
    do what you must
    }

  • Restarted automatically during playback of video file.

    While playing a playback of a video file of 700 MB iam or over some files, my pc will be automatically restarted.
    Card Intel (R) Celeron (R) CPU - mother
    2.40 GHz with 1 GB of RAM.

    OS - Windows XP Professional Version 2002 Service pack 3

    While playing a playback of a video file of 700 MB iam or over some files, my pc will be automatically restarted.
    Card Intel (R) Celeron (R) CPU - mother
    2.40 GHz with 1 GB of RAM.

    OS - Windows XP Professional Version 2002 Service pack 3

    =======================================
    The video may be time... maybe your system's CPU overheating.

    The following links offer a few ideas:

    Detect and repair a computer overheating
    http://www.computertooslow.com/overheating-computer.asp

    Clean your computer tower
    http://www.computertooslow.com/clean-computer.asp

    How to clean the inside of a computer case
    http://www.technibble.com/how-to-clean-the-inside-of-a-computer-case/

    Why my Toshiba laptop suddenly stops by itself without warning?
    http://www.laptoprepair101.com/laptop/2006/01/04/Toshiba-laptop-overheating/

    How to stop laptop overheating problems
    http://www.computer-Adviser.com/stop-laptop-overheating.html

    Laptop overheating problems - the easy cure
    http://EzineArticles.com/?laptop-overheating-problems---the-easy-cure&ID=1269144

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Flash FLV Playback continues when I change of scene

    Hi all

    I really need your help!

    I create a flash program where certain scenes have FLV players playing different videos.

    They all work very well, stopping and playing etc.

    However when I leave the stage by clicking on my "home" button, the video stops, but the outline of the player remains standing in the new scene!

    my code is reading;

    Stop();
    button_24.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_98);

    function fl_ClickToGoToScene_98(event:MouseEvent):void
    {
    MovieClip (this.root) .gotoAndPlay (1, "catch-up");
    friends_vidPlayer.stop ();
    SoundMixer.stopAll ();
    }

    button_25.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_49);

    function fl_ClickToGoToScene_49(event:MouseEvent):void
    {
    MovieClip (this.root) .gotoAndPlay (1, "home");
    friends_vidPlayer.stop ();

    }

    Is there a way to tell playback FLV to 'hide' or disappear?

    I tried most of the discussions and found nothing! Help, please!

    Thanks in advance xxx

    :

    Stop();
    button_24.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_98);

    function fl_ClickToGoToScene_98(event:MouseEvent):void
    {

    removeChild (friends_vidPlayer)

    friends_vidPlayer.stop ();

    MovieClip (this.root) .gotoAndPlay (1, "catch-up");
    }

    button_25.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_49);

    function fl_ClickToGoToScene_49(event:MouseEvent):void
    {

    removeChild (friends_vidPlayer)

    friends_vidPlayer.stop ();

    MovieClip (this.root) .gotoAndPlay (1, "home");

    }

  • FLV Playback CUE Points Sub Panel in the missing properties panel?

    So, anyone knows how we can add cue points to FLV using Flash CC reading. Thus, using Flash CS6 if you import a video of your internship (file-> Import-> import video) component FLVPlayback is added to your step. If you cilck component FLVPlayback the POINTS of REFERENCE under Panel's niche in the Panel properties like this:

    cuePoints_CS6.PNG

    However, if you click on the FLVPlayback instance in Flash CC, you get nothing. HOWEVER, please note that it shows that the FLV file contains cuepoints (it was an existing CS6 file I added the cuepoints already). But since the Panel of sup of POINTS of REFERENCE does not exist, I can't edit them.

    cuePoints_CC.PNG

    Thanks for your help!

    Landmarks Panel is deprecated since Flash CC, but you can make use of Action-script Cue points to your video into CC to animate.

    See the benchmarks AS section in this document: Adobe Flash Professional CS5 * landmarks of use

    Adobe ActionScript 3.0 * use cue points

  • Is there anyway to incorporate or to hide a file of FLV playback interface?

    We are developing a small Flash application to display the ability of our company. This application is stored on a small USB key that we give to our potential customers. When the USB key is available, users will see two folders 'Media' and 'other '. and a SWF file called 'Start '. There are; However, a single file over that displays: the interface/skin file that we used for our videos FLV (titled "SkinUnderPlaySeekStop.swf"). If this file is not included in the same location as the main SWF, the interface/skin does not appear on the video.

    We would like to both files and the main SWF to display on the root of the USB stick. Is there anyway to move the interface/skin file in another folder (for example, the 'other') and call backward from that location in the original FLA file?

    Thanks in advance for any response.

    Yes, you can place the skin in any folder.  just designate the property skin of your component to the path/skinswfname.swf where path is relative to the html integration (if you use an html file).

  • on the end of flv playback to go to...

    Hello

    I am in the final stages of the construction of my new web site:

    http://gggraphic.com

    On most of the pages in the portfolio, there is a video 'Comment' link (top-right)

    Each of the comments are called by flv

    for example:

    myMCL.loadClip ("http://www.gggraphic.com/new2/new2_flash/new2_brand3.swf", 45 ');

    Once the video is done playing, it fades to black.

    I really want the flv to trigger an event to send the playhead to another frame and load another swf.

    I could use a pause command and let the hour main line break so many milliseconds, then proceed, but it is not how long it takes each viewer to download the video and watch it.

    A handler at the end of the flv would be better.

    Can someone tell me the easiest way to do this?

    I use AS2

    Thank you in advance.

    ggaarde

    You are welcome.

    p.s. If your are still able, please mark this thread as answered.

  • How do you define the size of a FLV Playback component?

    Here is my code that plays the video:

    Fl.video import. *;

    var myVideo:FLVPlayback = new FLVPlayback();
    myVideo.source = "video.flv";
    }

    addChild (myVideo);

    How to set the size of the video? I tried "myVideo.videoWidth = 400;" but it gives me an error.

    Thank you!

    If you are the name of the flvplayback component is myVideo, use:

    myVideo.setSize (444,400);  444 corresponding to the width and 400 is the height.

  • external FLV playback on the web

    When I try to play this script on the web the flv file does NOT play.

    However, when I run the script on my computer the flv file plays very well.

    Here is the script...

    var my_video:Video; my_video is a Video object on the stage
    var my_nc:NetConnection = new NetConnection();
    my_nc. Connect (null);
    var my_ns:NetStream = new NetStream (my_nc);
    my_video.attachVideo (my_ns);

    my_ns. Play ("MYVideo.flv");

    Thanks Lon! It is as you say... the necessary Mime Type on my web site. Sorry for all the trouble... I learned some debugging with you through the exercise ideas. Thanks again for your time.

    Bob Achgill
    www.GodandDeaf.org/hhr
    The free world literacy program

Maybe you are looking for

  • Foxfire keeps blocking my Yahoo toolbar; have reinstalled several times

    How can I keep Foxfire to block my Yahoo toolbar. I reinstalled SEVERAL times, but it keeps blocking as soon as I close Foxfire. I tried all the options listed in the other questions and answers, but they do not solve the problem. Whenever I have dow

  • 6520: scan to computer currently unavailable

    I have a Photosmart6520.  I constantly get the message 'Scan to computer currently unavailable. "  I get the message when I'm put in place through the USB and wireless.  In addition, the message box indicates that I won't be able to "run a scan from

  • Change the size of the image

    When you try to send large images by e-mail, he advises that e-mail is very large, enamel will be sitting in the Outbox before moving on to air currents and so I am unable to send e-mail to the new recipient. I tried to compress the file zipping it b

  • When I export my file in jpeg format (so I can send to the printer) the picture is too small.

    not sure if it of the settings or how to get the right size for printing online.  at present it shows really small on the site of the printing company to the top

  • Problem disabling CS3

    Hello, I have a copy and a serial number for Adobe CS3 Master Collection extended.When I try to run Photoshop on my new computer, it says I have too many activations.I'm going to my old computer with Photoshop CS3 installed to disable.There is, howev