Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Work reduction for multiple actionscript

Status
Not open for further replies.

yandso

Programmer
Jul 20, 2001
278
US
Here is what I have. I have a state map, when you mouse over the counties the name shows up in the middle of the movie and the county is highlighted, I did this by turning each county into a button and then I assign the county name to a variable. Of course I had to script each county. Now I need to add a on release action that will redirect the user to a page and pass along the variable information. I figure that GetURL would work with the variable appended to the end however I do not what to have go through and script each county again. Can anyone think of a way that I could kick off the GetURL script anytime they click on the movie? I am not overly worried about them passing no data if they are not over a county when they click.

Thanks
 
You could place an invisible button over the entire map and place the GetURL action on it.

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
You can fire an action with onMouseDown.

Code:
this.onMouseDown=function(){
trace("mouse was clicked");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top