firstly
--
AS3 Class
package com.desktopae.vo{
import com.adobe.cairngorm.vo.ValueObject;
import mx.collections.ArrayCollection;
[Bindable]
[RemoteClass(alias="desktopae.cfc.vo.Lender")]
public dynamic class Lender{
--
this looks good to me except you are importing the cairngorm ValueObject and not using it. But this will not effect the mapping.
[Bindable]
[RemoteClass(alias="desktopae.cfc.vo.Lender")]
public dynamic class Lender{
--
this looks good to me except you are importing the cairngorm ValueObject and not using it. But this will not effect the mapping.
secondly
--
<cfcomponent displayname="Lender" hint="Corresponds to AS Class,
com.desktopae.vo.Lender">
This CFC must reside in desktopae/cfc/vo/Lender and desktop must be in the root of your webroot or be a mapping. You may need to update your flex-services.xml file depending on this. Next, you have to have a alias attritube in your CFC definition.
<cfcomponent displayname="Lender" hint="Corresponds to AS Class,com.desktopae.vo.Lender" alias=" desktopae.cfc.vo.Lender">
Further you need a init() method in your CFC with a return type of desktopae.cfc.vo.Lender and that simply has one line
<cfreturn this />
Of course it could do other things, but needs that for sure.
Now, once you got that going you should be cooking with gas. Use the Flex Debugger to see what's going on. The debugger rawks, so get to know how to use it.
Hey, if you use the RDS plugins for eclipse, use the CFC creation wizard. The code it generrates can serve as a example.
DK
On 9/23/06, lostinrecursion <[EMAIL PROTECTED]> wrote:
I'm sure. I build my results into a Struct. Add each Struct to an
element of a CF array.
But, the problem is, when I try and discover the type of the variable
returned from CFC, it lists as a generic object. ex:
typeof(event.result.theCFarray) == 'object'
I can't get Flex to even recognize it as an Array.
Yet, when I enumerate the properties via (for var i:String in
event.result.theArray), I do get the correct indexes 0 and 1 since
there are two elements in the particulary array we are looking at.
-LIR
--
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/
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it? __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

