Looping video in a MovieClip

I have a imported video converted to MovieClip, so that I am able to make mouse events, dragging etc to it.
The problem is that i want it to loop forever. Regular FLVplayback codes doesn't anymore work after converting to MovieClip.
I also tried to make the video as a embedded timeline video, but the video duplicates or the actions freezes after a moment.
Anyone know how to make MovieClip video to loop or solve the embedded video duplicating problem? Or is it possible to make the source video loop externally.

If that's the option you selected when you imported it, then you need to assign an instance name to the FLVPlayback component inside the MovieClip and to the MovieClip as well.  Use  them to assign an event listener for the flv player to detect when it is done playing so you can start it playing again. 
For the example shown below I have named them flvplayer and flvmc, respectively...
    // in the timeline containing the MovieClip...
    flvmc.flvplayer.addEventListener(Event.COMPLETE, playAgain);
    function playAgain(evt:Event):void {
        flvmc.flvplayer.play();

Similar Messages

  • Load youtube video in a movieclip

    hello all,
    i m trying to load youtube videos in my flash8 application.i
    m using this code:--
    System.security.allowDomain("
    http://www.youtube.com")
    System.security.loadPolicyFile("
    http://www.youtube.com/crossdomain.xml")
    this.createEmptyMovieClip("image_mc",
    this.getNextHighestDepth())
    var mclListener:Object = new Object();
    mclListener.onLoadInit = function(target_mc:MovieClip) {
    target_mc._x = 0;
    target_mc._y = 0;
    var image_mcl:MovieClipLoader = new MovieClipLoader();
    image_mcl.addListener(mclListener);
    image_mcl.loadClip("
    http://www.youtube.com/v/818hQQmxHaM&rel=1",
    image_mc)
    This code is working fine but as i try to load other youtube
    video on same movieclip on a button click event it loads nothing.
    //code written on click event of button:--
    on(click)
    _root.image_mcl.loadClip("
    http://www.youtube.com/v/5-43Xu6wrK0&rel=1",
    _root.image_mc)
    please help me on this issue.
    thanks in advance

    thanks for your reply.I have updated my code as u told me but
    my problem is still same as before.
    First time youtube video loaded properly but if i try to load
    another video on same movieclip,it display flv player with its
    control bar, but no flv file loaded on it.
    please help me again
    thanks in advance

  • Embedded Looping Video and stop();

    HI
    I have embedded a looped video into a flash slideshow where i
    use a next and previous button to navigate from one slide to the
    next.
    My question is can you insert a stop(); command in the frame
    where the looping video is placed so i can hold the slideshow on
    that slide (until i hit the next button) without stopping the
    video?
    Any help would be greatly appreciated.

    create a new fla with something on its timeline so you can see if it loops and attach:
    stop();
    to its last frame.  does it loop?  if yes, zip your fla and attach it.

  • Loop videos in keynote on iPad

    Hi
    is there a way that i can loop videos in a keynote presentation on the iPad?
    I made a 3D animation of a protein as an mpeg file and would like to loop the clip so it keeps on turning around until i go to the next slide... Is there a way to do that or do i have to create a video on my pc?
    Greetings!

    Please see my earlier reply

  • Bug: Export to QT with a looping video inside

    Hi,
    I posted on this exact same problem about a year ago for Keynote 2.x (or was it 1.x ?). The problem (feature, bug?) was and still is:
    I have a self running Keynote presentation (3.0.1). Inside this presentation are in some places looping QT movies. When I export the entire presentation to QT, the looping videos inside only run once (i.e. do not loop).
    As this did not get fixed in 3.0, either:
    a) this is a feature, not a bug
    b) no one from apple reads this list
    Regards,
    Gert

    Welcome back to the discussions, Gert.
    a) it's not a feature or a bug.
    When you export to QuickTime, you are taking all of the media and laying it out linearly. Since a loop isn't linear (start, play, end, back to beginning, play, end, etc), it gets removed.
    COULD Apple do this? Yes, but it would also mean that the exported movie would now be in an extra number of files and past experience indicates that this might be more confusing to the consumer (export a presentation with a background movie track and you'll see a "soundtrack" file).
    b) well someone has to read and moderate it to make sure we're not getting out of line, but this is a user to user discussion board first and foremost.

  • Loading video into existing movieclip

    Hi all,
    I am using the following code to load an external flv.
    var video:Video = new Video();
    addChild(video);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    ns.client = {onMetaData:ns_onMetaData, onCuePoint:ns_onCuePoint};
    function ns_onMetaData(item:Object):void {
    // video.width = 370;
    // video.height = 250;
    video.x = 525;
    video.y = 88;
    function ns_onCuePoint(item:Object):void {
    video.attachNetStream(ns);
    ns.play("sfmekransu.flv");
    But i want the movie to be loaded into my movie clip object that already created. How can i do it?

    Hi,
    add the video to your movieclip:
    movieclip.addChild(video);
    Warm Regards
    Deepanjan Das
    http://deepanjandas.wordpress.com/

  • Looping Video - No Buttons

    In a motion menu when I loop the video to play the last few seconds I loose the buttons up until the looping point when they come on the screen.  How do I loop video but have the buttons on the menu from the start?
    Thanks.

    Maybe this becomes something I need to do in AE, but here's what I'm trying to do:
    I've created video (about 50 seconds).  The final 10 seconds are a blurred frame (still) - my hope was to have the menus on from the start of the motion menu and loop the video w/ the final few seconds for the bed.  I saw it was done in a Lynda.com tutorial, but the bottons were animated in AE...that being said in the lesson I saw the looping video had the buttons on the entire time, so your comment makes sense.  I will check out the section you suggest as well.
    Thanks.

  • Play looping video when powered on

    I want to use an iPod as a video playback device in an installation. It will play a looping video continuously. I would like it to begin doing this when powered up, is there a way?
    Thanks!
    Matt

    It's probably Protected Mode or Enhanced Security blocking your ability to:
    1. Reach the URL
    2. Open the player required to play the video
    3. Or Both
    You can try disabling both as  a test to find out.

  • Looped video for CS4

    I want to create a short looped video in CS4 for my website.  I want a cross fade in between each image. How do I do this?
    Thanks,
    Lisa

    Well I have thought about everything and tried CS4 in the comp and its not going to well. Not bad but not well.
    I am going to have to bite the bullet and build a new one. Here is what I am thinking, any input or changes most welcomed
    http://www.newegg.ca/Product/Product.aspx?Item=N82E16820233132&cm_re=Corsair_4GB_DDR3_RAM- _-20-233-132-_-Product -8 Gigs should be enough I would hope
    http://www.tigerdirect.ca/applications/SearchTools/item-details.asp?EdpNo=3276573&sku=ULT- LSP650 -650 watts enough
    http://www.tigerdirect.ca/applications/SearchTools/item-details.asp?EdpNo=7073161&sku=I69- 2500K - Not top of the line however not getting into much of the highend editing effects and such
    http://www.newegg.ca/Product/Product.aspx?Item=N82E16813131687 - Great Motherboard I have researched and read about
    http://www.newegg.ca/Product/Product.aspx?Item=N82E16814102865 - More then enough for video editing I think
    I have 2 1.5 tb harddrives already so I wont need to buy any more. Let me know if this is a good start or to much. Thanks.

  • How do I loop video?

    I just got DVD Studio Pro 4 after working with DVD Studio Pro 1 for years. I am having trouble looping video for continuous play. I set the beginning and end in the inspector window and set it on "loop". When that didn't work I added a chapter marker to the footage in FCP. Does anyone have any suggestions?

    On your track in the property inspector set the end jump to be that track and it should loop for you. Hope this helps
    sz

  • How do I prevent the video file name from showing up on apple tv looping video playlist?

    Ok so here is my dilemma.  I use my apple tv as a way to loop a video playlist on my tv for guests.  I usually only have 2 videos that play and they loop continuously all day just fine.  However, when one video ends and the other begins, the file name appears (I'm assuming it's the file name) at the bottom left corner as the video is starting.  Is there a way to get rid of that?  I want a streamlined experience and it takes away from the video.  So, all in all I have an apple tv.  I use it to loop a video playlist on a tv for people to watch in the background.  When a video begins, the file name appears and I want to know if I can get rid of that through the apple tv.  Also note both videos were edited in iMovie.  Thank you.

    Welcome to the Apple Community.
    Is there a way to get rid of that?
    Unfortunately not.

  • Playing video A, then looping video B

    Hello there.
    Pretty new with flash in video.
    I have two video footage pieces we shot.
    I need to be able to play the first video (from beginning to
    end) and then I need the second video to loop automaicly.
    The videos are FLVs (with alpha channel, but i guess it won't
    effect the answer...)
    Thanks in advanced!
    Adam

    what version of AS (ActionScript) are you using?

  • Flash Cs3 - Looping Video

    I am very new to Flash, and only need it to do 1 function so
    I am really trying to keep this as simple as possible. Basically
    here is a quick rundown of my scenario...I imported a dv video
    file, and placed a pct graphic on top, which is acting as my
    watermark. This is a demo reel that I want to loop on my homepage,
    and need to make sure that the pct stays on top of the video when
    it loops.
    I tried creating a new layer and using an ActionScript as
    described
    here
    but I can't seem to get it to work.
    Anyone have any ideas? Again, the only items in my flash file
    are a graphic on top of a 1:00 video clip, and I just want it to
    continuously loop. Thanks so much!

    Use actionscript 2.0 and this technique:
    Give FLVplayback component instance name of vid.
    Add this code to the timeline:
    var vidList : Object = new Object();
    vidList.complete = function() {
    vid.play();
    vid.addEventListener ("complete",vidList);
    stop();

  • Looping videos in a quicktime export

    I have 6 videos on a single slide, each of which has a different duration. So I loop all of them to avoid paused videos, which works very nicely in the Keynote presentation mode. However, when I export the slide to a quicktime movie, the videos don't loop! Very annoying. Does anyone know how to fix this?
    thank you very much --
    -- Todd

    Hi. I'm having this exact same issue as well.
    Also, my audio files loop in Keynote, but again, not when exported.
    Anyone know how to get around this?

  • I need help making a pop up in a looping video...

    I have a looping aquarium with looping swimming fish. I want to be able to click the fish and they make a pop-up appear with info about them. I can't figure out the code to launch the pop-up any help? I am using CS3 and action script 2.0.

    ok i got the movie to attach by putting this code on the button
    play();
    btnClose.onRelease = function() {
       removeMovieClip('SargeantMajorInfo_mc')
    mcSargeantMajor.onRelease = addFish;
    function addFish() {
        var thisFish:MovieClip = this._parent.attachMovie("mcSargeantMajorInfo_id", "SargeantMajorInfo_mc", 10,
    {_x:randRange(50, 51), _y:randRange(50, 51)});
        thisfish.onRelease = function() {
        this.removeMovieClip();
        bugNum++;
    This is for the close button.
    btnClose.onRelease = function() {
       unloadMovie ('mcSargeantMajorInfo_id')
    got the close. Need a scale. it pops up entirely too large. any ideas?
    Message was edited by: OIDIII

Maybe you are looking for

  • Problem with socket in java and c++

    I am connecting to a server developed in java that use sys/socket.h, this server use DataInputStream class and readUTF so: in = new DataInputStream(socket.getInputStream()); inputString = in.readUTF() My application in C++ it use winsock2.h and I uti

  • Can I Create A Hotspot With My iPhone 4 To Use For iPod Touch?

    I'm considering signing up for the tethering plan with AT&T. My main purpose would be to create a hotspot for my iPod Touch. I use my iPod Touch at work using Keynote.  I would like the ability to download my Keynotes via Dropbox on my iPod Touch. Ca

  • Crashing bug when click in Picture

    Hi all, Configuration : iMac Mac Intel 10.5.1/iTunes 7.5 (release19) It's very easy to reproduce : open iTunes click in the left bottom on Show Item artwork (Illustration of Now Playing) click in it => iTunes crashing Anybody else have this crash ? T

  • How can I unfreeze my cursor??? Help

    I've had this G4 since they first came out and I've had the Leopard OS since it came out. I am just now experiencing a frustrating problem with my cursor. It freezes or just jumps around the screen when I try to use it. I've used the Apple+ the Esc.

  • Mp3s I put in Library not showing up in iTunes

    I purchased some lectures from a website in mp3 format. I put them into my iTunes Library, but they don't show up in iTunes. How can I put them into a playlist in my Music folder?