I've recently started working with FunkySoul's Progressive Flash Video Player and I was wondering how to remove the autostart function in this player so that to start the movie users will have to click the play button.
Progressive Flash Video Player - Removing Auto start
Started by lastphoenixash, Feb 16 2007 10:16 AM
1 reply to this topic
#1
Posted 16 February 2007 - 10:16 AM
#2
Posted 16 February 2007 - 05:55 PM
Don't place the netStream.play(file); thing straight onto the first frame, but onto the play button. So maybe something like:
var autoPlay:Number = 0; // 0 or 1
if(autoPlay == 1) {
netStream.play("file");
}
....
playBtn.onRelease = function() {
if(autoPlay == 0) {
netStream.play("file");
} else if(autoPlay == 1) {
netStream.pause(false);
}
}
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
