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
--
My Company: <http://www.dot-com-it.com>
My Podcast: <http://www.theflexshow.com>
My Blog: <http://www.jeffryhouser.com>