Hello, 

I can't seem to find a good tutorial using ASP.NET 2.0 using C# and AS3. I'm
trying to figure out how to POST vars to an .aspx page or rather I think my
Flash code is correct so I need the code to catch the vars in the .aspx
page. I'm totally familiar with PHP but, not the M$ way =8o)

Thanks for any help.
 

This is the code I've currently got for the flash side of things.


var someVar:String = "my var";
var variables:URLVariables = new URLVariables();
variables.anotherVar = someVar;
var myURLRequest:URLRequest = new URLRequest();
myURLRequest.url = 'mydotnetfile.aspx';
myURLRequest.method = URLRequestMethod.POST;
myURLRequest.data = variables;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
addLoaderListeners(loader);
try 
{
    loader.load(myURLRequest);
} 
catch (error:Error) 
{
    trace('Unable to load the document.');
}

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to