RE: [flexcoders] Disappearing struct from CFC using RemoteObject

2005-04-28 Thread Tim Blair
Pete, I believe ColdFusion structs are seen by Flash Remoting as java.util.Map instances, so that means they're going to the client as ECMA Arrays, not Objects. Thankfully (for now) you can use the following ActionScript syntax to get named keys from arrays as well as object properties:

Re: [flexcoders] Disappearing struct from CFC using RemoteObject

2005-04-26 Thread David Aden
Tim, out of curiosity what version of CF are you using? I had a similar mind-loosing experience recently, though the structs were disappearing only when I was trying to retrieve an array of structs. When just getting a struct, the data came through; when getting only an array, the data came

RE: [flexcoders] Disappearing struct from CFC using RemoteObject

2005-04-26 Thread Tim Blair
David, out of curiosity what version of CF are you using? I'm still on MX6.1. I had a similar mind-loosing experience recently, though the structs were disappearing only when I was trying to retrieve an array of structs. I seem to get the same issue when I'm grabbing arrays of structs

RE: [flexcoders] Disappearing struct from CFC using RemoteObject

2005-04-26 Thread Peter Farland
Flash Remoting MX has always had the following rules for data type translation: java.lang.reflect.Array - AMF Strict Array - ActionScript Array java.util.Collection - AMF Strict Array - ActionScript Array java.util.Map - AMF ECMA Array - ActionScript Array with Associative Keys