var depth = 500; var beachDots = 9; //number of dots on map name_txt.text = "Beach Map"; add_txt.text = ""; town_txt.text = ""; phone_txt.text = ""; dis_txt.text = "Please roll over dots for full information. It may take a moment to load info."; function beaches() { for (var x=0; x < beachDots; x++) { var temp = this.attachMovie("dotGrow","dot" + x, depth++) /*[[[[-----------DOT LOCATION START-----------]]]]*/ dot0._x = 301; dot0._y = 233; dot1._x = 280; dot1._y = 235; dot2._x = 347; dot2._y = 218; dot3._x = 97; dot3._y = 237; dot4._x = 97; dot4._y = 209; dot5._x = 524; dot5._y = 175; dot6._x = 489; dot6._y = 162; dot7._x = 451; dot7._y = 222; dot8._x = 299; dot8._y = 200; /*[[[[-----------DOT LOCATION END-----------]]]]*/ temp.targetw = 100; temp.targeth = 100; temp.momentumw = 0; temp.momentumh = 0; temp.onEnterFrame = function() { this.momentumw += ( this.targetw - this._xscale)*.2; this.momentumh += ( this.targeth - this._yscale)*.2; this.momentumw *= .9; this.momentumh *= .9; this._xscale += this.momentumw; this._yscale += this.momentumh; } //-------&&&&&&&&-- Roll Over Changes --&&&&&&&&&&---------\\ beachs 1-9 //--------- MARKER dot0.onRollOver = function() { this.swapDepth(1000); this.targetw = 130; this.targeth = 130; var theBeach = new LoadVars(); theBeach.onLoad = function() { name_txt.text = theBeach["name"]; add_txt.text = theBeach["address"]; town_txt.text = theBeach["town"]; phone_txt.text = theBeach["phone"]; dis_txt.text = theBeach["description"]; } theBeach.load("http://itshowyougetthere.com/hangouts.php?dot=1&table=beaches"); } //--------- MARKER dot1.onRollOver = function() { this.swapDepth(1000); this.targetw = 130; this.targeth = 130; var theBeach = new LoadVars(); theBeach.onLoad = function() { name_txt.text = theBeach["name"]; add_txt.text = theBeach["address"]; town_txt.text = theBeach["town"]; phone_txt.text = theBeach["phone"]; dis_txt.text = theBeach["description"]; } theBeach.load("http://itshowyougetthere.com/hangouts.php?dot=2&table=beaches"); } //--------- MARKER dot2.onRollOver = function() { this.swapDepth(1000); this.targetw = 130; this.targeth = 130; var theBeach = new LoadVars(); theBeach.onLoad = function() { name_txt.text = theBeach["name"]; add_txt.text = theBeach["address"]; town_txt.text = theBeach["town"]; phone_txt.text = theBeach["phone"]; dis_txt.text = theBeach["description"]; } theBeach.load("http://itshowyougetthere.com/hangouts.php?dot=3&table=beaches"); } //--------- MARKER dot3.onRollOver = function() { this.swapDepth(1000); this.targetw = 130; this.targeth = 130; var theBeach = new LoadVars(); theBeach.onLoad = function() { name_txt.text = theBeach["name"]; add_txt.text = theBeach["address"]; town_txt.text = theBeach["town"]; phone_txt.text = theBeach["phone"]; dis_txt.text = theBeach["description"]; } theBeach.load("http://itshowyougetthere.com/hangouts.php?dot=4&table=beaches"); } //--------- MARKER dot4.onRollOver = function() { this.swapDepth(1000); this.targetw = 130; this.targeth = 130; var theBeach = new LoadVars(); theBeach.onLoad = function() { name_txt.text = theBeach["name"]; add_txt.text = theBeach["address"]; town_txt.text = theBeach["town"]; phone_txt.text = theBeach["phone"]; dis_txt.text = theBeach["description"]; } theBeach.load("http://itshowyougetthere.com/hangouts.php?dot=5&table=beaches"); } //--------- MARKER dot5.onRollOver = function() { this.swapDepth(1000); this.targetw = 130; this.targeth = 130; var theBeach = new LoadVars(); theBeach.onLoad = function() { name_txt.text = theBeach["name"]; add_txt.text = theBeach["address"]; town_txt.text = theBeach["town"]; phone_txt.text = theBeach["phone"]; dis_txt.text = theBeach["description"]; } theBeach.load("http://itshowyougetthere.com/hangouts.php?dot=6&table=beaches"); } //--------- MARKER dot6.onRollOver = function() { this.swapDepth(1000); this.targetw = 130; this.targeth = 130; var theBeach = new LoadVars(); theBeach.onLoad = function() { name_txt.text = theBeach["name"]; add_txt.text = theBeach["address"]; town_txt.text = theBeach["town"]; phone_txt.text = theBeach["phone"]; dis_txt.text = theBeach["description"]; } theBeach.load("http://itshowyougetthere.com/hangouts.php?dot=7&table=beaches"); } //--------- MARKER dot7.onRollOver = function() { this.swapDepth(1000); this.targetw = 130; this.targeth = 130; var theBeach = new LoadVars(); theBeach.onLoad = function() { name_txt.text = theBeach["name"]; add_txt.text = theBeach["address"]; town_txt.text = theBeach["town"]; phone_txt.text = theBeach["phone"]; dis_txt.text = theBeach["description"]; } theBeach.load("http://itshowyougetthere.com/hangouts.php?dot=8&table=beaches"); } //--------- MARKER dot8.onRollOver = function() { this.swapDepth(1000); this.targetw = 130; this.targeth = 130; var theBeach = new LoadVars(); theBeach.onLoad = function() { name_txt.text = theBeach["name"]; add_txt.text = theBeach["address"]; town_txt.text = theBeach["town"]; phone_txt.text = theBeach["phone"]; dis_txt.text = theBeach["description"]; } theBeach.load("http://itshowyougetthere.com/hangouts.php?dot=9&table=beaches"); } //------************DO NOT CHANGE************------\\ temp.onRollOut = function() { name_txt.text = ""; add_txt.text = ""; town_txt.text = ""; phone_txt.text = ""; dis_txt.text = ""; this.targetw = 100; this.targeth = 100; } } } beaches();