I have here a test program that works when I publish for Flash Player 6, but
when I change to Flash Player 7, I get "name=undefined" Instead of 'name= Fred".
Any ideas? Is it case sensitivity? I have used example programs before, only
to find that the capitalization of the functions has changed. Flash MX 2004
wouldn't install the remoting help.
Here's the program:
stop();
#include "NetServices.as"
#include "NetDebug.as"
var username="a.hawes";
var userArray= new Array();
responseObjLogin = new Object();
responseObjLogin.onResult=function (result) {
userArray["first_name"]=result.first_name;
trace("name is "+userArray["first_name"]);
}
function setupDataConnection(){
gwUrl="http://lingolicence.rangiruru.school.nz:8500/flashservices/gateway/";
NetServices.setDefaultGatewayUrl(gwUrl);
gatewayConnection=NetServices.createGatewayConnection();
}//end setupDataConnection
setupDataConnection();
CFMService=gatewayConnection.getService("cfScripts.LLauthenticateF");
CFMService.loginTest(responseObjLogin,username);
Thanks in anticipation
silkpuppet - 23 Jun 2004 22:11 GMT
Should be:
userArray["first_name"]=result.FIRST_NAME;
Your result field is being returned in upper case.
Flash MX 2004 wouldn't install the remoting help?? If that's the new version
of the AS2 remoting components, that's a real shame because the documentation
is actually very informative. I would try re-installing or something.
~j.