PDA

View Full Version : Movie control buttons in flash...


Suikoden
11-22-2002, 08:04 PM
Hello, havent been on in a while...i need to ask for some help if i may.

Basically i have two scenes: Preloader ; Content

in the preloader one i have, funnily enough, a preloader.
in the content one i have 1 layer that contains an .mpeg, .avi, .mov...whatever. it will change every week when i put a new one in its place.

my question is how can i make some buttons that will allow me to do the following:

[slow rewind] [play] [pause] [stop] [slow forward]

here is my thinking...for stop that fairly easy = goto&stop("beginning of movie")

but i cant understand the others i want to be able to pause then continue it by pressing play. HOW?

Also the slow rewind/forward? how would i do that frame by frame. Then continue it with play...etc...

Know where im coming from?

cheers

ask my a question if im talking cack

suikoden

vosgien
11-23-2002, 02:22 PM
Hi,
On your "slow fwd" & slow rewind" buttons you could use one of two lines of code:
rewind : lastFrame();//this will take your play head back one frame and stop or you could use
gotoAndStop(_currentframe-1)

slow fwd : nenxtFrame;// same as above only forward ( really!!)
or
gotoAndStop(_currentframe+1);

I would of thought that a simple stop(); is good enough for the pause button and no guesses for what you should put on the stop button (lol!)

If this not what you want, visit friendsofed.com there is a download there in the section for Foundation ActionScript, I cannot remeber exactly which section of that book, but it describes how to build a "video control panel" that does exactly what you ask. If you cannot find it and need it bad ( I mean real bad) let me know and I'll look it up for you - but later OK

Cheers

Vosgien

vosgien
11-23-2002, 02:33 PM
Ok, it's chapter 10, and inside the download zip you want ( guess??) videocontrols.fla

Hope it helps

Vosgien

Suikoden
11-24-2002, 10:54 AM
cheers bud thats solved it.

Laterz

Suikoden