Listing E.3 publishes your camera and microphone to a NetConnection. The connection script uses the UI components technique from Listings E.1 and E.2. Listing E.3 Flash ActionScript for Publishing a Camera and Microphonenc = new NetConnection(); nc.onStatus = function(info) { trace("LEVEL: "+info.level+" CODE: "+info.code); if (info.code == "NetConnection.Connect.Success") { // Call a function to setup the NetStream Publish when the server accepts the The SSAS ActionScript template in Listing E.2 can be used with this ActionScript. |