Question
Flash Media Server 2
.asc Script:
load("components.asc");
application.onConnect = function( newClient, newUserName, test){
gFrameworkFC.getClientGlobals(newClient).username = newUserName;
// set the user name for any UI component we may have
application.acceptConnection(newClient);
//unconditionally accept our connection
trace("Hello: " + newUserName);
}
Action Script with in the Fla file:
var myVideo:Video;
var playButton:Button;
var pauseButton:Button;
var myNetConnection:NetConnection = new NetConnection();
//establishes the connection
myNetConnection.connect("rtmp:/129.186.168.116/LawnChairLarry/_definst_");
var myNetStream:NetStream = new NetStream(myNetConnection);
myVideo.attachVideo(myNetStream);
myNetStream.play("LawnChairLarry");
playButton.onPress = function(){
myNetStream.pause(false);
}
pauseButton.onPress = function(){
myNetStream.pause(true);
}
There are several things but two that I need help with.
One: How do I need to connect? FMS2 is on a dedicated server and the Fla and SWF files are on my local computer. I would think that I should be able to connect from my local computer through our network.
Two: How can I shut off those annoying security pop ups with in the SWF. Why in the heck (!?@#$!@) do we have to deal with that now? They cause nothing but misery when trying to test something out.
Can someone please help or steer me toward a good solid resource that can give me concrete examples as to how to make this work.
Carroll Altman
