I'm fairly inexperienced so please bear with me.
I am using FlourineFX, my goal is to retrieve data from an amf server.
I've got a windows form with a button. The code for a button creates an instance of an object:
private void btnGo_Click(object sender, EventArgs e)
{
ArrayList args = new ArrayList { val1, val2, val3, val4 };
AmfConnect VidData = new AmfConnect(args);
}
//The AmfConnect class is as follows:
public class AmfConnect
{
public AmfConnect(ArrayList args)
{
ServerConnect(args);
}
private void ServerConnect(ArrayList args)
//get args from string array
string server = args[0].ToString();
string command = args[1].ToString();
string file = args[2].ToString();
// Create NetConnection client
NetConnection connection;
connection = new NetConnection();
connection.ObjectEncoding = ObjectEncoding.AMF3;
connection.Connect(server);
connection.Call(command, new AmfResult(),new object[] { file, 103207, true, null, 1.859671316E9 });]
}
My issue is with connection.Call. While stepping through the code, I realized that "new AmfResult()", which is where the resultant is determined, was not being processed/instantiated until after VidData was instantiated and any other code in the _Click function has been processed, keeping me from getting the resultant I need. I'm at a loss, any help would be appreciated.