| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
mingin dawg baitch
|
Flash displaying xml
I have a Flash "map" application that im building at the moment, eventually after click on parts of the map it will return a list of names and addresses of people that are in that area...my question is if I use XML, what is the best way to create "lists" of name field and address fields....Is there a component that would "page" this information easily - or what way do I build it manually, or do I just load it into textfields? Im toying with the idea of doing it all in flash, but wondering on the how to's.. |
|
|
|
|
|
#2 (permalink) |
|
Senior Member
Join Date: Apr 2005
Location: Toronto, Canada
Posts: 162
|
I don't really know, or use, components that often, but there is definatley a way to do what you want with them. Although you can have a lot more control over sorting information with just raw-coding the actionscript. The smartest way would be to have all names and addresses stored in a database, and use PHP to generate the XML file that flash would use. So if someone clicks on your map, you sendAndLoad a location number to a PHP file. The PHP file connects to the database and supplies the location number to the MySQL query, which in turn returns an array of names, addresses and location-numbers of people in a certain range of the given location number. PHP then parses MySQL returned array into an XML format that flash can read. Flash would just dynamically-load a movie from the library that has the fields for the names and address. Posistions them in the right place and filling in the approriate fields. XML should look like so <client> <name>Bob Saget</name> <address>123 Douchebag lane</address> <location>00010001</location> </client> aight! ps-What's your avatar's name again? |
|
|
|
#3 (permalink) | |
|
mingin dawg baitch
|
Quote:
Cheers for that - didn't think about dynamically loading clips from the library - oh I have no idea what my avatars name is - we are only on first name terms. I may take him out to dinner if Mik doesn't object. |
|
|
|
|
#4 (permalink) | |
|
Senior Member
Join Date: Apr 2005
Location: Toronto, Canada
Posts: 162
|
Quote:
He's one sexy beast! If you want a quick way to learn more about Flash and all that, try VTC.com. They make learning so easy... no I don't work for them. |
|
|
![]() |