Navigating Out Of Movie Clips

Hi, i have a presentation set up whereby I have 2 scenes,
Intro Movie and Introduction. I have a Movie Clip in Introduction
with a number of navigation buttons in it for within this
movieclip, but i need one button to replay the Intro Movie in the
other scene. Can someone help me out with some actionscript for
this? Any help would be greatly appreciated

it goes like this - the main timeline is the _root of the
movie. Anything on that timeline has a . after it. So if you have a
movieclip called "clip1" and inside of that another movieclip
called "subclip" then the full path to that movie is:
_root.clip1.subclip
From the subclip movie if you want to control the main
timeline you just write something like this:
button1.onRelease = function(){
_root.gotoAndPlay(1);
No matter where that button is located (inside a clip inside
a clip inside....) it will still control the main timeline.
Hope that makes sense.

Similar Messages

  • Video fading in, but not out in movie clip.

    Hi.
    I need to run a video which I can turn off and on on top of other flash content.
    Since I also need to add sub titles I decided to import the video clip into a movie clip. The movie clip now has as many frames as the video.
    I added the subtitles by keyframing a text line in the movie clip and synched it up with the movie. (this was not real easy..)
    I placed an instance of the movie clip on my main stage in frame 10. I added an on and and off button that simply would take you to a later frame without the movie clip instance, and back to frame 10 again if you want to see the video again. This worked well. 
    To make the transistions elegant I wanted to fade the video in and out. So on the main stage in frame 10 I placed this action script:
    (+ gave my movieclip the instance name mc)
    stop();
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var myTween:Tween = new Tween (mc,"_alpha",Strong.easeIn,0,100,2,true);
    which nicely fades the video in when the playhead gets to frame 10.
    There is another part of the script that should be able to tell the upcoming end of the movie clip and fade it out:
    myTween.onMotionFinished = function () {
       new Tween (mc,"_alpha",Strong.easeOut,100,0,2,true);
    This however I can not get to work:
    1)  If I place this code in frame 10, the video first fades in but immideately fades out again.
    2)  I tried to put the code 15 frames from the end of the movie clip, and that did not work.
    3)  I tried to put the code 15 frames from the end of the movie clip and add _parent.  and that did not work either.
    Can this be made to work, and if so how?
    If not, please let me know if you have any other proven approach to suggest.
    ggaarde

    Hi Ned
    This does not work for me.
    Again the instance of the movieclip is on the main timeline in frame 10 with stop action
    I have put the code you suggested in frame 13 of the main time line. also with a stop action.
    Then in the movieclip I have put this code approx 100 frames from the end of the clip:
    _parent.gotoAndPlay(13);
    How else would he main movieclip know when to start the fadeout?
    The myTween.onMotionFinished = function should maybe detect it, but i have not had luck using it. The only time it works is like described in my first post, but it triggers right away and fades out as soon as it is done with the fade in.
    Is there a way to tell it on which frame in the mc it should start the fade out?
    ggaarde

  • How to find out where movie clips are used?

    When I look at FLA project tree, I see Use Count column next to a movie clip. How do I find where this movie clip is used?

    Hi,
    You can use Edit > Find and Replace panel and set Symbols to Search
    Hope this Helps
    Thanks!
    Mohan

  • Navigating between two movie clips

    Within my animation I have two movie clips, one movie clip "clipA" runs to a certain point then a series of buttons appear when you hit the button it loads another movie clip "clipB" into the first movie clip "clipA".
    Whith in the second movie clip "clipB" I would like to be able to, at a certain frame navigate to a different frame within "clipA" is this possible to do with actionscript 2.0

    In clipB's main timeline you can use _parent.gotoAndPlay.... the _parent targets clipA

  • Working with movie clip in flex

    I am using a movie clip with animation having 2 frames
    developed in flash cs3 in flex. The movie clip has mouse hover and
    mouse out animation. Now I am using the movie clip and want to make
    a click event on the clip. But it does not work at one click. I
    have to click more than once. Also When I remove that animation the
    click event goes well.
    Can I make a movie clip by flex?
    or
    How can I use that movie clip with animation developed in
    flash cs3 and also click event work well.
    Please help me.

    Actully I have two frame in movie clip(cs3). On mouse hover
    it goes to second frame and on mouse out it comes to first frame.
    Now when I am using this movie clip in flex and want to get the
    click event on that movie clip it does not work at once. If I
    remove the mouse hover and mouse out from movie clip the click
    event works. But to get those mouse hover and mouse and in over
    movie clip I had to write to many code.
    However that mouse hover and mouse out by flex over movie
    clip it takes time to get work.

  • Adding Sound to Movie Clips

    I am relatively new to Flash and I have taken over a Flash
    project that was made out of Movie Clips (.swfs). This was done by
    creating the presentation out of 5 separate documents (saved as
    .swfs) with a behavior action added to the last frame of each file
    telling the movie to load the next external movieclip.
    Now that the project is finished, I am not sure if there is
    any way to add sound to the file since it is made out of separate
    movieclips rather than one long flash document. Everytime the new
    movieclip loads, the music will either start over at the beginning
    for that document, or stop playing all together. Is there any way
    to make the music play continously through all five movies?
    Any help will be greatly appreciated!!
    Thanks!

    Fritza8 wrote:
    > I am relatively new to Flash and I have taken over a
    Flash project that was
    > made out of Movie Clips (.swfs). This was done by
    creating the presentation out
    > of 5 separate documents (saved as .swfs) with a behavior
    action added to the
    > last frame of each file telling the movie to load the
    next external movieclip.
    >
    > Now that the project is finished, I am not sure if there
    is any way to add
    > sound to the file since it is made out of separate
    movieclips rather than one
    > long flash document. Everytime the new movieclip loads,
    the music will either
    > start over at the beginning for that document, or stop
    playing all together. Is
    > there any way to make the music play continously through
    all five movies?
    >
    > Any help will be greatly appreciated!!
    > Thanks!
    Place the music in main level while loading the other content
    in level 1.
    Levels run independently and while the other movie keep
    loading one after
    another, it won't interrupt the sound in main level.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Fade a move clip as it leaves the scene

    Hi I’m not sure if this is possible so if someone could
    let me know and if it is give me some pointers i would be extremely
    grateful.
    Basically i have a move clip that scrolls of either side of
    the scene, one side is ok but the other doesn't look very good
    because of the hard line that the images finish on in the middle of
    the web page. I want to fade out the move clip starting 30px or so
    from the end of the scene to make it look nicer. The movie clip
    will always be inside the scene therefore only the part that is
    scrolled off needs to be faded. Hope that’s clear, i can fade
    a move clip out but don't know how to or if its possible to fade
    part of one starting at a specific x point.
    Any ideas appreciated
    Cheers

    If I understand correctly then u can use a gradient to do
    this.
    Create a shape and select it.
    In the colormixer change solid into linear.
    then select one of the buckets (make sure there both the same
    color)
    and set the alpha to 0.
    gr Martin

  • Embed movie clip in flex

    Hey,
    I have converted a avi file to an swf file with "MediaCoder".
    My plan was to simply embed this movie clip into my flex application, which did not work for me. :-(
    How can I embed the swf movie into flex AND play/stop the movie with buttons?
    I tested the following code, but when I click on the stop button I get the error:
    "TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich."
    Obviously there is a problem with that swf file because another swf file is working...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" horizontalAlign="center" >
        <mx:Panel width="500" height="336">
        <mx:SWFLoader minHeight="300" minWidth="300" id="swfObj" source="@Embed('movie.swf')" creationComplete="init();" height="203" width="462"/>
        <mx:Button click="stop();" label="stop">
        </mx:Button>
        </mx:Panel>
        <mx:Script>
            <![CDATA[
                import flash.display.MovieClip;
                public var mc:MovieClip = new MovieClip;
                public function init():void {
                    mc = ( ( swfObj.content as MovieClip ).getChildAt(0) as Loader ).content as MovieClip;
                public function stop():void
                    mc = ( ( swfObj.content as MovieClip ).getChildAt(0) as Loader ).content as MovieClip;
                    mc.gotoAndStop(20);
            ]]>
        </mx:Script>
    </mx:Application>

    Actully I have two frame in movie clip(cs3). On mouse hover
    it goes to second frame and on mouse out it comes to first frame.
    Now when I am using this movie clip in flex and want to get the
    click event on that movie clip it does not work at once. If I
    remove the mouse hover and mouse out from movie clip the click
    event works. But to get those mouse hover and mouse and in over
    movie clip I had to write to many code.
    However that mouse hover and mouse out by flex over movie
    clip it takes time to get work.

  • Navigating movie clips

    Hi. I've basically been copying code from a series of tutorials, and now I've hit a wall because the series doesn't cover this part, and I'm certainly no expert at ActionScript.
    Basically, I'm trying to handle all the navigation with movieclips instead of moving around on the timeline. What Im trying to achieve is to have a main 'page' with a couple navigation buttons. One of them (cartoonButton) would open a movieclip called cartoonBG, which is a 15 frame alpha fade-up that would end with a frame with buttons for opening cartoons (right now, there's only one cartoon, but eventually there will be more).
    The problem is, as soon as the file opens, it goes into a loop, playing the cartoonBG movie clip over and over. So, I guess I need to know how to make it so that the frame is still when the clip opens, and then I can do an onRelease for cartoonButton and have that open and play cartoonBG. That's sample 1.
    Sample 2 is what I have for frame 15 of cartoonBG. That would be where the alpha fade-up stops, and I want it to be set so you click episode1Button and that loads BnR1.flv into the NetStream (and, later on, when I have a second cartoon, episode2Button would load BnR2.flv and so on). That's sample 2.
    Thanks so much in advance if someone could help me out!
    SAMPLE 1:
    stop;
    cartoonButton.onRelease = cartoonBG.play;
    SAMPLE 2:
    stop;
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    theVideo.attachVideo(ns);
    ns.play("BnR1.flv");
    playButton.onRelease = function() {
        ns.pause();
    var videoInterval = setInterval(videoStatus,100);
    var amountLoaded:Number;
    var duration:Number;
    ns["onMetadata"] = function(obj) {
        duration = obj.duration;
    function videoStatus() {
        amountLoaded = ns.bytesLoaded / ns.bytesTotal;
        loader.loadbar._width = amountLoaded * 475;
        loader.scrub._x = ns.time / duration * 475;
    var scrubInterval;
    loader.scrub.onPress = function () {
        clearInterval(videoInterval);
        scrubInterval = setInterval(scrubit,10);
        this.startDrag(false,0,this._y,461,this._y);
    loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
        clearInteral(scrubInterval);
        videoInterval = setInterval(videoStatus,100);
        this.stopDrag();
    function scrubit() {
        ns.seek(Math.floor((loader.scrub._x/461)*duration));

    That works, but I actually want it to be set up so I (or the user) could go back to cartoonBG again, as opposed to getting rid of it completely.
    The way I'm setting this up is that homeButton, cartoonButton, and a couple others (extrasButton, downloadsButton) are all navigation on a footer that will always be there, but they'll bring up these different movie clips (cartoonBG, extrasBG, etc.) instead of going to other frames on the main timeline. The tutorial I was working off of seemed to think that was the way to go, and for whatever reason, I took him at his word.
    Anyway, is there a different way I could code homeButton that wouldn't get rid of cartoonBG?
    I should also take this opportunity to say thanks for all this help! I really do appreciate it!

  • Please help! Nested Movie Clips as navigation bar

    Hi everyone,
    I just had my first flash lesson a couple of days  ago, but decided to venture myself into trying to build a navigation  tool bar with movie clips grouped together. My intention is that once  the mouse rolls over one particular movie clip, another movie clip fades  in under it (my version of a "drop down" menu). Just so it happens, the  movie clip that fades in, is also comprised of particular movie clips  with their own behaviors (roll over tween effects).
    I can make  each individual movie clip behave as it should, but I cannot get them to  work once they are pieced together. I'm attaching a link that contains  the file I'm talking about (submenu), in the hopes that one of you good  Samaritans would take a look at it and tell me where I went wrong.
    Hopefully   I haven't absolutely shocked you guys with my level of ignorance.
    http://docs.google.com/fileview?id=0B09iy1xwVTUYZmY0NjdhM2EtZDRjYS00MGNlLWJmNmEtMDJmOTI4ZT ZjYWFi&hl=en
    Gaby

    its just with the frame labels you have given every where.
    and its the same "over" and "out"
    the player is confused to play which one fist
    i removed some lables and saw that it works partially. (did not debug the whole fla)
    hope you will got the way

  • Yellow triangle and a grayed out movie clip

    Hi, I created a project in iMovie 08, kind of elaborate for me, with several movie clips, each with a transition, and background music from iTunes through out the majority of the 3 minute and 30 second final project. Initially, all was well and the project played perfectly. A couple of days later when I went into iMovie 08 to enhance the project, several clips were grayed out and had a yellow triangle in the clip. Placing the cursor over the clip resulted in the clip "coming to life" that is revealing the clip but the clip was not visible in the browser and the grayed out clips were not visible if I played the project in full screen mode. If I published the project to the web, the grayed out clips would not show (the video portion); the audio which was part of the whole project would play. I do not think I moved any clips to a different location although I certainly added other clips to iPhoto and then to iMovie. I just finished the lynda.com training on iMovie 08 which was just released and I got no help from that training on the yellow triangle problem. Any help or ideas would be appreciated. Thank you.

    Great news! After some browsing around, I located the problem, and now my movie project is fixed!
    As it turns out, videos that are located in iPhoto are referenced based on the Event that they belong to, which means that if you change the name of the Event that the picture belongs to then iMovie will no longer be able to find your picture. (This is also why the clips appear in the lower section of iMovie, because they are still there, just in a renamed or merged event.)
    I was able to fix the problem very easily by renaming my event back to the original name, and then after closing and restarting iMovie all the nasty little yellow triangles were gone and all my clips were back as if they'd never left.
    This may or may not help, but for me, to make sure that I got the event name correct, I found the movie file (which was in "Movies/iMovie Projects") and then right mouse clicked and selected "Show Package Contents" so that I could see what was in my project, and then opened the "Project" file, which had the names listed in it. Hope that helps!
    Trigby

  • Movie Clips Actions Get Out Of Synch With Audio

    My movie is five about minutes long with audio and an offscreen timeline move clip containing action script to control other movie clips or play the root directory.   After about a minute or so, movie clips get out-of-synch with the audio, apparently its getting bogged down.
    My swf file doesn't seem that big, about 2.2MB and my move clips aren't that complex, although up to three levels deep.
    My version is Flash 8 Professional and my laptop was on the high end about 18 months ago.
    Am I missing something or expecting too much from Flash?
    Thanks,
    Mike (who seems to know enough to be dangerous)

     

  • CC 2014 trial. MPEG MOVIE clips flickering on my time line! after render, and after export. tried all kinds of sequence settings,taking out transitions and effects ,even the audio tracks.....still flickering. They play fine outa the project files!?  HELLL

    CC 2014 trial. MPEG MOVIE clips flickering on my time line! after render, and after export. tried all kinds of sequence settings,taking out transitions and effects ,even the audio tracks.....still flickering. They play fine outa the project files!?  HELLLLLPPPPP!!!!

    We can not see your computer, your settings or even know what your source files are because we are not in the same room as you are!
    We cant see what you are doing wrong ...so you will have to tell us a lot more and show us some screen grabs of your settings.

  • I figured out how to snap a still photo of a movie clip, but where then does it go, and how can I import it into my iPhoto library?

    I was working in iMovie and discovered how to take a still photo of a movie clip.  Now I can't find that still photo!  Where did it go, and how can I import it to my iPhoto library?

    Just found out and it is simple.  When you find a frame in your video/movie of which you want a still photo or screen shot, just go to the frame and click on command, shift and the #3 in quick succession.  You will hear a "click" like a camera taking a photo.  The screen shot will then go to your desktop where you can drag it to iPhoto or an e-mail, or anywhere you like.  Also you can rename the screen shot by double clicking on the wording under the screen shot on your desk top. Whew!

  • Getting a picture out of a movie clip

    I was wondering if there was a way to get a snapshot out of a movie clip that I have in iMovie...

    For future reference, you can usually find the answers to basic questions by using the 'Search Discussions' option above.
    This is the last time this question was answered:
    http://discussions.apple.com/thread.jspa?threadID=2119953&tstart=30
    Regards, Z

Maybe you are looking for

  • HT1349 My computer will no longer recognize my iPod. When plugged in iTunes sits at "Verifying Dennis' Books", and iTunes locks up. Thoughts to clear this, anyone?

    When connecting my iPod to any of my PCs it hangs up while it is "Verifying Dennis' Books" (the name of my iPod).  The iTunes session shows as not working in a Task Manager. The iPod works okay away from the computer, but I am close to finishing the

  • BT: Biggest Waste of Time I have ever had the plea...

    Will someone with an ounce of responsibility please call me directly. I am fed up of dealing with idiot employees who take no responsibility for anything! I have taken 3 days off work to have them wasted by this joke of a company! Literally just had

  • Snapshot and backup

    Hello BW Experts, Current Scenario: There is a daily snapshot of the BW system in nite for our Production server. During this they have to stop any jobs / loads running at that time. Secondly they take a backup every weekend. They stop any jobs / loa

  • How to transfer DVD RAM (MPeg 2) videos into imovie?

    I just bought an IMAC with OS X and Tiger to transfer all my DVD RAM discs into imovie, only to find out imac doesn't recognize the camera (Hitachi DZ-MV100A). Does anyone know of a drive I can buy to connect to the IMAC that would allow me to transf

  • Add row in Smart View

    Hello, I've created a form in Planning and have allowed users to dynamically add rows. This works fine while I'm in Workspace but if I open the form in Smart View, I cannot add rows. How can I add rows while in Smart View?? Thanks! Edited by: user107