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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to