Okay guys... im getting into flash alittlebit and trying to make a dynamic FLV player... this is what I've got so far...
in my fla file:
// 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_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(3);
// Begin playing the FLV file
netStream.play(Movie); |
In my page...
<object type="application/x-shockwave-flash" data="playeritem.swf?Movie=/path/to/amovie.flv" width="320" height="306" class="leftmovie">
<param name="movie" value="playeritem.swf?Movie=/path/to/amovie/flv" />
</object> |
Now, the funny thing is I'm getting audio... but no video... any ideas?