Old 01-09-2005, 11:46   #1 (permalink)
paulanthony
mingin dawg baitch
 
paulanthony's Avatar
 
Join Date: Apr 2004
Location: Belfast
Posts: 1,035
Send a message via MSN to paulanthony
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..
__________________
  Reply With Quote
Old 06-09-2005, 15:44   #2 (permalink)
tobor
Senior Member
 
tobor's Avatar
 
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?
  Reply With Quote
Old 07-09-2005, 17:19   #3 (permalink)
paulanthony
mingin dawg baitch
 
paulanthony's Avatar
 
Join Date: Apr 2004
Location: Belfast
Posts: 1,035
Send a message via MSN to paulanthony
Quote:
Originally Posted by tobor
ps-What's your avatar's name again?

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.
__________________
  Reply With Quote
Old 08-09-2005, 13:11   #4 (permalink)
tobor
Senior Member
 
tobor's Avatar
 
Join Date: Apr 2005
Location: Toronto, Canada
Posts: 162
Quote:
Originally Posted by paulanthony
I may take him out to dinner if Mik doesn't object.

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.
  Reply With Quote
Old 22-09-2005, 19:18   #5 (permalink)
boxxx
Registered User
 
Join Date: Sep 2005
Location: east england
Posts: 23
Send a message via MSN to boxxx
i think you will find this very useful

http://www.macromedia.com/devnet/fla...connector.html
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8