Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Frame 1 */
- //_level0.dataLoaded = false;
- var urlValues = _root.strKey;
- var chrMarker = "";
- var mapName = "";
- var CiIndex = urlValues.indexOf("Ci=",0);
- var urlSubString = urlValues.substring(CiIndex+3,urlValues.length);
- for (i=0; i<=urlSubString.length; i++) {
- chrMarker = urlSubString.substr(i,1);
- if (chrMarker == "&") {
- break;
- } else if (chrMarker == "+") {
- mapName += "_";
- } else {
- mapName += chrMarker;
- }
- }
- mapName = "maps/cities/" + mapName.toLowerCase() + ".swf";
- loadMovie(mapName, _root.mapLoad);
- domVar = new LoadVars();
- domVar.load("domain.txt");
- domVar.onLoad = function(success) {
- dom = domVar.domain+"mlsdata.asp?"+urlValues;
- gotoAndPlay(2);
- }
- /* Frame 3 */
- #include "inc/mapdotdup.as"
- // inc/mapdotdup.as
- loadMovie("maps/cities/console.swf", 2);
- loadedVars = new LoadVars();
- loadedVars.load(dom);
- loadedVars.onLoad = parseMe;
- function parseMe() {
- for(i=-1; i < this.total; i++) {
- _root.dot.duplicateMovieClip("dot_"+i, i);
- _root["dot_"+i]._x = this["x"+i];h
- _root["dot_"+i]._y = this["y"+i];
- if (this["p"+i] >= int(600000)) {
- dotColor = new Color(_root["dot_"+i]);
- dotColor.setRGB(0x00FF00); // bright green
- } else if (this["p"+i] <= int(599999) && this["p"+i] >= int(500000)) {
- dotColor = new Color(_root["dot_"+i]);
- dotColor.setRGB(0x00CC33); // shade green
- } else if (this["p"+i] <= int(499999) && this["p"+i] >= int(400000)) {
- dotColor = new Color(_root["dot_"+i]);
- dotColor.setRGB(0x009966); // mid-green
- } else if (this["p"+i] <= int(399999) && this["p"+i] >= int(300000)) {
- dotColor = new Color(_root["dot_"+i]);
- dotColor.setRGB(0x006699); // mid-blue
- } else if (this["p"+i] <= int(299999) && this["p"+i] >= int(200000)) {
- dotColor = new Color(_root["dot_"+i]);
- dotColor.setRGB(0x0033CC); // shade blue
- } else {
- dotColor = new Color(_root["dot_"+i]);
- dotColor.setRGB(0x0000FF); // bright blue
- }
- }
- recordCnt = parseInt(_level0.loadedVars["total"]) + 1;
- _level0.attachMovie("TLaddressBubble", "TL", recordCnt+1);
- _level0.attachMovie("BLaddressBubble", "BL", recordCnt+2);
- _level0.attachMovie("TRaddressBubble", "TR", recordCnt+3);
- _level0.attachMovie("BRaddressBubble", "BR", recordCnt+4);
- _level0.TL._x = -450;
- _level0.BL._x = -450;
- _level0.TR._x = -450;
- _level0.BR._x = -450;
- _level0.dot._visible = 0;
- if (_root.loadedVars.markerx) {
- _level0.dot.duplicateMovieClip("markerDot", this.total+1);
- markerColor = new Color(_root.markerDot);
- markerColor.setRGB(0x000000);
- _level0.markerDot._visible = 100;
- _level0.markerDot._x = _level0.loadedVars.markerx;
- _level0.markerDot._y = _level0.loadedVars.markery;
- }
- }
- /* Frame 4 */
- play();
- /* Frame 5 */
- if (_root.loadedVars.isLoaded != 1) {
- this.gotoAndPlay(this._currentframe -1);
- }
- /* Frame 7 */
- removeMovieClip(_root.dot);
- stop();
- /* Property info for each dot */
- mls = _level0.loadedVars["m" + this._name.substring(4)];
- pInt = _level0.loadedVars["p" + this._name.substring(4)];
- price = _root.formatCurrency.FormatAsDollars(pInt);
- address = _level0.loadedVars["a" + this._name.substring(4)] + newline;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement