Jump to content

 
Photo

Flash/PHP interaction for dynamic maps?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Jennifer Shanks

Jennifer Shanks

    Newbie

  • Validated Member
  • Pip
  • 1 posts
  • United States

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

#2
Kartograph

Kartograph

    Legendary Contributor

  • Validated Member
  • PipPipPipPipPip
  • 320 posts
  • Gender:Male
  • Location:Berlin, Deutschland
  • Germany

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.


<{POST_SNAPBACK}>


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
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,304 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

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).
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->