Thank you! It worked:) Also, for the search by address layer I have, under <fields> how can i have the fields I want to display shown in the order in which I have them typed? In other words.....this is the xml I have typed "<fields>ADDRESS,STREET NO,STREET,CITY,STATE,ZIP,OWNERLAST,OWNERFIRST</fields>" They show up in a random order when I perform the search on my Flex map.