Welcome, Guest. Please login or register.
Did you miss your activation email?
05/21/12, 02:35
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  PHP, Perl, ASP, JSP, CFM (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis, nothingGrinder)
| | |-+  loadVariablesNum does not run file
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: loadVariablesNum does not run file  (Read 646 times)
Ron Rog
Server what's that
*
Posts: 2



View Profile Email
« on: 04/01/03, 22:35 »

I have built an eCard site in Flash, but I cannot get the SWF to run my ColdFusion files to load the data into a database and send an email.  

I am using a button to call the CFM file.  The code is as follows:

on (release) {
   set(recipient, recipient);
   set(recipientEmail, recipientEmail);
   set(uname, uname);
   set(reason, reason);
   set(awards, awards);
   loadVariablesNum("dbAndSend.cfm", 0, "POST");
   if (errorLevel == "0") {
      gotoAndPlay("Nominate", 103);
   } else if (errorLevel == "1") {
      gotoAndPlay("Nominate", 105);
   }
}

The SWF runs with no errors reported.  The loadVariablesNum function does not seem to do anything.  I have modified the CFM file dbAndSend.cfm to just return a simple variable (errorLevel) and changed the value to both 0 and 1.  The result has no effect on the SWF.  The CFM file is located in the same directory as the SWF.  The CFM file works without errors when I load it in my browser manually.

Any help would be appreciated.  I am stumped.
Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #1 on: 04/02/03, 01:35 »

Hi,

what is
set(recipient, recipient)
supposed to do?
Are you expecting ErrorLevel as a result from loading variables? If so, plese keep in mind that loading varibles just initiates a transaction with the server which may complete many frames later

Musicman
Logged
Ron Rog
Server what's that
*
Posts: 2



View Profile Email
« Reply #2 on: 04/02/03, 06:24 »

In trying to get this to work, I was not sure the variables were being passed to the CFM file, so I added the set(recipient,recipient), etc. right before the loadVariablesNum function to make sure.  It made no difference.  I have since removed them.

The CFM file returns the variable errorLevel.  I have also initiated the errorLevel variable in Flash.

I am going to try removing the initiation of errorLevel in Flash and set a loop to wait for the variable to be returned from the CFM file.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!