Downloads

Sample 1 sample1.zip

 


HTML Javascript and Flash.

Some one asked me if we could make flash and Javascript work together. The idea was to hook up a flash map onto the event list and animate the location when the user is hoovering over the list. I came up with this idea. It might not be the best but it should be close.

You can see the result down here.

 

Enter a city name of Europe:

Source for Macromedia Flash: sample1.zip

The flash application was quickly made with the map tools.
Inside the HTML page you need the following script. the find button will trigger this Javascript. This function then changes a variable inside the flash application.

<script>
<!--
function PassFlash(){
window.document.movie.SetVariable("city",mycity.value);
}
//-->

</script>

Inside the flash application I check every 200 miliseconds and see if the variable has changed, In case it changed I start searching for the city and execute the animation.