Playing avi backwards

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

  1. #1

    Default Playing avi backwards

    Hi,

    I have an avi file which i need twice, once normal, and once it has to play backwards. At the end of the animation it has to go to a marker. i used this code: global startfilm
    on prepareframe me
    if startfilm = 0 then
    set the movietime of sprite 1 = 1
    set the movierate of sprite 1 = -1
    set startfilm = 1
    end if
    end


    on exitFrame me
    if the movierate of sprite 1 = 0 then
    set startfilm = 0
    go to "hoofdmenu"
    else
    go to the frame
    end if
    endQ]It doesn't work.... can anyone please help?


    WilcoFiers webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Backwards Compatible?
      I am running DW8 and need to deploy Contribute at a client's site but I cannot buy previous versions of Contribute. I'm hoping the latest version is...
    2. Backwards Compatability
      I am sure that this question has been asked before. I need to export a connection key to a customer who has version 2 and i have olbviosly version...
    3. Backwards Audio
      At some point I am likely going to be interested in knowing how this happened...but for now, I would just like to resolve it. My audio is recording...
    4. sql2000 backwards
      i made the mistake of getting the enterprise evaluation edition that will soon expire. i just purchased the developer edition and am wondering how...
    5. Backwards Compatibility
      Indeed. What use is an upgrade that criples a program's functionality? This shiould be addressed in an upgrade. CS 1.1 or whatever.
  3. #2

    Default Re: Playing avi backwards

    I sugest having the foward play and reverse play on 2 different markers,
    having the foward play marker loop until the movie reaches the end, then
    play score to reverse play marker


    --- here's some code for reverse play


    on prepareframe me
    global startfilm
    if startfilm <> 1 then -- undefined also means start
    set the movietime of sprite 1 = sprite(1).member.duration -- move to
    end
    set the movierate of sprite 1 = -1 --- play reverse
    set startfilm = 1
    end if
    end


    on exitFrame -- wait for play to start (hope it reaches 0)
    if sprite(1).member.movietime > 0 then go to the frame
    end


    you cold use an on beginSprite handler to trigger the movie, this one
    time script would eliminate the need for startfilm variable
    JB Guest

  4. #3

    Default Re: Playing avi backwards

    Thanks alot, but i'm having a problem with this script; as soon as the movie starts playing, for a very short time it opens a new window in the top-left corner with the first frame of the movie in it, then it closes again, and then it plays the movie backwards like it's suppose to. It doesn't do this open-new-window-thingy when i run it without this script. What causes this to happend and can i fix it?



    WilcoFiers webforumsuser@macromedia.com Guest

  5. #4

    Default Re: Playing avi backwards

    On 03 Dec 2003, "WilcoFiers" [email]webforumsuser@macromedia.com[/email] wrote:
    > Thanks alot, but i'm having a problem with this script; as soon as the
    > movie starts playing, for a very short time it opens a new window in
    > the top-left corner with the first frame of the movie in it, then it
    > closes again, and then it plays the movie backwards like it's suppose
    > to. It doesn't do this open-new-window-thingy when i run it without
    > this script. What causes this to happend and can i fix it?
    I seem to recall seeing something like this (the window opening was
    actually the Windows Media Player) when attempting to set a video sprite's
    movieTime or movieRate in a beginSprite event.

    See if moving the script from the prepareFrame event to an enterFrame event
    cures it.


    --
    Mark A. Boyd
    Keep-On-Learnin' :)
    Mark A. Boyd 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