Hi all...
I really am ready to scream. I have tried everything I can think of, but no
matter what I do I get one of the same 2 results.
Either the movie loads faster than the data can be sent to ColdFusion, or the
data gets sent, but the movie doesn't load. I have TONS of other work to do on
this project, but I have to get this figured out before I can move on.
This is a registration form, in Flash, for a chat room... that is also in
Flash. I am sending the user info from the form to a ColdFusion Component. This
works fine, the database insert goes smoothly, as long as I don't try and load
the movie (either login.swf, or the chat room, doesn't matter at this point).
Here is the current client side ActionScript:
stop();
message = "Only the biography field is not required"
Password.password = True
Verify_Pass.password = True
Selection.setFocus("_root.fname");
#include "NetServices.as"
#include "DataGlue.as"
if (isGatewayOpen == null) {
// do this code only once
isGatewayOpen = true;
NetServices.setDefaultGatewayUrl("
http://127.0.0.1:8500/flashservices/gateway");
gatewayConnnection = NetServices.createGatewayConnection();
register = gatewayConnnection.getService("poetry.register", this);
}
function putRegister() {
if (fname == null) {
Selection.setFocus("_root.fname");
message = ("first name is a required field.");
}
else if (lname == null) {
Selection.setFocus("_root.lname");
message = ("last name is a required field.");
}
else if (uname == null) {
Selection.setFocus("_root.uname");
message = ("user name is a required field.");
}
else if (email == null) {
Selection.setFocus("_root.email");
message = ("email is a required field.");
}
else if (passw == null) {
Selection.setFocus("_root.passw");
message = ("password is a required field.");
}
else if (varpassw != passw){
Selection.setFocus("_root.passw");
message = ("Passwords don't match, please re-enter passwords.");
}
else {
register.putUser(fname,lname,uname,passw,email,bio);
message = "";
}
if (message == "") {
loadMovie("index.swf",_root.background_mc.gotoAndStop(2));
}
}
Also, as a minor annoyance, the above load movie goes to the root (the home
page) instead of the chat room (background_mc frame 2). I would probably load
login.swf after they register anyway, but then I will have the same problem.
The client wants the registration and login to be in pop up windows so there
are 3 seperate .swf files... as I said though, this is just an additional minor
annoyance, the REALLY BIG problem is that when the movie loads at all, it
interupts the data transfer before it can happen... I have tried a variety of
conditions, and combinations of conditions, and always with those same 2
results... movie w/o insert or insert w/o movie %^/
Please someone Help!
Thanks