Play movie clip on frame

I am using Flash CS4 and i have made some short movie clips. I want one of them to play on frame 24 once and then the next on frame 48 ect. How would i do this?
Thank you in advance,
Ben

Your posting could be interpretted at least a couple ways, so I'll try for one of them... Give your movieclips instance names via the Properties panel, and in an actions layer, on the frame you want one to play, add a keyframe and in it add the code: mcName.play();  where mcName is whatever instance name you assign to the movieclip
The preceding assumes you have a stop(); command in the first frame of each movieclip.
If that doesn't agree with the scenario you intend, try explaining the details again.

Similar Messages

  • Urgent Need of Help Playing Movie Clips

    I'm a complete noob when it comes to AS. I know basic things like stop(); and gotoAndPlay.
    Here's my dilemma.
    Dearest Professor has given us a task of creating a website in Flash. You need to have 15 links, or 15 pages. He states that you can only go frame by frame on the main timeline with no tweening spaces in between. So I'm virtually creating all of my animations in symbols.
    This isnt such a problem... I created a short introduction title video in Flash using a Movie Clip Symbol... placed it on the main timeline on the first page, and then called ActionScript to play the video.
    Here's the problem... So.... the movie will play, but it will continuously loop... I've tried putting stop(); on the home page, under the AS... I'm just completely lost on how to get this to play the short clip and go straight to the home page... Could someone PLEASE, direct me on how to do this and give me an explanation as to why this way is the way it is... I would very much like to understand how it works.
    Thanks
    The Flash Noob

    Thanks Rob!
    I did what you suggested but I think I may have messed it up...
    Here's the output error I have going on right now.
    TypeError: Error #1034: Type Coercion failed: cannot convert flash_website_template2_fla::MainTimeline@7fff0d7aea1 to openingtodogwood.
      at openingtodogwood/frame9()[openingtodogwood::frame9:3]
    In the end of the timeline of the movie clip I put this:
    stop();
    openingtodogwood(parent).play();
    I think that might be wrong but I'm unsure on what I should have really put. I was also reading that having the name of the movie clip the same as the class in the properties panels is not a good idea?
    Thank you so much for your help!

  • Playing movie clips one after the other

    Hello, I am trying to figure out how to play several movie clips one after the other. Each clip has animation in it. When I drag the clip on the main timeline the timeline plays the frame but does not play the contents of the movie. how do I get it to play the contents of the first movie then play the contents of the second movie which is in frame 2 and so on?
    Thank you

    do you mean in the authoring environment you don't see nested movieclips play when scrubbing the timeline?  if yes, that cannot be changed.  if you used graphic symbols (instead of movieclips), you can see nested graphics play when scrubbing a parent timeline (if the parent timeline has sufficient frames).

  • Playing movie clips sequentially

    I have 2 movie clips that I want to play one after another.
    For instance, movie clip 1 should display an animation then movie
    clip 2 comes into play after clip 1's animation is over. I placed
    each clip on a separate layer in the main timeline. However, when I
    placed clip 1 in frame one (leaving frame 2 empty for clip 1 layer)
    and clip 2 in frame 2 (leaving frame 1 empty), both animations
    don't display accurately. Please advise, thanks

    Put both clips in frame 1 on the main timeline. Within each
    movie clip, place a stop() script on the first frame. At the end of
    movie clip 1 (the last frame), you can say _parent.movieclip2.goto
    AndPlay ("some label") or gotoAndPlay (2). Depending on what else
    is going on, this is simple enough. Make sure on the main timeline
    that you add another layer called actions and put an action like
    mocieclip1.gotoAndPlay ("some label name") or gotoAndPlay (2). If
    you have it scripted to go to and play frame 2, make sure each
    movie clip has a blank keyframe for their first frame.
    I made a little example at
    http://www.shan-dysigns.com/flashexamples/boxes.fla

  • Difficulties with movie clips and frames

    This is really irking me.
    I am extremely new to Flash so please bear with me. I am assuming that this is a simple, easy to fix problem that I am having. I have Adobe Flash Professional CS5.5.
    What I am trying to do is display a sequence of images after other movie clips stop playing.
    The image sequence itself does what it is supposed to and works properly, and the other movie clips also are successful. However, whenever I try to put the movie clips for the images in frames or keyframes, the beginning movie clips only play part of the way before the images show up. This happens even though the images' movie clips are on frames/keyframes (I've tried both) after the other movie clips.
    The movie clips that are supposed to play first are each on a separate layer and there are two of them.
    The first layer is called "tree" and the second is called "text"
    The tree layer has a 45-frame gif animation that I have turned into a movie clip. I have created a motion tween and changed its alpha so that the gif has a fading in and out effect. I also have it so that it stops replaying once it reaches the last frame. I am using stop(); for this.
    The text layer has a 40-frame gif animation that I have also turned into a gif. This gif is also a movie clip and also has motion tween. Its alpha has also been changed.
    Both tree and text play together successfully and how I want them to.
    The sequence of images is three separate images, each a different layer, that fade into eachother. These images are pngs, therefore they aren't gifs nor do they have their own frames.
    The bottom layer is called floor1 and has frames 1 through 50 of motion tween and alpha adjustments fading the png image. The image is a movie clip.
    The layer on top is called floor2 and has frames 51-100 of a different png image fading.
    The very top layer is called floor3 and has frames 101-150 of yet another png fading.
    The images are successful in doing what they are supposed to.
    Layers tree and text are one fla file, and layers floor1, floor2, and floor3 are a separate fla file.
    When I copy the frames from layers floor1, floor2, and floor3 into a keyframe after layers text and tree, they transfer properly, but when I test the animation, the image sequence shows up a lot sooner than it is supposed to, interrupting the movie clips on the layers text and tree. I have tried moving the floor# layers' keyframes farther down the timeline, but then the other movie clips just stop.
    In the fla file with layers text and tree, I've imported the gifs into the library and then put them onto the stage.
    In the fla file with the floor# layers, I've imported the pngs into the stage.
    Here's what the text and tree layers look like:
    Here's what the floor# layers look like:
    The rest of the frames for the floor#s...
    So, I thought that the problem was that I needed to delay the image squence. I looked around and found no code or anything for that..
    Afterwards, I thought that it was because I had imported the tree and text gifs to the library before putting them on the stage.
    I opened a new fla and imported the "tree" gif straight to the stage.
    I figured that this should work because then it would show each of the individual frames in the movie clips, which it doesn't do in the above pictures. By importing the gif like this, it does show the individual frames. I've tested this with the image sequence and it works fine. But I have a problem with this method too..
    I select all of the frames for the gif to convert into a symbol, so I can add a motion tween and mess with the alpha. However, only the last frame is converted into a movie clip. Well actually no... Only the circled frames below are turned into the movie clip. Even when all of the frames are selected.  This isn't very helpful because then I can't change the alpha for the entire gif nor can I create a motion tween without getting a message saying that the motion tween could not be applied to all of the frames.
    Here's what this version of "tree" looks like.
    And the frames continue like so until 135.
    The frames that are turned into the movie clip are circled below.
    If I can solve the issue that I'm having with the tree shown in the two pictures above this sentence, then I can display the movie clips and image sequence without a problem. It wouldn't be quite how I had intended it to be, but it would be successful and would still work.
    If I can fix the problem with the image sequence showing up to early, and of the tree and text movie clips being cut off, then this project would also be successful and it would be how I had wanted it to be.
    If you need clarification, let me know and I'll explain something better.
    I am not willing to provide a download link in this forum for my fla files, but I can email them to you if you would like a look. I just don't want someone to be able to find them and take them by doing a google search.
    I have uploaded two swfs though.
    The first is of the tree and text layers/movie clips working as they are supposed to. The second is of the image sequence (floor1, floor2, floor3) doing what it is supposed to.
    Text and tree: http://glassoliverdesigns.weebly.com/uploads/1/0/6/5/10653451/tfg1.swf
    Floor1, floor2, floor3: http://glassoliverdesigns.weebly.com/uploads/1/0/6/5/10653451/tfg2.swf
    Notice how at the end of the text and tree swf, when the text stops the thing in the background keeps flashing. If that can keep flashing WHILE the images appear, then that would be great.
    TL;DR: I want the floor# flash to show up after the text and tree flash but I keep having problems and nothing I try is working properly.

    Very concise question, appreciate the screenshots. One thing that motion tweens don't always show very well is keyframes. Let me clear a few things up and see if it helps.
    Go back to what you wanted to do originally, which is copying the frames from one document to another. This is perfectly fine and to clear it up, it will also copy any library elements (images, clips, etc) that are required to copy those frames for you, so you do not need to import them yourself.
    To successfully copy frames (not symbols), select the first frame of the frames you want to copy, hold shift and select the last frame (alternatively double clicking anywhere in the blue motion tween should select it all as well). Now right-click and "Copy Frames". Now go into your new document, select a frame, right-click and select Paste Frames. You will see the same frames copied over, the blue representing the tween and keyframes came with it and you finally will notice all your images/etc were copied into your library.
    Now is a good time to manage the library clutter that was just copied in, if you're a clean freak like me.
    This process is the same, as you tried, for the other documents you want to copy in. If any resources match in name then Flash will ask you if you want to "overwrite" that library item. If you do that,  you will break one of your previous animations. Make sure that's not the case.
    The common gotcha here is not knowing how to slide frames over properly. If overwriting isn't the issue, this is what I suspect your problem is and as you expand/contract the timeline the keyframes aren't going with you.
    For example if I import 2 clips with fade in/out and move keyframes as you did I'll get something like this:
    Now moving them over I would be very careful to select all of the frames I want to move via the methods above. Click the first frame, hold shift and select the last frame, or double-click anywhere in the middle of the blue. The selection of frames:
    Now I simply drag my selected frames to the right, notice the keyframes stay as they should (the black dots):
    The animation plays as expected.
    Lastly I'm not sure if you've ever used the panel but you should really get used to the Motion Editor. This gives you control over easing as well as shows you an in-depth view of the keyframes that exist in a selected motion tween.
    At first this panel may look complex but it simply represents the basic properties you can animate. Any more properties you animate can be added in here. I moved the X, Y and Alpha properties of my object. So you can see over the frames 30-60 what I did. You can also adjust basic easing here.
    If your animations don't look correct you can select a motion tween, open the motion editor and verify the keyframes look correct. Scrub the timeline and look at the values you're interested in. Alpha for example, for you.
    If you don't see any keyframes when you scrub the timeline, you moved your frames over incorrectly and the keyframes probably exist in a different place and therefore it appears incorrect.

  • Play movie clips backwards

    I have a scene with 7 frames on the main stage, each
    containing movie clips, i was wondering if there was a way to:
    1. Make one or part of one of these movie clips play
    backwards when a button is pressed.
    2. Once a movie ends another specified clip(not neceserally
    after it in the timeline) automatically plays.
    Thanks,
    Ben

    Hi,
    Ive emailed you the file. Any problems then let me know.
    Cheers

  • Simple play movie clip rollover

    Hi all, I am losing it on this one. I have created a simple
    movie clip called "web templates movie" I have a simple text button
    to bring the movie to life.
    The button has a rollover action on it but will not for the
    life of me work.
    What actionscript do I need to put on the button to play the
    movie clip on my site? When I rollover it now it refreshes my main
    page, no matter what I name the movie clip within the script to
    play.
    I just want to roll over the text button and bring up the
    movie clip.
    ?

    Ned
    thanks for the reply.
    I have tried using this code before, it was actually what I had seen dotted around various forums. It still wont work though? I dont know if it is the way I have the timeline set up, or maybe the movieclip?
    I have attached the .fla file to clear things up.
    The movie clip named Atkins logo is on frame 1. Nothing else is on frame 1 in the main timeline. Then Frame 2 begins the section called 'intro'. I would like the movie clip to play through and then move to frame 2 of the main timeline, which is frame 1 of the 'intro' section.
    I have tried putting the script in you have suggested but it does not seem to work. When I test the movie the logo does not even begin to play?

  • How to play movie clips for a certain amount of time only

    Hello everyone, I think I have a relatively basic question here but I can't figure it out. I have a movie clip loaded using action script 3 at the start of my animation, I want ito to end at the 120th frame. But I can't use the stop(); command because it will also stop the rest of my animations from the 121st frame onwards. So my problem is, how can I stop the movie clip without stopping the rest of my animations?
    Thank you in advance!

    I don't think I have codes that load the swf, but I've sent you the code that I would like to stop. Thanks!

  • How to move clip one frame at a time or nudge

    Tried searching this, as I'm sure it's basic and in the owner's manual, but I can't find it:
    I can't control how far I'm dragging something across the timeline. Can I grab and nudge rather than grab and drag? I'd like to be able to move a clip one frame over.
    Thanks.

    If there's nothing in the way you can use the [ and ] keys or comma and period. Shift-bracket will move five frames.

  • Help - Using Cue Points to Play Movie Clips

    I have a FLV, into which I have placed about 8 cue points. I
    want a movie clip to play - (each movie clip is simply a snippet of
    supporting text for the video) - when a cue point is "hit". I am
    really quite baffled by most of the documentation that I have read
    so far.
    How can I do this? Many, many thanks for any support you can
    give.
    tommy53

    You can build out a menu by reading the cuePoints array in
    the NetStream.onMetadata handler, or by using the MetadataEvent
    with the FLVPlayback component (AS3). The simple thing for me to
    say is to refer to Chapter 9 of my new Flash Video book. :) (see
    link in my signature below.)

  • Making a button rollover change a movie clip's frame

    Hi again everyone,
    I knew how to do this in AS2 but now I am having problems
    with making a button on the stage goto a frame in a movie clip on
    the stage.
    I've attached a sample of my code below, hopefully you'll see
    the error and be able to point it out to me?
    I have a movie clip on the stage that has different
    information in different frames. I want to make it so that when
    someone rolls over the button, the movie clip fades in and goes to
    the correct frame to display the information.
    With this setup the way it is below, I keep getting "Warning:
    3590: void used where a Boolean value was expected. The expression
    will be type coerced to Boolean.
    I know where the problem is happening, "function
    XXX(event:MouseEvent):void {navigateToURL(XXXweb)}"
    How can I write this differently and eliminate this problem?
    Thanks,
    Jeremiah

    I'll give that a shot, thanks!
    A follow up question to that one, is there a way to make it
    so that I can have one rolled over function applied to several
    buttons / frames in the movie clip? This movie clip has 50+ frames
    in it and if I could reduce my coding, it would make life a lot
    easier.
    Thanks,
    Jeremiah

  • Playing Movie clip backward using buttons?

    Im trying to create a series of images that scroll acoss the page left and right using arrows at either side of the stage. The arrows use mouse over events to play a movie clip of the images foward and backward.
    There are a few issues I am having. I have a mouse over and mouse out events in place to start and stop the clip on to different buttons. However when playing the clip backward with my current script the mouse out doesnt do anything so the clip just keeps playing backward to the beggining. Once this has happened neither button then does anything.
    Another issue is once the clip has played foward once in total and I mouse over the same arrow button again it flicks back to the begginging of the clip.
    Here is my current scrpit:
    panel.stop();
    leftarrow_btn.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_7);
    leftarrow_btn.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler_4);
    function fl_MouseOverHandler_7(event:MouseEvent):void
              panel.play();
    function fl_MouseOutHandler_4(event:MouseEvent):void
              panel.stop();
    rightarrow_btn.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_9);
    rightarrow_btn.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler_7);
    function fl_MouseOverHandler_9(event:MouseEvent):void
       panel.addEventListener(Event.ENTER_FRAME, everyFrame);
    function everyFrame(event:Event):void
              panel.prevFrame();
    function fl_MouseOutHandler_7(event:MouseEvent):void
              panel.stop();
    Please Help!!
    Patrick

    use:
    panel.stop();
    leftarrow_btn.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_7);
    leftarrow_btn.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler_4);
    function fl_MouseOverHandler_7(event:MouseEvent):void
              panel.play();
    function fl_MouseOutHandler_4(event:MouseEvent):void
              panel.stop();
    rightarrow_btn.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_9);
    rightarrow_btn.addEventListener(MouseEvent.MOUSE_OUT, fl_MouseOutHandler_7);
    function fl_MouseOverHandler_9(event:MouseEvent):void
       panel.addEventListener(Event.ENTER_FRAME, everyFrame);
    function everyFrame(event:Event):void
              panel.prevFrame();
    function fl_MouseOutHandler_7(event:MouseEvent):void
    panel.removeEventListener(Event.ENTER_FRAME,everyFrame);

  • Quicktime 7 plays movie but skips frames

    Using Tiger and QT 7.1. The movie displays a frame then seems to jump forward. Seems to play 1 frame out of 30. These are fairly large movie files. Could Quicktime need more memory? If so I don't know how to access that.
    Thanks.
    Bill

    I just noticed what hardware Bill Graham1 lists as his Mac--a Power Mac 7300 running Tiger. He has to be using something like XPostFacto to get it to run on this older Mac. In any case, even if this 7300 has a processor board upgrade, it's not designed to handle Quicktime 7 video at a decent speed. I'd be interested to hear Bill's experience with Quicktime 6.5.2, under OS 10.3.x on his 7300--did it play movies at a normal speed? If so, then that would confirm he's seeing the Quicktime 7 bug, which is actually real--check some of the other posts in the Quicktime section from people with G4 Macs that are more than fast enough to play movie files using Quicktime 7, but who are seeing this problem, where other people with the same Mac model aren't, which indicates it's some sort of bug. My Mac, a G4 AGP at 500 mhz, played MPEG-1 movie files just fine, under OS 10.3.x, using Quicktime 6.5.2, but when I installed OS 10.4, which requires Quicktime 7, the same movie files now play for a few seconds, then stop; if I hit the Quicktime Player window's pause button, then press it again, the video starts playing at a normal speed, but only after skipping some frames, and then plays again for only a few seconds. If I keep doing this, the whole video plays, but that's not how it's supposed to work. The same thing happens when you run Quicktime Player 6.5.2 under OS 10.4.x--you can't run the Quicktime 6.5.2 installer under OS 10.4.x, but you can run its Quicktime Player application if you copy it from a Mac that has 6.5.2 installed--but it doesn't help, indicating the problem is something in the Quicktime 7 extensions, or a problem with some OS file(s) that affect Quicktime playback, at least with MPEG-1 files--I haven't tried any MPEG-2 files.
    If you play these same MPEG-1 files using VLC Media Player instead of Quicktime Player, they play with no pauses, on these same "slow" Macs. I don't think VLC relies on Quicktime software. This further implicates Quicktime 7 as the cause of the problem.

  • Play Movie Clips with AS 2

    I have 3 Buttons
    I have 3 movie Clips
    Each Button Plays A Different Movie Clip.. Thats Where you
    come in !
    Whats the Code for the button

    are the instance names of your buttons: btn1, btn2, btn3
    are the instance names of your movieclips: mc1, mc2, mc3
    They would need to be named so in order for this to work, and
    it will.

  • Save movie  Clip in frame as jpeg

    We Are Developing A web Application as the following :
    the Client Can select A template then Write words on over it
    and Save the Template as Jpeg format ,we did the first part ,how we
    can save the movie Clip as JPEG format ,I looked in the Bitmap
    class and i did not found any Solution,also I used the PHP to send
    Data to It From Flash but it is very Slow Proccess is there any way
    to do this from Flash

    this my Code i olny load image in a movieClip and I changed
    the width and height of the movie
    myimage= movieClip
    import flash.display.BitmapData;
    import com.quasimondo.display.BitmapExporter;
    myimage.loadMovie("1.jpg") ;
    var snapshot:BitmapData = new BitmapData(500,400,false);
    // You will have to change the gatewayURL to your server
    // except if you are testing this locally:
    BitmapExporter.gatewayURL = "
    http://www.7everyweek.com/BitmapExporter.php";
    // It is a good idea to listen to the various events that
    // BitmapExporter provides:
    BitmapExporter.addEventListener( "progress", this);
    BitmapExporter.addEventListener( "status", this);
    BitmapExporter.addEventListener( "error", this);
    //BitmapExporter.addEventListener( "complete", this);
    function save():Void
    // Check if there is still an export going on:
    if (BitmapExporter.getStatus() == "idle") {
    // update the bitmap with the latest camera image:
    snapshot.draw(myimage);
    progress_back._visible = progressbar._visible=true;
    // this is only to compare the different speeds
    timer = getTimer();
    onEnterFrame = updateTimer;
    // Since the webcam image is very small we can get away with
    turboscan here:
    BitmapExporter.saveBitmap(snapshot, "testsnapshot.jpg",
    "turboscan", 0 );
    // Usually it is receommended to use one of the other modes:
    // BitmapExporter.saveBitmap(snapshot, "snapshot.jpg",
    "fastscan", 0, 70);
    // BitmapExporter.saveBitmap(snapshot, "snapshot.jpg",
    "default", 0, 70);
    // BitmapExporter.saveBitmap(snapshot, "snapshot.jpg",
    "palette", 0, 70);
    // BitmapExporter.saveBitmap(snapshot, "snapshot.jpg",
    "rgb_rle", 0, 70);
    function updateTimer(){
    time.text = getTimer() - timer;
    function progress(evt:Object):Void {
    progressbar.setProgress(evt.current, evt.total);
    progressbar.label = evt.message+" (%3%%)";
    function error(evt:Object):Void {
    errormsg.text += evt.message+"\n";
    delete onEnterFrame;
    trace( evt.message )
    function status(evt:Object):Void {
    trace( evt.status );
    switch (evt.status) {
    case "contacting server" :
    save_btn._visible = false;
    save_btn.enabled = false;
    cancel_btn._visible = true;
    cancel_btn.enabled = true;
    break;
    case "idle" :
    progress_back._visible = progressbar._visible=false;
    save_btn.enabled = true;
    save_btn._visible = true;
    //cancel_btn.enabled = false;
    cancel_btn._visible = false;
    onEnterFrame = null;
    break;
    case "retrieving":
    onEnterFrame = null;
    break;
    save_btn.onPress = function() {
    this._parent.save();
    progress_back._visible = progressbar._visible=false;
    //cancel_btn._visible = false;
    //save_btn._visible = true;
    progressbar.minimum = 0;
    //cancel_btn.enabled = false;
    var timer:Number
    var errormsg:TextField;
    ////////////////

Maybe you are looking for