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.
ASPXService = gatewayConnection.getService("flashtalk.flash_source", this); let me know if that helps
Don't see what you're looking for? Try a search.
|