Ask a Question related to Macromedia Director Lingo, Design and Development.
-
WilcoFiers webforumsuser@macromedia.com #1
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
-
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... -
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... -
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... -
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... -
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. -
JB #2
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
-
WilcoFiers webforumsuser@macromedia.com #3
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
-
Mark A. Boyd #4
Re: Playing avi backwards
On 03 Dec 2003, "WilcoFiers" [email]webforumsuser@macromedia.com[/email] wrote:
I seem to recall seeing something like this (the window opening was> 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?
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



Reply With Quote

