Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Playing AVIs or MPEGs

Status
Not open for further replies.

scottyjohn

Technical User
Nov 5, 2001
523
GB
Hi all,
I am very new to Director but fairly good with Flash so excuse the possibly silly questions!
I need a CD-ROM interface which will give info and play some movie clips. AVI or Mpeg havent decided yet.
I think I can see how to add the clips to the stage but how do you control playback etc.?

Thanks in advance

John Hope this helps
John
 
If you create your own buttons (play,stop, etc) then in their behaviour scripts put,

on mouseup me
set the framerate of member("your movie") = 1--change /
--this no. for pause,rr,ff, etc
end

the stop button is a little different,

on mouseup me
set the framerate of member("your movie") = 0
set the movietime of member("your movie") = 1
end

Chris.
 
One thing to note is that mpegs need an xtra to play so go with avi, the xtras are generally very good but you will need to hand over cash for most of them.

Another fun thing you can do is set the framerate to a negative for playing backwards. The system takes 1 as 100% play speed so you can use values other than 1 and 0 for different effects.
Most people never use this but you can give fast forward (value over 1) slow motion (value from 0 -1) and rewind (negatives).

The other script you will need is, this one will stay on the frame waiting for it to play to the end.
on exitframe
if sprite(X).movietime <> sprite(X).duration then
go to the frame
end if
end

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top