PBFrO
01-25-2010, 05:54 PM
Hi all.
I'm stuck on a flash video problem and wondering if anyone can spot where I'm going wrong here. I've be able to do this in AS2 no problem, but for some reason AS3 is rejecting me here.
var _video:Video = new Video(600,338);
var _nc:NetConnection = new NetConnection();
_nc.connect("rtmp://myurl.com/vod/");
var _ns:NetStream = new NetStream(_nc);
_video.attachNetStream(_ns);
When I run that I get these two errors:
ArgumentError: Error #2126: NetConnection object must be connected.
at flash.net::NetStream/flash.net:NetStream::construct()
at flash.net::NetStream$iinit()
at VideoMC/::frame1()
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone.
error=ReferenceError: Error #1069: Property onBWDone not found on flash.net.NetConnection and there is no default value.
at VideoMC/::frame1()
Any ideas? Thanks.
I'm stuck on a flash video problem and wondering if anyone can spot where I'm going wrong here. I've be able to do this in AS2 no problem, but for some reason AS3 is rejecting me here.
var _video:Video = new Video(600,338);
var _nc:NetConnection = new NetConnection();
_nc.connect("rtmp://myurl.com/vod/");
var _ns:NetStream = new NetStream(_nc);
_video.attachNetStream(_ns);
When I run that I get these two errors:
ArgumentError: Error #2126: NetConnection object must be connected.
at flash.net::NetStream/flash.net:NetStream::construct()
at flash.net::NetStream$iinit()
at VideoMC/::frame1()
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone.
error=ReferenceError: Error #1069: Property onBWDone not found on flash.net.NetConnection and there is no default value.
at VideoMC/::frame1()
Any ideas? Thanks.