Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / June 2004



Tip: Looking for answers? Try searching our database.

Problem with upgrading to Flash Player 7

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
allan_h - 23 Jun 2004 20:03 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.