macromedia.coldfusion.flash_integration
[Top] [All Lists]

Re: Passing data to flash

Subject: Re: Passing data to flash
From: "Dave Blake" <webforumsuser@xxxxxxxxxxxxxx>
Date: Tue, 27 May 2008 14:51:42 +0000 (UTC)
Newsgroups: macromedia.coldfusion.flash_integration

Okay, I'm trying to incorporate your coding with my setup.  (Instead of 
Petname, I changed it to "Portfolio"):

 Here is how my flash is set up:

 I have the root level that contains the movieclip "form" which contains the 
form input fields and submit, etc.
 The username text field is called "usr"
 The password text field is called "pw"

 When you click the submit button in the form movieclip, it sends the variables 
to the coldfusion page and then loades a movieclip from the library called 
"accessMsg" into form, which plays while the coldfusion processing takes place.

 Here is the code I have set up for the submit button:
 on(release, keyPress "<Enter>")
 {
        if (usr eq"" or pw eq"") {
        gotoAndStop(4);
        } else {
                var1 = usr;
                var2 = pw;
        loadVariablesNum ("f22clientlogin2.cfm", 0, "POST");
        attachMovie("accessMsg", "accessMsg", 1);
        accessMsg._x = -5;
        accessMsg._y = 60;
        }
 }

 Here is the code I have for the accessMsg movieclip:
 function getCF(success){
         if(_root.fromCF.reply == ok)
 {
        _parent.gotoAndStop(3);

        this.removeMovieClip();
 }
 else if(_root.CFresponse1 == "bad")
 {      
        attachMovie("invalidMsg","invalidMsg",1);
        _parent.acess.invalidMsg._x = -5;
        _parent.acess.invalidMsg._y = 60;
        this.removeMovieClip();
 }
 }

 With a sucessful login, it goes to frame 3 of the movieclip "form" which has 
the following code:
 stop();
 Port = _root.Portfolio;

 In this frame is the textfield "Port" in which it should post the "Portfolio" 
data that it would have received from coldfusion.

 I set up the coldfusion page coding verbatim from what you gave me.

 When I hit the submit button, the movie clip "accessMsg" comes up, but I get 
an interval server error when it accesses the coldfusion page.  It doesn't give 
me a specific error message as it is through flash.

 Any ideas?

 Thanks,
 Dave


<Prev in Thread] Current Thread [Next in Thread>