Hello,

Sorry for the poor topic title but I'm not sure how else to describe
it. I have been trying to debug an issue I'm having and I narrowed it
down to the following statement:

note: memento is an Object

# if( memento.closeToCSU ) {
#    trace('memento.closeToCSU = '+ObjectUtil.toString(memento.closeToCSU));
#    trace('memento.photoLinks = '+ObjectUtil.toString(memento.photoLinks));
#    memento.amenities.closeToCSUCampus = true;
#    trace('memento.photoLinks = '+ObjectUtil.toString(memento.photoLinks));
# }

This yeilds an unexpected (for me at least) output of:

# memento.closeToCSU = true
# memento.photoLinks = (Array)#0
# memento.photoLinks = (Array)#0
#   [closeToCSUCampus] true

For some reason if memento.photoLinks is empty, and if I set
memento.amenities.closeToCSUCampus, then memento.photoLinks gets
assigned invalid data.

Why is that? Is there something about nested object
properties/references I don't understand, or is Flex Builder 2 doing
something it shouldn't? If the later, what do you recommend I do?

Thanks in advance for any help!
~Aaron

Reply via email to