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?!
Printable View
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?!
There are tutuorials on this at: www.wildform.com and www.macromedia.com
Macromedia also has a component for this.
Hi.
I think Wheels meant http://www.wildform.com/tutorials.
www.flix.com is a dvd rental site.
jb
Whoops!
I've got to quit posting at 4 AM!
You can add your own control buttons via actionScript.
on the "play" button put this code:
on the "stop" button put this code:Code:on (release) {
_root.yourvideo.play();
}
It's that easy :DCode:on (release) {
_root.yourvideo.stop();
}
Hope this helps!
:smoov:
how about rewind and fast forward... what do u put for them?!
also go to start & goto end... cheers!!
:)
Place an instence of the movie clip with the video file on the main stage and call it "vid"
Put this code on it
On your rewind button put this codeCode: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 fast foward button put this codeCode:on (press) {
_root.frwd = true;
}
on (release) {
_root.frwd = false;
}
For your go to star button put this codeCode:on (press) {
_root.ffwd = true;
}
on (release) {
_root.ffwd = false;
}
For your go to end button put this codeCode:on (release) {
_root.vid.gotoAndStop(start);//frame lable named start
}
Very easy... lots of fun! EnjoyCode:on (release) {
_root.vid.gotoAndStop(end);//frame lable named end
}
:mrpimp:
:smoov: cheers m8, u've helped me out no end!! :D
No problem... that's what we're here for *Thumb up*
Sorry to drag this old topic up, but I have a question.Quote:
Originally posted by Mystique_MHz
You can add your own control buttons via actionScript.
on the "play" button put this code:
on the "stop" button put this code:Code:on (release) {
_root.yourvideo.play();
}
It's that easy :DCode:on (release) {
_root.yourvideo.stop();
}
Hope this helps!
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: