I"m having trouble grokking Flash 7 video too, and no one's answered any of my
questions either. I've read the LiveDocs article below and hacked a onEvent
load function onto it, but there's no media controller. It would be more useful
if you could place a variable instead of the flv path string in the Component
Inspector, or fiddle with it's underlying ActionScript.
Anyway, check this link, and my onEvent function (controlled by buttons) below
it. I'm stuck for a player, a skin, or a preloader however:
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=Flash_MX_2004&file=00001107.html
// Create a NetConnection object
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection
netConn.connect(null);
// Creat a NetStream object and define an onStatus() function
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
status_txt.text += "Status (NetStream)" + newline;
status_txt.text += "Level: "+ infoObject.level + newline;
status_txt.text += "Code: "+ infoObject.code + newline;
};
//Attach the NetStream video feed to the Video object
my_video.attachVideo(netStream);
// Set the buffer time
netStream.setBufferTime(5);
// Place some named buttons on stage to call the videos
but1_btn.onRelease = function() {
netStream.play("Clip2.flv");
};
but2_btn.onRelease = function() {
netStream.play("Clip3.flv");
};