[mtasc] FLV playing issues
Chris Nesbitt-Smith
chris.nesbitt-smith at brightwiremedia.co.uk
Sat Dec 24 05:18:43 CET 2005
Oops sorry for the big disclaimer in the previous post - company
rules etc and forgot to clear the signature before hitting send :)
If it becomes of any use to anyone I figured out what was going on,
the external video object didn't have time to load and appear on the
stage before the script initialised and played the stream, so you got
to hear sound but alas no video.
We can solve this with the following:
<code>
createEmptyMovieClip("videoObject", _root);
var myMCL = new MovieClipLoader();
myMCL.onLoadInit = function(targetMC) {
netConn = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
targetMC.videoObj.attachVideo(netStream);
netStream.play("mrandmrssmith_624x336_700.flv");
};
myMCL.loadClip("videoObj.swf", "_root.videoObject");
</code>
DOH!!!
Really stupid I know, o well, done it now!
I intend to make a class of it and will post to this thread
accordingly encase anyone is interested.
-- one very frustrated & and now relieved (just in time for
Christmas) newbie flash coder
More information about the mtasc
mailing list