1 Reply Latest reply on Jun 14, 2009 1:37 PM by Sean_Wilson

    Playback head jump to another frame after Quicktime has stopped

    Retrozilla Level 1

      Hi

       

      How can I make the Playback head automatically jump to another frame after a Quicktime Movie has stopped? Thanks for your answer.

       

      Regards

       

      Simon

        • 1. Re: Playback head jump to another frame after Quicktime has stopped
          Sean_Wilson Adobe Community Professional

          Cut, paste and compile the following as a score script (behavior) and drag it onto your QuickTime sprite:

          property spriteNum
          property my
          property myDuration
          property myTargetMarker
          
          on isOKToAttach(me, sType, sNum)
            if sType = #graphic then return ( sprite(sNum).member.type = #quickTimeMedia )
            return 0
          end
          
          on getPropertyDescriptionList
            if not(the currentSpriteNum) then exit
            return [#myTargetMarker: [#comment: "Frame to go to when finished:", #format: #marker, #default: #next]]
          end
          
          on beginSprite me
            my = sprite(spriteNum)
            myDuration = my.member.duration
          end
          
          on exitFrame me
            if ( my.movieTime = myDuration ) then
              go myTargetMarker
            else
              go to the frame
            end if
          end