How about some more information..
When you say "console" output are you referring to the Flex Builder
debug console or the ColdFusion console?
I doesn't look to me like you're defining sendMailRO anywhere.
Is "pvlive091.cfcs.mailer" located in your web root?
How about showing us some ColdFusion code?
Instead of using a generic object, why not create a value object AS3
and/or CFC to pass as a parameter back and forth between Flash and CF?
francescomagalini wrote:
>
>
> I'm not able to pass objects from flex3 to coldfusion8:
> I've to send a "mail object" to a cfc that has a <cfmail>: the cfc is ok
> (tested with a cfm page)
>
> MXML:
>
> *private* *function* initSendMailRO():*void* {
> sendMailRO = *new* RemoteObject();
> sendMailRO.source = *"pvlive091.cfcs.mailer"*;
> sendMailRO.destination = *"ColdFusion"*;
> sendMailRO.sendMail.addEventListener(*"result"*, sendMailResultHandler);
> sendMailRO.addEventListener(*"fault"* , sendMailFaultHandler);
> }
>
> *private* *function* buildMail():*void* {
> mailObject = *new* Object;
> mailObject.sender = *"xxx"*;
> mailObject.address = *"[EMAIL PROTECTED]"*;
> mailObject.subject = *"xxxx"*;
> sendMailRO.sendMail(mailObject);
> }
>
> the console output:
> FaultEvent fault=[RPC Fault faultString="Unable to invoke CFC - The
> MAILOBJECT parameter to the sendMail function is required but was not
> passed in." faultCode="Server.Processing" faultDetail=""]
>
> any idea?
> thank you very much!
>
>
--
Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
Recording Engineer
AIM: Reboog711 | Phone: 1-203-379-0773
--
My Company: <http://www.dot-com-it.com>
My Podcast: <http://www.theflexshow.com>
My Blog: <http://www.jeffryhouser.com>