Help - Search - Member List - Calendar
Full Version: netStream Question/s Flash 04
WorkTheWeb Forums > Webmaster Resources > Macromedia Flash
Support our Sponsors!
Hi All,
Using this code from the flash help system:

// Create a NetConnection object:
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection:
netConn.connect(null);
// Create a NetStream object and define an onStatus() function:
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
status.text += "Status (NetStream)" + newline;
status.text += "Level: "+infoObject.level + newline;
status.text += "Code: "+infoObject.code + newline;
};
// Attach the NetStream video feed to the Video object:
my_video.attachVideo(netStream);
// Set the buffer time:
//netStream.setBufferTime(10);
// Being playing the FLV file:
//netStream.play("blah_blah_blah.flv");

Sends this data to my text box:

Status (NetStream)
Level: status
Code: NetStream.Play.Start
Status (NetStream)
Level: status
Code: NetStream.Buffer.Full
Status (NetStream)
Level: status
Code: NetStream.Play.Stop
Status (NetStream)
Level: status
Code: NetStream.Buffer.Empty

Can this data be used as a condition that can fire other functions?
Or
What can be done with this data?
Thanks for your time,
Jon


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.