3 Replies Latest reply on Mar 15, 2007 2:20 PM by Newsgroup_User

    QT problem

    newmfa
      Hi ..
      i have a problem with QuickTime movies members, in my dir movie there are 2 QT movies
      the first between frames 1-10 and the second between 10-20,
      when the first QT finished, i tried make jump from first QT to second with this code:

      on exitframe me
      if sprite(me.spritenum).playing then
      go to the frame
      else
      go to the frame + 1
      end if
      end

      but i got error "property expected"

      is there solve..?

      regards
      newmfa
        • 1. Re: QT problem
          Level 7
          "playing" isn't a property of a QT sprite/member - check the docs.
          While you're there, have a look for "movieRate"
          • 2. Re: QT problem
            newmfa Level 1
            i tried this code:

            on exitframe me
            if movieRate=0 then
            go to the frame + 1
            end if
            end

            but it may be not right way,,
            is there helper..?
            newmfa
            • 3. Re: QT problem
              Level 7
              This really is a FAQ and you should have found the answer by searching
              the forum. However, try something like the following attached to the QT
              sprite (watch for reader-introduced line breaks):
              --
              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