Jump to content


Progressive Flash Video Player - Removing Auto start


  • You cannot reply to this topic
1 reply to this topic

#1 lastphoenixash

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 16 February 2007 - 10:16 AM

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.

#2 Ben

    P2L Jedi Master

  • Publishing Betazoids
  • PipPipPipPip
  • 1,366 posts
  • Gender:Male
  • Location:VIC, Australia

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