hi,
i have a website in that i put one flash file but the client needs when open the browser first he want buffering that file after buffering he wants palying
anybody help me
hi,
i have a website in that i put one flash file but the client needs when open the browser first he want buffering that file after buffering he wants palying
anybody help me
Short summary and context: asked how to make a video wait (buffer) before it starts playing. rightly pointed at the preloader idea, noted player-level differences, and pointed to generic preloader tutorials — but video buffering is handled differently from a SWF preloader. Note that Flash Player reached end-of-life on December 31, 2020; for new projects use HTML5 <video> with preload and canplaythrough. For legacy Flash work (in controlled environments), the usual approach is to control NetStream buffering explicitly.
How to do it in ActionScript 3 (progressive download): create a NetConnection/NetStream, set bufferTime to the number of seconds to accumulate, start play() and immediately pause() so the stream downloads into the buffer, listen for NetStatus events (especially "NetStream.Buffer.Full" / "NetStream.Buffer.Empty") and call resume() when the buffer is full. Also assign a minimal client object with onMetaData to avoid runtime warnings.
Example AS3 pattern:
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.events.NetStatusEvent;
import flash.media.Video;
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.client = { onMetaData:function(o:Object):void{} };
ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
var video:Video = new Video(640,360);
video.attachNetStream(ns);
addChild(video);
ns.bufferTime = 5; // seconds to buffer before playback
ns.play("video.mp4");
ns.pause();
function netStatusHandler(e:NetStatusEvent):void {
switch(e.info.code) {
case "NetStream.Buffer.Full":
ns.resume(); // start playback after buffer is filled
break;
case "NetStream.Buffer.Empty":
// show buffering UI
break;
}
} Practical tips and pitfalls: for smooth seeking on progressive MP4, ensure the moov atom is at the file start (use ffmpeg -movflags faststart). For FLV, include metadata (run flvtool2). Cross-domain or streaming (RTMP) setups change behavior — streaming servers support server-side buffer tuning (dual-buffering). Finally, remember end users’ network speed is the limiter; choose a reasonable bufferTime and provide a visible spinner while buffering.
Jump to Post— HI2Japan 23So are you saying you are looking for a preloader?
So are you saying you are looking for a preloader?
So are you saying you are looking for a preloader?
No.. No...
I am saying about buffering when import a video file into flash it will showing a buffering like preloder about preloder but i need how to insert a video into flash and how to give buffering that file
please help
It's a setting in the player on the user's computer.
Heres a good clean tutorial with a preloader...
It's a setting in the player on the user's computer.
no buffering it's not depends on comuter user,
in Falsh there is one option in componends buffering but it needs some Action Script
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.