Re: [Flashcoders] flash forms problem

2009-08-07 Thread Leandro Ferreira
As far as I know, the loader.dataFormat refers to the loaded data, not the
one you are about to send. My guess is that the error is on trying to decode
the variables name/value pair on the loaded data (see that the error is
triggered by URLLoader/onComplete())



  Leandro Ferreira
Sent from Brasilia, DF, Brazil

On Fri, Aug 7, 2009 at 00:12, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:

> Hi coders, I have this code for a flash form
>
>
> import flash.display.*;
> import flash.events.*;
> import flash.text.*;
> import flash.net.*;
>
> this.sent.addEventListener(MouseEvent.CLICK, sendMessage);
>
> function sendMessage(e:Event):void
>{
>var variables:URLVariables=new URLVariables();
>variables.nombre=nombre.text;
>variables.email=email.text;
>variables.phone=phone.text;
>variables.address= address.text;
>variables.eventos=eventos.text;
>variables.details=details.text;
>
>
>
>var request:URLRequest=new URLRequest();
>request.url='sendMail.cfm';
>request.method=URLRequestMethod.POST;
>request.data=variables;
>
>var loader:URLLoader=new URLLoader();
>loader.dataFormat=URLLoaderDataFormat.VARIABLES;
>try
>{
>loader.load(request);
>}
>catch (error:Error)
>{
>trace('Unable to load requested document.');
>}
>}
>
> the fields are on the stage and those are input text.
> when I click on the button,
>
>  suddenly it sends this message Error: Error #2101: The String passed to
> URLVariables.decode() must be a URL-encoded query string containing
> name/value pairs.
>at Error$/throwError()
>at flash.net::URLVariables/decode()
>at flash.net::URLVariables()
>at flash.net::URLLoader/onComplete()
>
>
> does anyone knows what this means?
> help here pls.
>
>
> Gustavo
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash forms problem

2009-08-07 Thread Gustavo Duenas
Hi Leandro so getting rid of this part would be ok then and the error  
wouldn't appear again.




var loader:URLLoader=new URLLoader();

loader.dataFormat=URLLoaderDataFormat.VARIABLES;

   try
   {
   loader.load(request);
   }
   catch (error:Error)
   {
   trace('Unable to load requested  
document.');

   }


Gustavo


On Aug 7, 2009, at 7:23 AM, Leandro Ferreira wrote:

As far as I know, the loader.dataFormat refers to the loaded data,  
not the
one you are about to send. My guess is that the error is on trying  
to decode
the variables name/value pair on the loaded data (see that the  
error is

triggered by URLLoader/onComplete())



  Leandro Ferreira
Sent from Brasilia, DF, Brazil

On Fri, Aug 7, 2009 at 00:12, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:


Hi coders, I have this code for a flash form


import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;

this.sent.addEventListener(MouseEvent.CLICK, sendMessage);

function sendMessage(e:Event):void
   {
   var variables:URLVariables=new URLVariables();
   variables.nombre=nombre.text;
   variables.email=email.text;
   variables.phone=phone.text;
   variables.address= address.text;
   variables.eventos=eventos.text;
   variables.details=details.text;



   var request:URLRequest=new URLRequest();
   request.url='sendMail.cfm';
   request.method=URLRequestMethod.POST;
   request.data=variables;

   var loader:URLLoader=new URLLoader();

loader.dataFormat=URLLoaderDataFormat.VARIABLES;

   try
   {
   loader.load(request);
   }
   catch (error:Error)
   {
   trace('Unable to load requested  
document.');

   }
   }

the fields are on the stage and those are input text.
when I click on the button,

 suddenly it sends this message Error: Error #2101: The String  
passed to

URLVariables.decode() must be a URL-encoded query string containing
name/value pairs.
   at Error$/throwError()
   at flash.net::URLVariables/decode()
   at flash.net::URLVariables()
   at flash.net::URLLoader/onComplete()


does anyone knows what this means?
help here pls.


Gustavo



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash forms problem

2009-08-07 Thread Leandro Ferreira
Getting rid of loader.dataFormat, that is.



  Leandro Ferreira


On Fri, Aug 7, 2009 at 20:27, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:

> Hi Leandro so getting rid of this part would be ok then and the error
> wouldn't appear again.
>
>
>  var loader:URLLoader=new URLLoader();
>>>   loader.dataFormat=URLLoaderDataFormat.VARIABLES;
>>>   try
>>>   {
>>>   loader.load(request);
>>>   }
>>>   catch (error:Error)
>>>   {
>>>   trace('Unable to load requested
>>> document.');
>>>   }
>>>
>>
> Gustavo
>
>
>
> On Aug 7, 2009, at 7:23 AM, Leandro Ferreira wrote:
>
>  As far as I know, the loader.dataFormat refers to the loaded data, not the
>> one you are about to send. My guess is that the error is on trying to
>> decode
>> the variables name/value pair on the loaded data (see that the error is
>> triggered by URLLoader/onComplete())
>>
>>
>>
>>  Leandro Ferreira
>> Sent from Brasilia, DF, Brazil
>>
>> On Fri, Aug 7, 2009 at 00:12, Gustavo Duenas <
>> gdue...@leftandrightsolutions.com> wrote:
>>
>>  Hi coders, I have this code for a flash form
>>>
>>>
>>> import flash.display.*;
>>> import flash.events.*;
>>> import flash.text.*;
>>> import flash.net.*;
>>>
>>> this.sent.addEventListener(MouseEvent.CLICK, sendMessage);
>>>
>>> function sendMessage(e:Event):void
>>>   {
>>>   var variables:URLVariables=new URLVariables();
>>>   variables.nombre=nombre.text;
>>>   variables.email=email.text;
>>>   variables.phone=phone.text;
>>>   variables.address= address.text;
>>>   variables.eventos=eventos.text;
>>>   variables.details=details.text;
>>>
>>>
>>>
>>>   var request:URLRequest=new URLRequest();
>>>   request.url='sendMail.cfm';
>>>   request.method=URLRequestMethod.POST;
>>>   request.data=variables;
>>>
>>>   var loader:URLLoader=new URLLoader();
>>>   loader.dataFormat=URLLoaderDataFormat.VARIABLES;
>>>   try
>>>   {
>>>   loader.load(request);
>>>   }
>>>   catch (error:Error)
>>>   {
>>>   trace('Unable to load requested
>>> document.');
>>>   }
>>>   }
>>>
>>> the fields are on the stage and those are input text.
>>> when I click on the button,
>>>
>>>  suddenly it sends this message Error: Error #2101: The String passed to
>>> URLVariables.decode() must be a URL-encoded query string containing
>>> name/value pairs.
>>>   at Error$/throwError()
>>>   at flash.net::URLVariables/decode()
>>>   at flash.net::URLVariables()
>>>   at flash.net::URLLoader/onComplete()
>>>
>>>
>>> does anyone knows what this means?
>>> help here pls.
>>>
>>>
>>> Gustavo
>>>
>>>
>>>
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>>  ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash forms problem

2009-08-08 Thread Gustavo Duenas
Hi leandro, it went good, now I'm attempting to send it via email  
suing a cfm page, this is the code of the coldfusion, so far is not  
working, would you help me?


Regards,


Gus



replyto="#FORM.email#" type="html">





  
Name:
 #FORM.nombre# 
  
  
Email:
#FORM.email#
  
  
Address:
#FORM.address#
  
  
Phone:
#FORM.phone#
  
  
Date of the session:
#FORM.eventos#
  
  
Comments:
#FORM.details#
  





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash forms problem

2009-08-08 Thread Leandro Ferreira
Ask it elsewhere, this is not a coldfusion list. Besides, I have no idea.




  Leandro Ferreira


On Sat, Aug 8, 2009 at 13:38, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:

> Hi leandro, it went good, now I'm attempting to send it via email suing a
> cfm page, this is the code of the coldfusion, so far is not working, would
> you help me?
>
> Regards,
>
>
> Gus
>
>
>
>  type="html">
>
>
>
> 
>  
>Name:
> #FORM.nombre# 
>  
>  
>Email:
>#FORM.email#
>  
>  
>Address:
>#FORM.address#
>  
>  
>Phone:
>#FORM.phone#
>  
>  
>Date of the session:
>#FORM.eventos#
>  
>  
>Comments:
>#FORM.details#
>  
> 
>
>
>
> 
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash forms problem

2009-08-08 Thread Gustavo Duenas

Thank leandro I'll do it.

gus
On Aug 8, 2009, at 1:16 PM, Leandro Ferreira wrote:

Ask it elsewhere, this is not a coldfusion list. Besides, I have no  
idea.





  Leandro Ferreira


On Sat, Aug 8, 2009 at 13:38, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:

Hi leandro, it went good, now I'm attempting to send it via email  
suing a
cfm page, this is the code of the coldfusion, so far is not  
working, would

you help me?

Regards,


Gus



replyto="#FORM.email#"

type="html">




 
   Name:
#FORM.nombre# 
 
 
   Email:
   #FORM.email#
 
 
   Address:
   #FORM.address#
 
 
   Phone:
   #FORM.phone#
 
 
   Date of the session:
   #FORM.eventos#
 
 
   Comments:
   #FORM.details#
 






___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders