With help from the incredible GeoClip website (http://www.geoclip.fr/an/), I recently figured out how to use PHP to read a MySQL spatial database and
generate a new SWF file. Now I am trying to create a
Flash interface that includes pan, zoom and query
options. I am having trouble learning how Flash and
PHP interact.
I would like to run the PHP script each time the user
pans, zooms or submits a query and return a new SWF
based on the new extent. Does anyone have suggestions
about how to call the PHP script from Flash and
display the resulting SWF?
I would appreciate any help or snippets of sample code that I can look over for ideas.
Regards,
Jennifer
Flash/PHP interaction for dynamic maps?
Started by
Jennifer Shanks
, Oct 23 2005 07:06 PM
2 replies to this topic
#1
Posted 23 October 2005 - 07:06 PM
#2
Posted 24 October 2005 - 06:43 AM
I would like to run the PHP script each time the user
pans, zooms or submits a query and return a new SWF
based on the new extent. Does anyone have suggestions
about how to call the PHP script from Flash and
display the resulting SWF?
I would appreciate any help or snippets of sample code that I can look over for ideas.
Welcome Jennifer!
Try out this link:
CartoNet
You´ll find loads of tutorials on PHP/MySQL/SVG map generation.
You should find interactive scripting under:
Tutorial Interactive
Look for the following tutorials by J. Williams and A. Neumann.
It´s mostly SVG stuff on this site, but should give you a godd idea of how to do it and what to look for in the SWF documentation.
Regards,
Andreas
#3
Posted 24 October 2005 - 02:03 PM
your main thing is to transfer data back and forth between the client (flash) and the server (php) -- so I guess you will be transfering xml, or accessing web services (SOAP, REST).
You might be interested in peeking at Macromedia ColdFusion (which I have experience with), it is supposed to have easier to talk to Flash (Flash remoting).
You might be interested in peeking at Macromedia ColdFusion (which I have experience with), it is supposed to have easier to talk to Flash (Flash remoting).
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account
United States
Back to top
Germany
Sweden









