Just a FYI, If you haven't done so already, install the Coldfusion wizards for FlexBuilder. They're in the FlexBuilder install directory in a folder called "ColdFusion Extensions for Flex Builder".
They're a huge help if you work with VO's (on both ends). Once installed you can: Right click a VO ActionScript class, select: Coldfusion Wizards > Create CFC (based on AS class) Same thing with CFC VO's to create AS VO's. And much, much more.. regards, Muzak ----- Original Message ----- From: "Jeffry Houser" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, December 04, 2007 9:20 PM Subject: Re: SPAM-LOW: [flexcoders] Re: Unable to pass objects from Flex to Coldfusion > > francescomagalini wrote: >> >> > Is "pvlive091.cfcs.mailer" located in your web root? >> Yes >> > How about showing us some ColdFusion code? >> ok >> > 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? >> why? i do not know a lot about VOs.. I'll try to figure out why you say >> that. > > Before reading further, add access="remote" to your cffunction tag. > If that is left out, then the method is not exposed to the Flash Player > (AKA Flex). > > Value Objects (VOs) are also called Transfer objects, if that helps. > They are data containers, usually without any functionality. From a CF > Standpoint, think of a VO as a CFC that is acting like a structure. > > You need an AS3 file, like this: > > package PvLive091.vo > { > [RemoteClass(alias="PvLive091/cfcs/mailerData")] > [Bindable] > public class mailerData{ > public var address :String = ""; > public var subject:String = ""; > public var body:String = ""; > // etc.. etc.. > } > } > > And a CFC like this: > > <cfcomponent name="mailerData" hint="" alias="PvLive091.vo.mailerData"> > <cfproperty name="address " type="string" /> > <cfproperty name="subject" type="string" /> > <cfproperty name="body" type="string" /> > <!-- other instance variables --> > </cfcomponent > > When creating your CFC and AS3 object, be sure to keep the properties > case sensitive, and in the same order in each file. It'll save you > headaches later on. > > -- > Jeffry Houser, Technical Entrepreneur, Software Developer, Author, > Recording Engineer > AIM: Reboog711 | Phone: 1-203-379-0773 > -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

