> are you sure all of the variables you need to send exist in the same
> scope / movie clip that you are calling loadvariables from?

The only one I need to send to the CF file is called "fileName" which is the
CF file which embeds the flash file.  The only way I could figure out to see
if it exists or not is to do a "if (fileName == "")" since I couldn't find a
"IsDefined" equivalent in actionscript.  What I do is, if fileName == "", I
set fileName to be equal to a default file name (index.cfm).  (When you
click on a link in the menu system, it passes the fileName variable to the
Flash file)

Here's the actionscript which is being run in frame 1:

// change serverPath variable as appropriate
serverPath = "http://myserver/thePath/";;
defaultURL = "index.cfm";
if (fileName == "") {
 fileName = defaultURL;
}
loadVariablesNum (serverPath+"aarons_variables.cfm", 0, "POST");


----------------------------------------------
Scott Brady
http://www.scottbrady.net/

______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to