FORUMS: list search recent posts

External FLV Preloader

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Stef Prein
External FLV Preloader
on Apr 9, 2010 at 10:49:08 am


A client of mine wants a splash page that contains a movie. In order to get this to play on most computers, I use flash.
My idea was to load an external flv. That's the part that works. I'm not a scripter, so I used tutorials to get here:

// ActionScript 3.0
var video:Video = new Video();

var nc:NetConnection = new NetConnection();

var ns:NetStream = new NetStream(nc);
ns.client = {onMetaData:ns_onMetaData, onCuePoint:ns_onCuePoint};


function ns_onMetaData(item:Object):void {
// Resize video instance.
video.width = item.width;
video.height = item.height;
// Center video instance on Stage.
video.x = (stage.stageWidth - video.width) / 2;
video.y = (stage.stageHeight - video.height) / 2;
function ns_onCuePoint(item:Object):void {
trace( + "\t" + item.time);

This works fine. But now I need to preload the flv file. Which doesn't seem to work. Also embedding the flv in the swf doesn't really work. Does anyone have a clue and can help me?

Thanks a lot in advance!!

Stef Prein
student Image and Media Technology
Utrecht School of the Arts
The Netherlands

Return to posts index

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