How to loop FLV video?

Status:
- I imported an AVI video clip to Flash converting it to FLV
- I published the project
- I put the files on my web server
- It automatically starts playing when you go to the web page
Question:
How do I make the clip loop?
I've not done much Flash and no Action Script - so the simpler the better
Thanks for any help.
Details:
(that may not be necessary to help me )
- I wrote no Action Script to do this...
- just imported/converted the video then published from Flash and them put on web server
- Running Flash CS3 on PC with XP
- I did Google this and found this how-to http://www.communitymx.com/content/article.cfm?cid=984BA
But I can't find their download sample
And, they say click on Frame-1 and press F9 then put code snippit in after line 7
But, I see no Action Script when I click on Frame 1 and press F9... a window opens but no code appears...just a long menu on the left.
Thanks again for any help.

Given your Code:
import fl.video.VideoEvent;
flv.addEventListener(VideoEvent.COMPLETE,videoCompleteF);
function videoCompleteF(e:Event){
flv.seekSeconds(0);
flv.play();
When you say use "my name instead of flv in the code" do you mean use the name of my project or the name of my flv video file?
My "project" is named zzz so I have these files...
zzz.fla
zzz.html
zzz.swf
SkinUnderAll.swf
MyVid.flv
AC_RunActiveContent.js
So If I used the project name instead of flv in your code I would get...
import zzz.video.VideoEvent;
zzz.addEventListener(VideoEvent.COMPLETE,videoCompleteF);
function videoCompleteF(e:Event){
zzz.seekSeconds(0);
zzz.play();
Is this correct?
Thanks again kglad !!

Similar Messages

  • How to loop a video on my iPhone

    how to loop a video on my iphone

    Firstly you need to find out your operators supports call transfer, then you need to obtain the call transfer short code.  For example for Vodafone UK with OneNetExpress, the code is '4'
    To transfer a call using iPhone is quite longwinded but this is the process:
    Create a contact called 'Transfer' and store the operator code e.g '4' as the number.
    When you are on a call that you wish to transfer you first need to call your recipient and tell them you have a call for them.  Then go back into your contacts and call your 'transfer' contact.  This will then hand the call over and you can disconnect.

  • Need advice/guidance on how to export .FLV videos for my website.

    Can anyone help me?
    I am trying to embbed a .swf/.flv video into my website,
    using dreamweaver and flash cs4. But when i do so, and i load the
    video, the .FLV playback componet wont load or the browser dosent
    even try to load the data at all, it just plays the video. So users
    cant mute, have volum control, pause, stop or anything. Can someone
    please help me? i looked all over the net for 2 days and cant find
    a single turtorial or anything. I know alot of website use .FLV but
    how? and how do you export it?

    You need three parts for the flv playback: the swf, the flv,
    and the video player skin swf. If you create the flv from your
    Flash movie by importing the original video, Flash should make all
    of those parts for you. Upload each of these files to your server
    and the file should play as expected.
    Can you describe in more detail what you are doing that may
    be different?

  • How to loop a video?

    What's the best way loop a video so it will replay for the duration of a trade show? Have an iPad 6.1.3, Samsung Smart 5500 TV, and an iphone 4S. Can I load the movie in the iphone to play, and how do I get it to loop? Thanks in advance.

    Hi michael,
    If you aren't able to get the looping option to work, here's another option...
    There's an app that will do it for you… and its free!
    LOOPYLOOPY
    https://itunes.apple.com/us/app/loopyloopy/id435457141?mt=8
    First connect your iPad to your computer. Open iTunes. Select your iPad in iTunes, and click the Apps tab. At the bottom you'll see File Sharing. Select LOOPY and click the "Add..." button at the bottom of the LOOPY documents window. Add the movie. Click the Sync button in the lower right corner. Open LOOPY on your iPad. Tap the Menu button in the lower right and select your movie.
    There are some other apps (paid) that will do it for you like VideoLoop Playerhttps://itunes.apple.com/us/app/videoloop-player/id432855782?mt=8 and LoopVideoPlayer https://itunes.apple.com/us/app/loopvideoplayer-video-loop/id398897303?mt=8 so if LOOPYLOOPY isn't right for you then you could try the other two.
    Hope this helps!
    ~Joe

  • How to play .flv videos on N900

    I need to know, how to play .flv (flash videos) on N900. Phone's media player doesnt support .flv format.
    plz help if somone knows......
    thanx.

    install mplayer and kmplayer from the devels, than you can play .flv videos with kmplayer easily (after you set the video player in kmplayer to mplayer from the settings )
    Reality is wrong....dreams are for real... 2pac .
    don't forget to hit that green kudos

  • How to play .flv video

    My friend successfully downloads youtube videos to play them later - using activity window... this part I've done - downloaded and now I am supposed to change the extension of that file to... .flv if I remember it well. But how does he get it to play afterwards? I try to open it and nothing happens but flash player opens it's blank window - doesn't quicktime play flash videos? help! :O

    Downlaod VLC.
    http://www.versiontracker.com/dyn/moreinfo/macosx/14738
    I use CosmoPod to download YouTube videos. It converts them to Quicktime to be played back on an iPod/iPhone all in one step. It really works great.
    http://www.cocoamug.com/cosmopod/
    -Bmer
    Mac Owners Support Group - Join us @ MacOSG.com
      Mac611 Mobile Mac Support - about.Mac611.com
       iTunes:MacOSG Podcast | YouTube.MacOSG.com
                       An Apple User Group 
    Have an iPhone or iPod touch? Enter Mac611.com in Safari on it for 'mobile Mac support.'
    Note: I receive no compensation for product endorsements.

  • How to loop FMR video when used as background.

    Captivate 8.0.1.242 - Windows 7 - 64 bit - swf format.
    I have few FMR videos created through software simulations. I'm have a voice over which explains about them and other details. The audio is around 15 seconds long and the FMR is barely 2 seconds long. Hence, I would like to loop the FMR until I click a button to proceed to the next slide. Is this possible?

    Lilybiri It is the drag and drop movements. I was trying to not say drag and drop as it might create confusion with the drag and drop interactions. So how do I loop this FMR where the drag and drop is repeated again and again while my TTS (text to speech) explains why and so on.

  • HT3775 how to open .flv videos

    Have a movie that is in .flv format, and quick time player can not play it. What can I do to play this video? Is there a way to change format so that I can watch with quick time or is there another video viewing soft wear i could download.

    VideoLAN - Download official VLC media player for Mac OS X

  • How to create "transition" while FLV Videos load before and during "chaining" or "looping"

    The Status:
    OK, I now have Action Script 3 that will work for chaining FLV videos... or Looping an FLV video.
    But when one video ends there is a short pause before the next one loads and starts... the progress bar for the Flash Player displays diagional green lines... and it is simply not a smooth transistion.
    This happens when chaining or when looping.
    And, even though I'm doing a progressive download... where the video starts very quickly... and plays while it downloads... there is a short delay at the start. That is not as noticable as the break between videos or when looping back to replay the same video.
    The Question:
    Is there a way to create a visual transistion... say a rotating object... or something to keep the motion/action going during that short interval?
    I've seen something like this before... like two (broken line) circles rotating in opposit directions... or something.
    It show the "busy" status or whatever I guess.
    Thanks for any help.

    That depends on how you're loading your videos. Assuming you're using a loader object, you would add/show and remove/hide this
    animation while you're waiting for the load of the video to complete. If you're loading the file(s) directly into a FLVPlayback object then you'll want to do this:
    import lash.events.VideoEvent;
    FLVPlaybackObject.addEventListener(VideoEvent.bufferingStateEntered, showBufferState);
    FLVPlaybackObject.addEventListener(VideoEvent.playingStateEntered, clearBufferAnimation);
    function showBufferState(e:VideoEvent):void
         //Do your busy animation here
    function clearBufferAnimation(e:VideoEvent):void
         //Hide/stop your busy animation here
    However, I may be all wrong about your methods. Let me know if this works or if you need anymore help. Thanks,
    -Jesse

  • How to loop to a certain frame with an embedded video flv

    Hi everyone,
    I've searched the internet high and low but can't seem to find an answer to my problem. I have an flv video file that I've imported into Flash CS5 project as an embedded movie, because graphic and movie clip both produced still images. I want to embed the final product onto my website, and have the video autostart in the beginning, play all the way through, and then go back to frame 40 or so and loop continuosly from there. I've tried selecting the final frame and applying the instancename.gotoandplay (40); code but it isn't working. I read that this only works on keyframes, so I tried making the final frame a keyframe but because it is an flv file for some reason it isn't allowing me to do that. I'm a newbie, any help is appreciated.
    Dom

    A second option is to use a NetStream video play. This is a much more powerful and versatile way to control video.
    Looping back to any point in the video is very easy.
    All it takes to get started with NetSteam is to go to the Library panel top bar, in the far right is a tiny menu icon....click and open it, choose new video, actionscript controlled. A video (icon) will appear in the Library.
    Drag the video unto the stage, position and set dimensions as needed. Give it an instance name of "video_screen".
    All you need now is a little actionscript:
    stop();
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    video_screen.attachVideo(ns);
    /* Name of your video, with correct path, goes here */
    ns.play("video1.flv");
    the example path assumes that the video file is named "video1.flv" and is in the same folder as the Web page... edit both as needed.
    Test at this point to insure it's working.
    Now to loop add this to the actionscript:
    ns.onStatus = function(info) {
      if(info.code == "NetStream.Play.Stop") {
      trace("Video complete")
        ns.seek(60);
      ns.play(); 
    This example will trace "Video complete" at the end of the video and then "seek" back to 60 seconds into the video and "play" again from that point.
    While it doesn't seek to a frame, you can figure out what time corresponds and use that.
    If you are interested in trying this method, I'd suggest you set up a new, blank Flash doc and test on there. then exact size and placement is no issue. Just get the video playing and looping. Then implement in the real project.
    Best wishes,
    Adninjastrator

  • How do I repeat loop a video file from iPod Touch to Apple TV ?

    I have an iPod Touch that is a few years old but running the latest software update.  I want to loop a video to then play through Apple TV onto 2 panels at the front of our shop.  I have saved the file as a video and Music Video (using Get Info etc) but neither version in the iPod touch will supply the repeat function - it works fine from my MacBook Pro but I cannot leave this in the shop overnight.  Any assistance would be greatly appreciated - evern if a third party app that actually works.  Thanks in advance, Shaun.

    This worked on older iOSs an may still work
    How to make a video repeat on iPod?: Apple Support Communities

  • Hi, I uploaded some flv videos to my blog and can see it fine on my G5, my the videos will not play in Safari on my iPhone iOS4. Anyone know how to fix this?

    Hi, I uploaded some flv videos to my blog and can see it fine on my G5, my the videos will not play in Safari on my iPhone iOS4. Anyone know how to fix this?

    I've also tried m4v and avi files. Is there another file format that will work?

  • How to load and display the external flv video files in dynamicly and the how to control the flv fil

    How to load and display the external flv video files in dynamicly using AS 3.0
    and  How to control the flv file  add the play paus button and add seekbar.
    I have using to load the flv file following code
    var flvPlaceHolder1:MovieClip = new MovieClip();
    var vid1:Video = new Video(734, 408);
    flvPlaceHolder1.addChild(vid1);
    addChild(flvPlaceHolder1);
    flvPlaceHolder1.x = 1059;
    flvPlaceHolder1.y = 152;
    var nc1:NetConnection = new NetConnection();
    nc1.connect(null);
    var ns1:NetStream = new NetStream(nc1);
    vid1.attachNetStream(ns1);
    var listener1:Object = new Object();
    listener1.onMetaData = function(evt:Object):void {};
    ns1.client = listener1;
    ns1.play("GV-1600 TURNING.flv");
    ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
    function statusChanged1(ns1:NetStatusEvent):void
             trace(ns1.info.code);
            if (ns1.info.code == 'NetStream.Buffer.Empty')
                 trace('the video has ended');
                 removeChild(flvPlaceHolder1);
                 //trace('removeChild');
                gotoAndPlay(1786);
    then how to add the play,paus ,full screen button    and   seekbar,volumebar.

    I have to Create the flash presentation for our company product
    In this presentation the left  side the text animation are displayed then right side the our product video is displayed.
    In this presentation i need the following option :
    1, The first product video and animation is finished then the next product is played
    2, then the video displayed  (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
    3, then the playing video i control  it play, stop, paus button and volume bar, seek bar.
    4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
    I have finished first two steps 1 and 2
    the following are the screen short and code:-
    code :-
    var count=0;
    var flvPlaceHolder2:MovieClip = new MovieClip();   
    var vid2:Video = new Video(734, 408);
    flvPlaceHolder2.addChild(vid2);
    addChild(flvPlaceHolder2);
    flvPlaceHolder2.x = 1059;
    flvPlaceHolder2.y = 152;
    var nc2:NetConnection = new NetConnection();
    nc2.connect(null);
    var ns2:NetStream = new NetStream(nc2);
    vid2.attachNetStream(ns2);
    var listener2:Object = new Object();
    listener2.onMetaData = function(evt:Object):void {};
    ns2.client = listener2;
    ns2.play("GS-4000.flv");
    this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
    function BtnFadeIn2(event:Event):void
        if (this.currentFrame == 387)
            /*flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            trace('Screen size is changed');*/
            if(count==0)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
            count++;
    ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
    function statusChanged2(ns2:NetStatusEvent):void
        trace(ns2.info.code);
        if (ns2.info.code == 'NetStream.Buffer.Empty')
                trace('the video has ended');
                 removeChild(flvPlaceHolder2);
                 //trace('removeChild');
                gotoAndPlay(433);
    flvPlaceHolder2.buttonMode=true;
    flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
    function home2(e:MouseEvent):void
        if(vid2.width==734 && vid2.height==408)
            flvPlaceHolder2.x = 30;
            flvPlaceHolder2.y = 140;
            vid2.width=1800;
            vid2.height=800;
        else
            flvPlaceHolder2.x = 1059;
            flvPlaceHolder2.y = 152;
            vid2.width=734;
            vid2.height=408;

  • How to embed Flash .flv video?

    Hello guys,
    I am wondering, is there any way how to embed Flash video onto my web page?
    And regarding QT video template on iWeb's Movie page, can I drag any kind of QT ? Like H.264 QT for example, or is it just for Mpeg2 QT?
    Thank you so much for any advise.

    What is your video codec you are working with? NTSC (and PAL) DV is about 13 gigs/hr uncompressed. When you export your QT movie from your editing application and convert the file to flv you are compressing the video at that time with a determined bit rate and video dimension. quality and file size comes down to math. File size = bit rate x movie length. Quality is bit rate in relation to dimension. Surprisingly enough the recommended video encoder for flv is Flash Video Encoder application that comes with Flash. Sorenson Squeeze is arguably the best flv video encoder. Visual Hub is not recommended if quality and efficiency is desired. Flash Player is a browser plug-in that that allows web visitors to view Flash videos on your website from their web browse. Most already have Flash player installed and you can insert a script that checks to see if the visitor has Flash player installed and if it doesn't a window will appear informing the visitor that they are required to instal the Flash Player in order to view Flash content on your website. A URL is also provided to direct the visitor to the Flash Player download page. Insert this script into the <head></head> of your site:
    <script type="text/javascript">
    function MM_CheckFlashVersion(reqVerStr,msg){
    with(navigator){
    var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){
    var flashVer = -1;
    if (plugins && plugins.length > 0){
    var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
    desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
    if (desc == "") flashVer = -1;
    else{
    var descArr = desc.split(" ");
    var tempArrMajor = descArr[2].split(".");
    var verMajor = tempArrMajor[0];
    var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
    var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
    flashVer = parseFloat(verMajor + "." + verMinor);
    // WebTV has Flash Player 4 or lower -- too low for video
    else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
    var verArr = reqVerStr.split(",");
    var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
    if (flashVer < reqVer){
    if (confirm(msg))
    window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash";
    </script>
    Then replace <body> with this:
    <body onload="MM_CheckFlashVersion('9,0,0,0','Content on this site requires the latest version of Adobe Flash Player. Do you want to download it now?');">
    Beginning with Flash Player 9 h.264 QT movies are now supported for playback. Simply change the file extension from .m4v to .flv to convert the h.264 video to Flash video that can be viewed from Flash Player 9+ on a web browser.
    hope that helps!

  • How to "chain" two or more FLV video's so one plays after another?

    We want to "chain" multiple FLV video's on the same web page.
    We can combine them in my video editor but the resulting file is over 30 minutes long.
    But, I'm hopeful that we can do this using code in the web page so...
    1 - We convert each AVI video to FLV video and then "publish" it locally to get the associated files.
    2 - Then combine the HTML as necessary to have one video play right after the other.
    My question is how?
    Can I just...
    - copy the javascript AC_FL_RunContent code and change the 'name' and 'movie to be the name of the next video.
    - and then do the same thing for the object code?
    or is there a shorter or more easy way to do this?
    Finally, is this the best forum for Flash FLV questions?
    Thanks for any help on this.
    PS - I know some will want to know why we want to chain short videos instead of just making one long video but the explination is long and will bog down the discussion.

    Kglad,
    AS_3 I guess.
    That is the latest... right?
    I'm running Flash CS3 v9 and I guess it will run either... according to the opening screen.
    And since I haven't used Action Script before may as well start with the latest.
    Thanks for your help.

Maybe you are looking for