FORUMS: list search recent posts

Stop Flash video from autoloading

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
ddangelo
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.

thanks,
david


Return to posts index

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

Hi,
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.
Thanks,
Rational


Return to posts index

Doccie
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:

import mx.video.FLVPlayback;
var flvPlayr:FLVPlayback;
flvPlayr.autoPlay = false;
flvPlayr.contentPath = "http://www.somedomain.com/myflv.flv";

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();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
myVid.attachVideo(ns);
ns.play("http://www.somedomain.com/myflv.flv");


Kind regards,
Pieter


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
http://www.webeyestudio.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]