Hi Jeremy, I didn't see a CFC attached. But in general you define an
<mx:RemoteObject>, and in a really basic sense:
##jeremy.mxml
<mx:Application init="myRO.getSomething().send()">
<mx:RemoteObject id="myRO"
endpoint="@ContextRoot()/flashservices/gateway" source="jeremy">
<mx:method name="getSomething" result="newAdds.text=event.result"/>
</mx:RemoteObject>
<mx:FormItem label="New Additions">
<mx:TextInput id="newAdds" />
</mx:FormItem>
</mx:Form>
</mx:Application>
### jeremy.cfc
<cfcomponent>
<cffunction name="getSomething" returnType="string" access="remote">
<cfreturn "yo!">
</cffunction>
</cfcomponent>
Check out these articles:
http://www.richinternet.de/blog/index.cfm?entry=831FE26E-0D70-9C2D-2549E1D1978CF1B0
http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=1013
http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=1019
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19356
http://coldfusion.sys-con.com/read/47443.htm
Jeremy Rottman wrote:
>I am still working with flex and my database structure. The question I
>have at hand is this. I have a coldfusion cfc that I have written, and
>would like to use it as my remote object. Right now I am still in the
>process of learning to bind the data from my cfc to my flex app. So
>here my my question. with the cfc I have pasted below. How would I
>bind the data from the called RO to form fields.
>
>So if I wanted fld_admin_log_new (from the cfc below) to be bound to the
>form field new adds. What would be the code to call the cfc and hte
>code to bind the cfc to that form field.
> <mx:Form>
>
> <mx:FormItem label="New Additions">
> <mx:TextInput id="newAdds" />
> </mx:FormItem>
> </mx:Form>
>
>
>
--
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/
<*> 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/