On Mar 31, 2004, at 10:37 PM, Ben Yee wrote:
I have a problem when passing an array from flash to a cold fusion component.

An array or a struct?


eg personArray.person_surname: (undefined) as seen in the flash debugger

When it hits the cfc it dies when trying to evaluate this key value.

Yes, because CF sees it as a null pointer.


How do i tell if a key value is undefined?

You'd have to drop into Java to do it, pulling out the element using a Java level method and assigning it to local variable which you can then test with isDefined(). Someone blogged that recently but I don't remember the reference, sorry.


Or maybe the alternative is to set these undefined array keys to emptyString in flash?

The better solution, IMO, would be to not put them in the structure at all in Flash (then they would be missing in CF and structKeyExists() works).


Regards,
Sean


--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to