Groups | Blog | Home
all groups > macromedia flash flashcom > march 2007 >

macromedia flash flashcom : netStream information plz


calmchess333
3/2/2007 3:30:04 PM
the following code is a netStream on status if function however if i change
createNetStream(this); to createNetStream(_root) or createNetStream(_level0) or
createNetStream(_level0.clip0) then my NetStream doesn't get created
.........why?


nc = new NetConnection();
nc.onStatus = function(info) {
if (info.code == "NetConnection.Connect.Success") {
createNetStream(this);

}
}
JayCharles
3/2/2007 4:44:16 PM
The flag in the netstream constructor identifies the nectconnection the stream
will be created on. What you're trying to do is target a movie clip or
timeline... which won't work.

nc = new NetConnection();
ns = new NetStream([b]nc[/b]);
AddThis Social Bookmark Button