4 Replies Latest reply on Aug 16, 2006 7:52 AM by jumpOnCommand

    Published movie closed after 2 seconds

    jumpOnCommand
      Hi, for some bizarre reason, when I run my movie within director, it works fine, but when I publish it, it opens (runs) then self closes after about 2 seconds.

      It looks like a scripting problem, should I be using the 'onmouseup' command on my buttons?

      thanks

      jumpOnCommand
        • 1. Re: Published movie closed after 2 seconds
          Level 7
          You need to tell the movie to stop changing frames. In Author mode,
          when the movie gets to the last frame, it starts over again at the
          beginning. In a projector, when it gets to the end, it stops. The
          standard way to make the playhead stop moving is to put this onto a
          FRAME script

          on exitFrame me
          go to the frame
          end

          Then the movie will go up to that frame and stay there until you tell it
          to go somewhere else (like on a button you can say 'go to frame 2' or
          you can set up frame labels and go to them instead of the numeric frame
          number)
          • 2. Re: Published movie closed after 2 seconds
            jumpOnCommand Level 1
            That sounds about right :)

            Now, where did we say it needs to go? In Flash I placed things on the timeline, but I can;t for the life of me find where this goes.

            FRAME script you say? :)
            • 3. Re: Published movie closed after 2 seconds
              Level 7
              Look at your score window. There is the lower area where you see all
              your sprites. Directly above that is the area where it shows the frame
              numbers. Directly above that is the frame script channel. That is
              where you want to be. Double click in the frame script channel on the
              frame where you want the playhead to stop. It will open up a new script
              window with the 'on exitFrame' already built in. After that (but before
              the 'end'), type in

              go to the frame
              • 4. Re: Published movie closed after 2 seconds
                jumpOnCommand Level 1
                Thank you, Mike.

                Thanks perfect. Now I know its there, I'll be fine.

                Honestly, if you don't know what your looking for, its really hard to search for it. I've been looking on google and forums, but didn't know what it was I was after.

                Thanks again. :)