all groups > macromedia flash flash remoting > march 2005 >
You're in the

macromedia flash flash remoting

group:

Flash and aspx file in different folders


Flash and aspx file in different folders yiannisezn
3/19/2005 1:30:04 PM
macromedia flash flash remoting: Can I have the flash file in http://localhost/flashtalk/flash_source and the
aspx file in http://localhost/flashtalk/Default.aspx ? How am I going to make
the connection with the file? I now use the following commands in frame1, I
have a button that sends two strings to the FlashRemotingService function adn
my flash file name is FlashRemotingService.fla: #include 'NetServices.as' if
(inited == null) { inited = true;
NetServices.setDefaultGatewayUrl('http://localhost/flashtalk/Default.aspx');
gatewayConnection = NetServices.createGatewayConnection();
ASPXService = gatewayConnection.getService('flashtalk', this); } function
FlashRemoting(Fname, Lname) { if ((Fname != null) && (Fname != '')) {
//The name after the . is the .aspx file to communicate (send the vars)
ASPXService.Default(Fname, Lname); } } /* The function (before the _result)
is the name of the .aspx page /* The _Result(result) is standard, and you
always add this after /* the function name(filename) in order to get the result
that the /* .Net will sent you. /* /* If you do not include this funtion it
will still communicate but the feedback /* you will receive it will be into the
trace. */ function Default_Result(result) { if (txtResult == undefined) {
_root.createTextField('txtResult', 100, 5.7, 87, 160, 18); } txtResult.text
= result; txtResult.autoSize = true; } function
FlashRemotingService_Status(error) { trace(error.code);
trace(error.description); trace(error.details); } Thanks in advanced.
Re: Flash and aspx file in different folders getemerson
4/5/2005 12:14:09 AM
ASPXService = gatewayConnection.getService("flashtalk.flash_source", this);

let me know if that helps

AddThis Social Bookmark Button