map of Wales using Flash Remoting and PHP

Query
 
Anglesey10
Blaenau Gwent60
Bridgend80
Caerphilly40
Cardiff40
Carmarthenshire100
Ceredigion45
Conwy75
Denbighshire20
Flintshire100
Gwynedd50
Merthyr Tydfil100
Monmouthshire0
Neath Port Talbot25
Newport20
Pembrokeshire22
Powys20
Rhondda Cynon Taf50
Swansea0
Torfaen50
Vale of Glamorgan90
Wrexham65
Flash is not installed on your system - I'm afraid there's nothing to see here.

how this works

PHP

A PHP class resides in this directory. It contains a function which returns a query recordset (see data above right).

Flash

The map of Wales is a movie clip called "walesmap". It contains 22 further movie clips corresponding to each local authority region, as well as a movie clip called "border" which can be made visible or invisible.

When the flash movie is loaded, a connection is made to the Flash Remoting gateway. In PHP the gateway is an open source application called AMFPHP which resides on the server.

The function within the component is called and the recordset is returned. In the movie an ActionScript "colourMap" function then works through the recordset. For each local authority it finds the relevant movie clip and sets the color according to the gradient selected in the dropdown box. 100 is fully shaded, 0 is white.

<<back to tech index