Skip to main content
Participating Frequently
April 5, 2007
Question

Actionscript to add to buttons to control flv

  • April 5, 2007
  • 2 replies
  • 349 views
Hi,
I'm trying to create the following:

1.A play button that plays an flv.
2.A pause button.
3.Actionscript that makes movie go to a certain frame on timeline when flv finishes playing.

Any help with the actionscript for these will be much appreciated.

Cheers
This topic has been closed for replies.

2 replies

DilroyAuthor
Participating Frequently
April 6, 2007
Thanks for your reply but which code goes on which button?
Darshan_Rane
Inspiring
April 6, 2007
here's the code

var nsVideo:Netconnection = new NetStream(ncVideo)
ncVideo.connection(null);

var nsVideo:NetStream = new NetStream(ncVideo);
nsVideo.play("video.flv");

vFlv.attachVideo(nsVideo);

var nDuration:Number = 0;

mPlay.press = function():Void {
nsVideo.pause(flase);
};

mPause.onPress = function():Void {
nsVideo.pause(true);
};

mStop.onPress = function():Void {
nsVideo.pause(true);
nsVideo.seek(0);
}

create buttons for play pause and stop