is file name being defined by the user in a form.

you need to do something like this:

if((filename == undefined) || (filename == ""))
{
}

if memory serves me correctly, text field variables are not actually
initialized to something until the user has entered data.

i will test this in a little while, but that might help you out in the
mean time.

mike chambers

[EMAIL PROTECTED]

> -----Original Message-----
> From: Scott Brady [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 08, 2002 3:48 PM
> To: CF-Talk
> Subject: Re: CF/Flash Integration problem in NS 6
> 
> 
> > 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");
> 
> 
______________________________________________________________________
Get Your Own 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=coldfusionb
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