FORUMS: list search recent posts

Stop Flash video from autoloading

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Stop Flash video from autoloading
on Jun 26, 2007 at 11:51:34 pm

Help, I've scoured everywhere. How do i make it so that the flash video does not load until play is clicked? can't find anything about this.

the goal is for the timeline to stay empty, and then when the play button or the video area is clicked, the timeline starts downloading/buffering.


Return to posts index

Re: Stop Flash video from autoloading
on Sep 13, 2007 at 11:56:46 am

I'm also wanting to know how to pause downloading after the first few seconds of data and not continue downloading the rest of the file until the user clicks on the play button.

Can someone help me out?

I've also scoured the helpfile and maybe I'm not searching on the correct keywords.
I'm trying, stop, pause, preload, etc. without any luck.

Return to posts index

Re: Stop Flash video from autoloading
on Sep 13, 2007 at 1:40:09 pm

Like Sher said... if you're using the FLV component, set the autoPlay value to 0. You can do this either by setting the parameter in the Parameters window (Windows > Properties > Parameters) or if you're using Actionscript to create the FLVPlayback component, your code would look something like this:

var flvPlayr:FLVPlayback;
flvPlayr.autoPlay = false;
flvPlayr.contentPath = "";

If you're using the NetStream and NetConnection class, you just put this piece of code on your play button:

var nc:NetConnection = new NetConnection();
var ns:NetStream = new NetStream(nc);

Kind regards,

Return to posts index

Sher Ali
Re: Stop Flash video from autoloading
on Sep 13, 2007 at 1:02:39 pm

If you are using built-in media components then these componenets allow you to set a bunch of properties during authoring environment.

See the documentation of the NetStream class if you are using the Video Class object for displaying video.

Sher Ali

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved