Close or end an open movie

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Close or end an open movie

    Hi

    I have three+ movies:
    movie1
    movie2
    movie3

    Movie 1 has the option to play either Movie2 or Movie3. How can I close Movie2 when returning to the Movie1 or opening Movie3?

    I have tried play, play end, and go to lingo commands. None of which work. I have to esc out of all the opened movies. I will eventually have the option to open about 50 movies from each of the 50 movies and don't want users to have to exc 50 times. I create a projector that containes all of my movies and can be downloaded from the web.

    Thanks,
    Sarah


    Sponda webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. open/close 2 doors at the same time
      Im having trouble (again).. this time - I need to open/close two doors at the same time with the activation being from a button (object) that is not...
    2. Open & Close a window quickly
      I have an email that needs to link to a flash piece in a sized window. I believe that this is not possible b/c you cannot have javascript in an...
    3. Open file, make changes, save file, close, re-open, file contents not changed
      I've now run into this several times and it's completely destroyed all of my confidence in Ilustrator CS on Mac. I'm hoping someone can confirm that...
    4. open and close the door
      hi Agustín !! Thx for the answer. I think i ll need a variable to detect if the motion reach the end of the portion open for then determine...
    5. how to close an open cursor
      I got careless and had an infinite loop. Killed my session. Now my cursor is still open. I dont have a handler too it. How do I close it without...
  3. #2

    Default Re: Close or end an open movie

    I am assuming that Movie 1 plays in the stage and the rest play in a MIAW?

    If this is the case, then you need to "forget" the MIAW window

    Is there a reason why you are not loading the movies into the stage? if you were they would just keep replacing each other.



    ============================
    Glen Palmer
    SafariTECH
    Cold Fusion Specialist
    [url]www.safaritech.com[/url]
    ============================
    SafariTECH Guest

  4. #3

    Default Re: Close or end an open movie

    You could try using go movie instead of play movie.

    This would do what you're asking.

    hth,

    regards,

    richie

    On Thu, 17 Jul 2003 13:58:51 +0000 (UTC), "Sponda"
    [email]webforumsuser@macromedia.com[/email] wrote:
    >I am not using MIAW.
    >
    >Explain how to do the loading. I am just using play movie lingo right now, which plays each movie but does not replace the old with the new.
    >
    Richie Bisset Guest

  5. #4

    Default Re: Close or end an open movie

    I will try to exlain this better.

    In Movie 1 I am using a link box which contains the lingo

    on mouseup me
    play movie "Movie2"
    end

    When the link box is clicked on, the movie specified (Movie2) plays.

    Movie2 also has a link box, which specifies to play Movie3 or whichever movie is chosen to be played. I have up to 50 movies (Movie1-Movie50), all of which can be played from eachother.

    I don't have each movie, Movie2 - Movie50, return to Movie1 after being played. Movie1 is just an introduction to all the movies, explaining what each entails and the user then goes to Movie2 - Movie50 and follows instructions. When done with Movie2, the user then can navigate, using the link boxes within each movie, to other movies. The user doesn't ever need to go back to the previous movie, unless a link box for that movie is chosen.

    So, in short, I have Movie1 through 50. Movie 1 connects to Movie2 - Movie50 but each of the movies connect to eachother as well.

    The way I currently have it:

    on mouseup me
    play movie "movieName"
    end

    plays the specified movie but doesn't close the movie when the movie is done. I have to esc out of each movie in order for the projector to close.

    I would like to have a command in each of the movies, telling it to close the current movie (which is itself) when another movie is played.


    Sponda webforumsuser@macromedia.com Guest

  6. #5

    Default Re: Close or end an open movie

    > I would like to have a command in each of the movies, telling it to close the
    current movie (which is itself) when another movie is played.

    You need to use
    go movie "Movie2"

    as otherwise Director keeps the previous movie in RAM with a view to you
    returning to it using "play done".

    Andrew

    Andrew Morton Guest

  7. #6

    Default Re: Close or end an open movie

    hmm,

    Well "play" is supposed to play the selected movie and the return to where it started, so that's probably not what you want.

    All your links should be "go to movie moviename"

    This should cause it to load up the selected movie in the stage and then play it as if it was the only movie you played in the first place ... whatever was there to start with (i.e. Movie 1) will be replaced with the new selection (although global variables etc will be remembered).

    If you do this then what happens at the end of each movie is only dependant upon how you have them coded. Basically, if you can open movie2 in Authoring mode and have it play properly and as you require, thats how it should play in the projector.


    your comment:
    plays the specified movie but doesn't close the movie when the movie is done. I have to esc out of each movie in order for the projector to close.

    is what I think is confusing ... if Movie2 has to keep running to allow users to select the next movie, then you don't want it to close when its done, you want it to hold on a frame at the end until a selection is made ..... and you definitely don't want the projector to close since thats where all your movies should be playing in the first place?










    ============================
    Glen Palmer
    SafariTECH
    Cold Fusion Specialist
    [url]www.safaritech.com[/url]
    ============================
    SafariTECH Guest

  8. #7

    Default Re: Close or end an open movie

    I have tried using

    on mouseup me
    go to movie "Movie2"
    end

    but I get the same results.

    You are right, I want to have the current movie hang on until the next movie is opened and then close. So maybe I have to have a command at the beginning of each movie to close all the other movies. Not sure how to do this.

    My end result that I want is for when the user is done, they only have to esc once to close the projector.


    Thanks for all your help. Just discussing it helps to brainstorm different ways to try.

    I will try the go to movie again and report the results.


    Sponda webforumsuser@macromedia.com Guest

  9. #8

    Default Re: Close or end an open movie

    I agree with you, go to movie should work.

    I have tried this in the past, without success. I will be trying it again.



    Sponda webforumsuser@macromedia.com Guest

  10. #9

    Default Re: Close or end an open movie

    Are you trying to open projectors rather than .dir's here? If it's
    just .dir's or .dxr's then go movie should work fine.

    On Thu, 17 Jul 2003 14:56:00 +0000 (UTC), "Sponda"
    [email]webforumsuser@macromedia.com[/email] wrote:
    >I have tried using
    >
    >on mouseup me
    >go to movie "Movie2"
    >end
    >
    >but I get the same results.
    >
    >You are right, I want to have the current movie hang on until the next movie is opened and then close. So maybe I have to have a command at the beginning of each movie to close all the other movies. Not sure how to do this.
    >
    >My end result that I want is for when the user is done, they only have to esc once to close the projector.
    >
    >
    >Thanks for all your help. Just discussing it helps to brainstorm different ways to try.
    >
    >I will try the go to movie again and report the results.
    >
    Richie Bisset Guest

  11. #10

    Default Re: Close or end an open movie

    I replaced all my play movie lingo to go to movie and created a Projector with the first 3 movies.

    The first time I played the projector, it worked and closed the projector with escape. Then, each time after that I had to escape out of all the movies, just as with the play movie command.


    Sponda webforumsuser@macromedia.com Guest

  12. #11

    Default Re: Close or end an open movie

    When you compile the projector did you set it to play all movies?

    If so then you will have to exit each one.
    If the movies are linked and not in a liner play line, then you don't need
    to select play all movies.

    Hope this helps
    Let me know


    Adam


    Adam Vernon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139