Hello...! I have a problem here. I'm totally new to actionscript, what i want to do is "i have a map in flash with different cities movieclips & i want to pass the value of that city to php on mouse click to the city. Please help me in scripting....
Thanks in advance
Yes, I have already informed you to search for a tutorial, and even provided a link to one that shows you how to interact between an AS2 file and a php file to send data, such as an instance name or value.
If your problem is that you do not know how to code a movieclip to be clickable, then you would use something like the following in the timeline that contains the movieclip...
movieclipName.onRelease = function(){
// code to initiate passing the info to the php file here
}
Just change the code I offered to use your button's instance name
buttonName.onRelease = function(){
getURL("result.php?value1=1");
}
Note that you are going to replace the current page with the php page using that approach of passing the data to the php page. That is not what you asked about originally. So if that is not what you want to do, go to the tutorial I pointed you to or find another like it and follow it.
North America
Europe, Middle East and Africa
Asia Pacific