Movie clips within movie clips

I have a movie clip (I'll call it B_mov) inside another movie
clip (A_mov). When you click a button in A_mov, B_mov plays. At the
end of B_mov, I used stop(); to make it stop. How do I return to
A_mov from there? I assume this is ActionScript territory.
This is coming from someone who has just taken his first baby
step into AS, navigating a single timeline via buttons, but I have
no idea how to move between different timelines.
Is this something that can be easily explained? If it's
really complicated, I don't want to burden anyone.
...Would I be better off finding an online AS tutorial? Can
someone please point me in the right direction?

supaaman,
> I have a movie clip (I'll call it B_mov) inside another
> movie clip (A_mov). When you click a button in
> A_mov, B_mov plays.
Okay.
> At the end of B_mov, I used stop(); to make it stop.
Makes sense so far. :)
> How do I return to A_mov from there? I assume this
> is ActionScript territory.
Well, you've already entered ActionScript territory by
programming your
button and adding that stop() action, so that's a good thing.
When you say
"return to A_mov," what do you mean? What would like like
A_mov to do at
this point?
> This is coming from someone who has just taken his
> first baby step into AS, navigating a single timeline
via
> buttons, but I have no idea how to move between
> different timelines.
Timelines are synonymous with movie clips, and movie clips
are defined
by something called the MovieClip class. In fact, all objects
in
ActionScript are defined by corresponding classes (text
fields are defined
by the TextField class, arrays by the Array class, and so
on).
Thinking of it this way, you can consult the MovieClip class
entry of
the ActionScript Language Reference (the Help panel) to find
out everything
you need to know about movie clips. The characteristics of
the object are
called properties (you'll find references to width, height, x
and y
position, etc.). Things the object can do, such as stop(),
play(), and the
like, are called methods. Things the object can react to --
mouse clicks,
for example -- are called events.
You haven't stated what version of ActionScript you're
using, and the
exact wording of your code depends on that, but for example,
in ActionScript
2.0, you'll find that movie clips have a _parent property (in
ActionScript
3.0, it's simply parent). This property allows the movie clip
in question
to refer to its parent timeline (that is, its parent movie
clip). That
might be a step in the right direction for you, but I'm not
sure what you
have in mind.
Instead of simply invoking stop() in the final keyframe of
B_mov, you
might do something like this:
stop();
_parent.play();
... which invokes the MovieClip.stop() method on B_mov's
timline (because
that's where the reference to stop() appears: in B_mov's
timeline) and then
makes a reference to B_mov's parent via the MovieClip._parent
property.
That reference therefore invokes MovieClip.play() on A_mov.
The reason it works here is entirely because of the point of
view from
which the code operates: namely, keyframes in B_mov's
timeline. If your
code were all on the main timeline, your methods would be the
same -- stop()
and play() -- but your object references would be different.
Does that make sense?
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Frame reference within a clip within a clip

    this seems to be an almost universally puzzling question as I've not gotten any responses from any of the forums that I've posted on...
    Is it possible for me to have 1 movieclip consisting of multiple movie clips, in a .fla file, and reference specific frames of clips within a frame of the movie clip, from an outside .as file?
    In a .fla file I have a movie clip that consists of several frames, each containing a different movie clip to perform different actions of a character I am attempting to animate.  The basics of the code work fine, but now I'm trying to get into more detailed aspects of the characters actions and interactions and all the tutorials that I've come across thus far direct me to add various aspects of code throughout my animation which I feel would litter my program as this project grows.  My basic code is as follows
    class hero extends MovieClip
        variable definitions up here
        function onLoad()
            variable initializations here
        function onEnterFrame()
            if( Key.isDown(Key.RIGHT) )
                _xscale = 200;
                if( Key.isDown(Key.SHIFT) )
                    gotoAndStop("run");
                    _x = _x + run_speed;
                } else {
                    gotoAndStop("walk");
                    _x = _x + walk_speed;
    // more of that for the other carnal directions of the character's movement...
            } else if ( !Key.isDown() ){
                gotoAndStop("stand");
    This works fine.  Beyond this, I have a frame with the anchor lable "Punch" which contains a movie clip consisting of 5 frames.  Is it possible for me to reference specific frames within the movie clip within this frame of the big movie clip?

    you reference nested clips using dot notation BUT the parent clip must be on a frame where the child exists.  for example, if the _currentframe of parentMC contains childMC,   you could reference the frame number of childMC that's a child of parentMC using:
    trace(parentMC.childMC._currentframe);
    if childMC only exists on frame 2 of parentMC and parentMC is on its first frame, then you would need:
    parentMC.gotoAndStop(2);
    trace(parentMC.childMC._currentframe);

  • Rename audio clips within merged clips

    Hi there,
    In premiere CS5.5, is it possible to rename the audio clips that are within a merged clips ?
    I mean, with each video, I have several audio tracks from ambient and 2 booms.
    In order not to mess up with those when editing sound in ProTools later, I need to know which one is which.
    Thanks.

    If you only want the sound clip for a set period of time, drag it on top of one of the video clips near the beginning that will prevent the audio from becoming a 'background music clip'. Grab the title bar of that clip in the Project window and drag it until the whole background area changes from purple/green to the normal dark grey color of the Project window. Same would apply to your voice clips as well, just drag those sound clips right on the very middle of the thumbnail image of the video clip, and then slide it around to where it needs to be by dragging it to the left or right.

  • Clip within a clip equals jagged edges

    I have placed an video clip (Dad) incide of another video clip (son) to look as if the Dad is coming in over a video telecast on a black laptop. Problem is I am seeing jagged edges along two sides of the Dad clip. Is this caused by aliasing? Is there a way to smooth out the edge? Thanks!
    alex

    First, are you looking at the output on an NTSC monitor or television, or on your computer screen. The computer screen will not give you a true look at your final product and this type of issue is often "not really there"
    If it is "really there" after checking output on a monitor or television, you might try feathering the edges of the "box" (MOTION > CROP > FEATHER EDGES)
    rh

  • Stopping Audio in movie within movie..?

    hello,
    If I create a captivate movie called XYZ, (series of slides,
    and/or full motion capture) add narration to it, publish it to swf
    format, and then create a new captivate movie called ABC which uses
    that swf on one of it's slides (i.e. a movie within a movie), how
    do I create buttons in ABC which will stop the audio of XYZ in case
    the learner wants to go to the next slide before XYZ finishes???
    Also, why does a wav file created in Audacity, and
    normalized, sound distorted in captivate? Is there a way around it,
    besides lowering the volume of my Audacity wav file?
    thank you
    Mike

    Mike said . . .
    quote:
    ... how do I create buttons in ABC which will stop the audio of
    XYZ?
    You don't. You create controls for movie XYZ
    within movie XYZ.
    quote:
    ... why does a wav file created in Audacity, and normalized,
    sound distorted in captivate?
    It doesn't - at least on all machines. Perhaps
    you are seeing the problem because of the file-format you are
    saving to (in Audacity). Can you describe what you mean by "sound
    distorted"? Your reference to lowering the volume indicates it is
    not necessarily being distorted, but being amplified excessively
    after import to Captivate . . .
    If that is the case, it seems to me that the simplest
    solution is exactly what you already suggested - lower the
    amplitude in Audacity . . .

  • Adjusting volume within a clip

    I think I have read on the discussion board that iMovie '08 doesn't have this feature, but I want to be sure: Is it possible to adjust part of the volume of a clip within that clip?
    For example, I have a cute clip of my grandchildren, but right in the middle of it, someone in the background is cussing for about two seconds. Splitting the clip to remove that part of the audio ruins the video part.
    This may sound like a broken record, but in iMovie '06 I could adjust the volume by clicking on View Volume Tracks. Not possible in iMovie '08?

    Dear Appleman 1958: One more question. In iMovie '06 there were some cool Video FX features. My little granddaughters particularly liked the fairy dust that could be strewn across video of them. Have those features been taken out of iMovie '08?

  • Can one cut and paste an audio clip within a movie to use in another place?

    can one copy and paste an audio clip within a movie to use in another place?  Any help would be appreciated.  Thanks

    If you are wanting to use the audio from clip A into clip B then try......
    First check that Advanced tools are enabled: iMovie>Preferences>General>Show Advanced Tools.
    Drag clip A from the Event UPON clip B in the Project. When you release the mouse you will get a pop up menue.
    Select Audio Only. Note the other options for another day!!!!
    You will get a green bar as Karsten mentions above ( move it , shorten it etc, etc.)
    Show Audio Waveform by selecting Blue Waveform Box ,bottom right of Project Window.
    You can adjust audio level from clip A and clip B to your requirements.You can set either to zero volume if you require.
    This may not be what you meant by "to use in another place "
    If you want just the audio to use outside of iMovie, try;
    With the required clip/clips only in the project> Share> Export Using Quicktime and in Export Select "Sound To AIFF. Save to desktop in the first instance so you can easily find it.

  • How do I get home video clips from iMovie Mac to iMovie iPad?  Surely there is some degree of cross-compatibility?  I have a load of clips in iMovie on my MBP that I wanna download to my iPad2 so that I can edit movies on the move.  Any ideas?

    How do I get home video clips from iMovie Mac to iMovie iPad?  Surely there is some degree of cross-compatibility?  I have a load of clips in iMovie on my MBP that I wanna download to my iPad2 so that I can edit movies on the move.  Any ideas?  (The clips are in a .mov format, they have been imported / converted into this format in iMovie, original files were from a JVC camcorder in some other strange format.)

    I copied the iTunes file from the external drive and it's in both places.  I thought all I would need is the iTunes program (which I downloaded to new computer) and my iTunes library file.  There must be something else that's missing.  My iTunes library looks the same on the new computer as it does when I open it on the external drive.  If I click on an iTunes library song from my new computer, it will only play if I have the external drive plugged in.
    My back-up drive is a mess.  I have multiple copies of music, video, photo, and document files and I don't know how that happened. ={  Obviously, I don't know how to back up stuff properly and there are back-up files extending over a 6- to 8-year period.  I think all I did was just drag and drop the main folders from the back-up drive to the same main folders on the C: drive.  Also (and I'm kind of fuzzy on this) Windows used to automatically save music files in a folder within my document files (which makes no sense to me).  As my Jewish friends would say, "Oy Vey!" 

  • When I move video clip, my audio clips (unlinked) split ??

    I have separate video and audio clips on the timeline (they are not linked).  When I try to move a video clip (or multiple clips at one time), before I let go of the mouse, the audio clip(s) below the video split, so that they are before and after the moved video clip.  They are not linked together.  How do I move a video clip without affecting anything else?
    Thanks.

    This might be helpful from some of my old notes. The ripple behavior can be overcome by the use of the CTRL
    button. However it depends on whether you press CTRL before or after you start moving the clip. When moving clips
    around in the timeline there are 4 basic types of movement Lift, Extract, Insert and Overlay:
    The first two, Lift and Extract have to do with how the clip is moved OUT of it's current position. To see what I
    mean, hover your mouse over a clip in the timeline, then press and release the CTRL key while watching the status
    text string in the lower left of the application window, you'll see that holding CTRL before clicking and dragging
    triggers the extract behavior (which tells the timeline that there is a gap being created that should be closed)
    but clicking and dragging with no CTRL modifier allows the Lift behavior (which tells the TL to ignore the gap)
    The second two, Insert and Overlay have to do with how the clip is placed IN to it's new position, that is,
    whether it is Overlaid over exisitng footage without any ripple movement or Inserted within the existing footage,
    causing any following media (including that on other tracks) to be rippled forward.
    Since there is no way to lock down tracks in PE, you must always be mindful of what this default rippling behavior
    is doing to overlapping media on other tracks.

  • "Move, trim, or delete clips in the primary storyline without affecting connected clips" doesn't work here

    Move, trim, or delete clips in the primary storyline without affecting connected clips
    That’s just what I was waiting for!
    But it's very difficult for me to use this option
    First af all the choice of the "Grave accent", which isn't present itself on the Mac keyboard, is somewhat strange in my opinion.
    So, according to my keyboard viewer, to get grave accent I have to use alt-\ or alt-9, which is itslef too complicated.... Couldn't they program a simple modifier key (alt, or command, or ctrl...)?
    Anyway, in both cases I get strange behaviours.
    Infact I get alert sound, which meanes something strange is happening, and the behaviours are not what I want...
    Any help?
    Thanks

    You can set that key to something else that suits you better.
    (just as you can customize keyboard shortcuts all over the application, changing and adding shortcuts as you wish).
    The name for this command is "Override connections".
    Go to  Final Cut Pro->Commands. This will open the "Command Editor".
    In order to not mess with the default set of commands, first make a copy by selecting "Duplicate..." in the popup menu at the top left of Command Editor. Call this something meaningful (or leave it as "Copy of default").
    Enter "Override connections" (without the quotes) into the search box at the top right. Now you can enter an appropriate keyboard shortcut for it.
    (Note: if you choose something that is already assigned to a different function, you'll get a warning dialog box)

  • Utility or script "each clip = new movie and let media file = name"

    I've found out that if I want to split a clip at the playhead and make it a new AS-IS original with a unique media file name designation; I have to go through:
    file>export> as full quality movie > check the "selected clips only " box > copy and paste the name and then designate destination folder> CLICK and then wait until done. (Thank you Karl)
    Unfortunately, completing this process with 180 clips per project x 15 to 20 projects per quarter... well it was more than I was prepared to do.
    Therefore... is there anyone out there who could (or has already) program(ed) some kind of script/utility/add-on that would create a new AS-IS clip from each clip that was "split at the playhead" and ALSO, make those final clips as well as every other existing clip in the project have its media file designation the same as its name.
    ie "each clip = new full quality movie and let its media file = name."
    This would save me around 10 hours per week.
    mac pro   Mac OS X (10.4.8)  

    Karsten is correct. iMovie itself does not support AppleScript.
    But for applications that don't support AppleScript, Apple offers a "System Events" AppleScripting alternative. It lets an AppleScript script use System Events to do things in OTHER applications. It can act on window objects, like click on a button. Theoretically, System Events can do just about any task in iMovie.
    Except, unfortunately, select a clip.
    That's right, there is no way to select a clip with a script. So a script can't control which object to act on. YOU have to select the clip manually. That's not an insurmountable problem, but it does mean you can't tell the script to export every clip in the Timeline.
    Probably the easiest way to do what you want is with QuicKeys, the third-party software that lets you define tasks, then assign a key to perform that task. Just about any task you can imagine. One kind of task is a macro to perform a series of actions. QuicKeys lets you record macros in any application. Its record function makes macro-writing pretty easy.
    (QuicKeys is one of those utilities I wouldn't be without. I use QuicKey keys hundreds of times a day for repetitive tasks.)
    Back to AppleScript. Theoretically, QuickTime Player Pro can do what you want. QuickTime Player is VERY scriptable.
    Here's the trick: Each time we save the iMovie project, iMovie updates the "Timeline Movie.mov" that's inside the Cache folder (inside the project package). When iMovie saves, it sets the selected frames of that movie to match the selected clip in the TimeLine. When you open the "Timeline Movie.mov" in QuickTime Player, the selected video/audio matches the clip selected in iMovie.
    So after you select a clip in iMovie, an AppleScript could save the iMovie project (to update the Timeline Movie), open the Timeline Movie in QuickTime, Copy the selected frames, Paste them into a new movie, then save the new movie.
    Back to QuicKeys. QuicKeys can work across multiple applications just like an AppleScript. So theoretically you could run part of a macro in iMovie and another part in QuickTime Player. And, if I recall, QuicKeys can run AppleScript scripts.
    What you REALLY want is an application that knows how to read iMovie project files and automatically exports each clip to its own movie.
    Maybe I'm missing some simple work-around. That'd be sweeeeeet!
    Yup. Sometimes the best solution is to avoid the problem, not solve it.
    We can export a project to the camera, then re-import it to a new iMovie project. When we do, most clips on the Timeline return as discrete clips. Clips like titles will not be editable, of course.
    That is best done early on, before we add titles, transitions and such. Import the newly-shot video, do a rough edit to get rid of the stuff you don't want, export the Timeline to the camera, re-import to a new project. All the junk will be gone and now each clip is a discrete clip with its own source file. NOW add titles and such.
    Karl

  • Making i movie trailer on last clip that needs to be optimised help!

    making i movie trailer, on last clip have alert that says clip needs to be optimized  help!

    Right-click on the clip (or Control-click) and see if it offers to optimize. If so, say Yes.
    You can also right-click on the clip in the Event and see if it offers to optimize. If so, say Yes.
    If it does not, come back and I will give you a different way to optimize.
    If you want to understand what is going on when you optimize, your camera shoots in a very compressed format. This is usually either AVCHD, h.264, or MPEG2. These are called Long GOP (group of pictures) compression techniques. See my post here for why it is good to convert to i-frames (or optimize) before editing.
    https://discussions.apple.com/docs/DOC-3941

  • Facebook has challenged the copyright of a movie using iMovie audio. Am i allowed to share movies made using audio clips from iMovie?, Facebook has challenged the copyright of a movie using iMovie audio

    Facebook has challenged the copyright of a movie using iMovie audio. Am i allowed to share movies made using audio clips from iMovie?

    Just curious as to why it's coming up as a copyright violation?
    Hard to say.  I think FaceBook errs on the side of abundance caution when they detect anything that sounds like music.
    It's also possible to that people use samples of various pieces of iLife audio contest to create a piece of work that they then copyright.
    Matt

  • . . . searching for movie date in file "Clip 03"?

    . . . searching for movie date in file "Clip 03".
    When I start iTunes, it immediately starts in with a series of messages like this . . . the program is frozen, and the "stop" button cannot be selected. Each message is on screen for a few seconds, then there is another, looking for another clip or photo file. Tis goes on for some time (+/- 10 minutes) until it finally gets to a slightly different message: "The movie file "Bounce Across 01" cannot be found. Without this file, the movie cannot play properly." This time there are two radio buttons -- "cancel" and "search." If I select "cancel" it goes away and iTunes works properly.
    I have tried re-installing iTunes, and it has been upgraded at least twice since this started. Any solutions? It has become very frustrating.
    Thanks.

    Can I be confident that these files are now self-contained, how can I check, and how can I keep this problem from recorring?
    Checking to see if the file is self contained is normally very easy. Just open the properties window and ensure the all resource references point to the main file.
    NOTE: Remember that some applications can demux "muxed" file content in the form of "elementary" stream files which are paired. (E.g., demuxing "muxed" MPEG-2 files as paired M2V and AIFF files to avoid transcoding the video.)
    As to avoiding the problem in the future, you would first have to determine what the original problem was. For all we know your drive could be failing, the system may have timed out while processing some higher priority task, you may have an intermittant connectivity issue, there could have been a one-time read issue, etc.

  • Adjust end of clip and move all other clips accordingly

    having found this help topic about trimming clips: Adobe Premiere Pro Help | Trimming clips, i figured i might be able to figure out how to adjust the end of a clip and move all subsequent media content accordingly.
    the situation would be: adding a word to dialogue, cutting out a word, something like that -- where you have to shorten or lengthen a clip, and you need to move all subsequent content accordingly.
    i used to know the name of the folks that did the study in the late 90's regarding help file "readability," which then resulted in the trend that help files don't offer the ability to dig deeper into the definitions of a software's vocabulary, but i forgot.
    at any rate:
    i don't know what the blue thing is called with which one moves around on adobe's timeline.
    now, i'm assuming i'll be able to dig that up.
    but i have a series of graphics -- and i want to move adjust the length of time graphic1 appears (let's say extend it's length). i'd like to "bump" or "move" or "ripple," or "roll," or "regular edit," the graphic so that -- when i move the right side of the graphic -- all subsequent graphics get "bumped" to the right (later in time).
    while i appreciate the alliteration of regular ripple and rolling edits, i did need to try them out to see what they do.
    and none of them appear to "bump" all subsequent content.
    i gather that i could "lasso" all of the subsequent content and nudge it and/or move it around -- but really -- i'd like to be in clip 19 -- adjust when that clip ends -- and move all subsequent content either later or earlier in time -- accordingly.
    ideally that "desire" would extent into: i am just going to move visual content, and "i am going to move visual and audio content."
    please have compassion for my "negative" tone, because i am having a bit of a "losing faith in humanity" moment right now - because i took about a 5 year break from tech and am now returning to tech -- and i expected user procedures to have improved.
    i'll be OK and will likely blog about it, but for now: can you either tell me some keyboard shortcuts or direct me to help files or just explain -- how to edit the various types of content in premiere the way i've outlined?
    i want to move all of the subsequent content over to the right. i do not want to just move the end of the last clip and the start of the next clip -- keeping the end of the next clip in the same place (which is apparently what the red double double arrow does).
    i seem to have tried out "regular, ripple, and roll," and maybe i'm almost there -- or one of those methods actually works -- but the word that is coming to mind is "bump."
    bump or nudge or adjust...
    anyway -- got any tips?

    hey Michael, your reply helps restore my faith in your humanity -- but seriously -- i need to use the "ripple delete tool" to NOT delete -- but extend and push?
    really?
    that is as obnoxious as going to the start button to shut down.
    how about going to the shut down button to start? how about that Bill Gates.
    and we still can't tell the difference between a lowercase l and an uppercase I online. Good job humanity. Sometimes even the 1 is the same as l and I  -- so you have 1lI  all looking the same.
    My 8 year old daughter thought I live in LLLinois? She was trying to read Illinois.
    Of course I have to go to "delete" to extend. What else? I have to go to start to shut down.
    ps --- that is why humanity has gone through the effort to call those thingies on doors: handles. See a handle can be used to open AND close a door.
    it is not the "close knob" it is the "door knob." why? because you can use it to open and close.
    it is not the on/off button -- though some call it that -- it is the "power" button.
    You go through the effort to create vocabulary that makes sense if you are going to create and sell software. I understand that sometimes it can be hard, but there are plenty of people, myself included, who have the intellectual capacity -- to find or create these kinds of cohesive procedural flows -- to a large extent due to our linguistic abilities.
    it's not rocket science, but it is, in a particular way -- quite difficult. it requires mental effort or some kind of "capacity," to realize that a "handle" often moves us between two or even more states -- like: open and closed.
    that is why we do not call it the "on" button.
    what does my HP printer have? oh it has an "on" button.
    dumb dumb dumb dumb
    more dumb
    and then -- i am even accosted with dumb -- from adobe?
    like awesome software industry standard adobe?
    like "we made PDF files" adobe?
    are you serious?
    ugh -- ok i will go to "delete" to NOT delete and extend
    i don't even care what that yellow thing is called anymore. i am just going to press command and click and get this project done for now...

Maybe you are looking for