|
-
XML parsing
Hi
I hope to get some tips from you before I start coding my Flash application.
It is a map with city locations where my clients stores exists.
Te data is a XML file that is generated from an existing data base table.
and will look something like this
<stores>
<store>
<name>Store 1</name>
<adress>Adress ...</adress>
<city>New York</city>
</store>
<store>
<name>Store 2</name>
<adress>Adress ...</adress>
<city>New York</city>
<xcordinate>580</xcordinate>
<ycordinate>40</ycordinate>
</store>
<store>
<name>Store 3</name>
<adress>Adress ...</adress>
<city>San Francisco</city>
<xcordinate>25</xcordinate>
<ycordinate>49</ycordinate>
</store>
<store>
<name>Store 2</name>
<adress>Adress ...</adress>
<city>San Francisco</city>
<xcordinate>25</xcordinate>
<ycordinate>49</ycordinate>
</store>
</stores>
As you see there can be 2+ stores in one city( eg. here San Francisco)
On this map I first need to put a pin where the stores are located,
I would like to attach a pin movieclip, and place the x and y based on the x and ycordinate
But I don' t need to do that twice,
so how would I load the XML file and kind of sort out eg. San Francisco only once for this operation?
anyone who can give som clues/help
thanks in advance
T
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|