3 Replies Latest reply on Nov 27, 2007 6:11 AM by robdillon

    backward and forward buttons for AVI video

    angui_p
      hi
      is there a way to do a backward and forward buttons for AVI video using lingo?
        • 1. Re: backward and forward buttons for AVI video
          robdillon Most Valuable Participant
          Do you mean play forward and reverse buttons, or single frame forward and back buttons?
          • 2. Re: backward and forward buttons for AVI video
            angui_p Level 1
            yes i mean forward and reverse, not single frame, is it possible?
            • 3. Re: backward and forward buttons for AVI video
              robdillon Most Valuable Participant
              Yes it is. Use a behavior like this for the forward button:

              --------------
              property thisSprite
              property dvSprite

              on getPropertyDescriptionLIst
              myPropList = [:]
              myPropList.addProp(#dvSprite,[#comment:"enter the sprite channel number for the video sprite:",#format:#integer,#default:""])
              return myPropList
              end

              on beginSprite me
              thisSprite = me.spriteNum
              end

              on mouseUp me
              sprite(dvSprite).movieRate = 1
              end
              -----------------

              although I'm not sure that AVI can play backwards, try this for the reverse button sprite:

              --------------
              property thisSprite
              property dvSprite

              on getPropertyDescriptionLIst
              myPropList = [:]
              myPropList.addProp(#dvSprite,[#comment:"enter the sprite channel number for the video sprite:",#format:#integer,#default:""])
              return myPropList
              end

              on beginSprite me
              thisSprite = me.spriteNum
              end

              on mouseUp me
              sprite(dvSprite).movieRate = -1
              end
              -----------------