I was able to find code which would allow me to add boundries and the map to scroll effectively. Also, I have changed the map to one which is a lot more easy to follow and more visually effective.Since I am unable to figure out how to add buttons to the map (Due to much frustration) I have instead decided to add a legend to the side of the map which can be minimised or maxamised.
This legend can therefore be used to correspond with the points on the map and is clickable, so it takes the user to another area where information on this location can be viewed. This is a very good alternative as it still allows all the functionality that I require from the map.
To get this map working I used this small piece of code:
on(press){
startDrag(this,false,357,270,-110,50);
}
on(release) {stopDrag();
}
on(releaseOutside){stopDrag();
}
This would allow dragging of the map, but also provide the boundries required!
I simply applied this to the map which I set as a Movie clip as opposed to a button which cause me endless problems.
No comments:
Post a Comment