This content has been marked as final. Show 5 replies
I wonder if data..tag would work, as the .. is the E4X decendants operator.
Thanks, but .. doesn't work. I'm not that concerned with getting it to work (I've already found one with the children() method) I just really want to know why dot notation does not work, since this problem strung me along for hours.
Hmmm... This works for me. Maybe I am not doing what you are doing.
Thanks for the reply. When I set theResult your way it works fine. However, in my code I set theResult with the following statements:
public function handlePhotos(event:ResultEvent):void
theResult = XML(event.result);
theResult.photos.photo.tags.@id = "enabled"; theResult.photos.photo.tags.tag="here1";
I guess data binding might only be recognizing the first statement and ignoring the rest? Or perhaps it's that theResult.photos.photo.tags.tag does not exist when theResult is first changed, so flex doesn't know what to listen to for data binding? The reason I tested my code like this is because I need to set the tags for each photo by making a call to a flickr web service for each one before having the data to attach. I guess I'll need to keep using the children() method.