Click to See Complete Forum and Search --> : adding play & stop buttons to an FLV
Adover
10-03-2002, 08:21 AM
im trying to control an FLV file ive imported, on the play button its a simple gotoandplay(1) on the stop... gotoandstop, but its not working?! is there anything i need to know about getting it to work?!
Wheels
10-03-2002, 10:36 PM
There are tutuorials on this at: www.wildform.com and www.macromedia.com
Macromedia also has a component for this.
Jonathan_B
10-04-2002, 03:08 PM
Hi.
I think Wheels meant http://www.wildform.com/tutorials.
www.flix.com is a dvd rental site.
jb
Wheels
10-04-2002, 03:12 PM
Whoops!
I've got to quit posting at 4 AM!
Mystique_MHz
10-04-2002, 04:02 PM
You can add your own control buttons via actionScript.
on the "play" button put this code:
on (release) {
_root.yourvideo.play();
}
on the "stop" button put this code:
on (release) {
_root.yourvideo.stop();
}
It's that easy :D
Hope this helps!
Adover
10-08-2002, 05:04 AM
:smoov:
how about rewind and fast forward... what do u put for them?!
also go to start & goto end... cheers!!
:)
Mystique_MHz
10-08-2002, 09:54 AM
Place an instence of the movie clip with the video file on the main stage and call it "vid"
Put this code on it
onClipEvent (enterFrame) {
if (_root.ffwd == true) {
frame = this._currentframe+5;
this.gotoAndStop(frame);
}
if (_root.frwd == true) {
frame = this._currentframe-5;
this.gotoAndStop(frame);
}
}
On your rewind button put this code
on (press) {
_root.frwd = true;
}
on (release) {
_root.frwd = false;
}
On your fast foward button put this code
on (press) {
_root.ffwd = true;
}
on (release) {
_root.ffwd = false;
}
For your go to star button put this code
on (release) {
_root.vid.gotoAndStop(start);//frame lable named start
}
For your go to end button put this code
on (release) {
_root.vid.gotoAndStop(end);//frame lable named end
}
Very easy... lots of fun! Enjoy
:mrpimp:
Adover
10-08-2002, 09:57 AM
:smoov: cheers m8, u've helped me out no end!! :D
Mystique_MHz
10-08-2002, 10:00 AM
No problem... that's what we're here for *Thumb up*
RhameJ
01-01-2004, 12:26 AM
Originally posted by Mystique_MHz
You can add your own control buttons via actionScript.
on the "play" button put this code:
on (release) {
_root.yourvideo.play();
}
on the "stop" button put this code:
on (release) {
_root.yourvideo.stop();
}
It's that easy :D
Hope this helps!
Sorry to drag this old topic up, but I have a question.
I used this code but it didnt work until I removed "_root."
I have my main .swf that loads another .swf that then loads the video. So I took out the _root and it worked.
But whats weird is that the ff and rw buttons will not work unless the _root is in the the code?
How come?:confused:
flashkit.com
Copyright Internet.com Inc., All Rights Reserved.